WarningImHack3r / intellij-shadcn-plugin

Add, update and delete your shadcn/ui components without leaving your IDE
5 stars 1 forks source link

Fix package installation for yarn, add support for `bun.lock` #51

Closed shimizu-izumi closed 5 months ago

shimizu-izumi commented 5 months ago

I added a new private function between getPackageManager and installDependency to get the installation command based on the package manager.

I made 4 blank next.js shadcn/ui projects to test it, one for each package manager and install and dev install work for all package managers now.

The install command is hardcoded to i in the current version which only works for NPM according to documentations of the package managers.

WarningImHack3r commented 5 months ago

Thanks for your contribution! I did hardcode i as it's supposed to work with all package managers despite not being listed in some of them's docs. However I just tried with yarn (the only one I never used), which I never did before, and it's indeed not supported, sorry!

shimizu-izumi commented 5 months ago

I tried adding the requested changes by trying a few things but I don't know enough about the codebase and Kotlin to do it.

WarningImHack3r commented 5 months ago

Alright no problem, I’ll take it from here, thank you very much for your time and investigation!