Library for package managers independent command execution #4051
Unanswered
flying-sheep
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can just call |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So in order to run a command from a package installed into the workspace, there’s
yarn run <cmd>
,npx --no <cmd>
, and probably others.Since yarn 2 doesn’t (by default) install things into
node_modules
, we now lack a cross-package-manager way to run a locally installed command (before yarn 2, that was<workspace-path>/node_modules/.bin/<cmd>
)Is there a library that handles this? I.e. figures out if the current workspace is managed by yarn 2 and uses
yarn run
then, and the equivalent other commands for other package managers?Beta Was this translation helpful? Give feedback.
All reactions