Add support for bun (shares most code with Npm)#4396
Add support for bun (shares most code with Npm)#4396Charlie Lin (clin1234) wants to merge 4 commits intoDevolutions:mainfrom
Conversation
5644252 to
0dcd4c1
Compare
|
Isn't Bun drop-in compatible with NPM? We could just add it as an npm executable option. |
Theoretically yes, but I did not know where the input box for custom |
|
In Npm.cs there's a |
|
I can't find your mentioned path anywhere in upstream: https://github.com/search?q=repo%3Amarticliment%2FUniGetUI+LoadAvailablePaths&type=code |
Powershell 5 and Powershell 7 have separate |
|
The powershell versions were added before this was implemented, and I believe they have different syntax. Nonetheless, I'm not saying to do that instead of your current solution, I'm just pointing out an alternative approach to this problem in case Martí decides it better. Both have strengths and weaknesses. |
|
Martí Climent (@marticliment) Care to weigh in on this debate? |
|
sorry, I forgot to answer. I have not used bun enough to have a formed opinion on this. However, If bun is a drop-in replacement for npm (exact same install/update/uninstall commands, return codes, output structure, etc.) and it manages the same packages (global and user-scoped) then I guess the exe can be added as an alternative to Npm. However, if there is any difference (cli output, behaviour, etc.) then I'd just add Bun as a separate package manager. |
|
In terms of command structure, if I recall correctly it is supposed to be 1:1. However, while it's the same for project packages, I believe it installs global packages to a different place than NPM? So it might be better as a seperate package manager than as an NPM executable. I just wanted to weigh in with a potential alternative solution. |
Any user suspected of farming GitHub activity with crypto purposes will get banned. Submitting broken code wastes the contributors' time, who have to spend their free time reviewing, fixing, and testing code that does not even compile breaks other features, or does not introduce any useful changes. I appreciate your understanding.
Closes #2519