bcomnes / npm-run-all2

A CLI tool to run multiple npm-scripts in parallel or sequential. (Maintenance fork)
MIT License
250 stars 12 forks source link

Why is there inconsistency in the behavior of npm, yarn, and pnpm when using the @ parameter placeholder? #124

Closed mishengqiang closed 9 months ago

mishengqiang commented 10 months ago

In the create-vue project, the @ placeholder is used, but there is inconsistency in behavior between npm, yarn, and pnpm. See details at https://github.com/vuejs/create-vue/pull/394#issuecomment-1833596570.

bcomnes commented 10 months ago

I don't have an exact answer off hand, but the 3 package managers vary quite a bit in annoying and subtle ways when it comes to package.json script running, argument passing etc. It's an unfortunate set of circumstances.

npm-run-all{2} doesn't attempt to normalize these differences. Generally my order of priorities here is: make it work perfectly with npm, then best effort on pnpm and then yarn.

Could you clarify what you think npm-run-all2 is doing incorrectly here, and how you think it should work?

bcomnes commented 9 months ago

Closing due to lack of specifics here. Happy to reopen when we can clarify these issues. I don't have time at the moment to investigate on my own.