Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

narn <binary> incorrectly runs pnpm run <binary> #28

Open
bbugh opened this issue Oct 7, 2022 · 1 comment
Open

narn <binary> incorrectly runs pnpm run <binary> #28

bbugh opened this issue Oct 7, 2022 · 1 comment

Comments

@bbugh
Copy link

bbugh commented Oct 7, 2022

pnpm can run both scripts and binaries like yarn 'pnpm eslint' == 'yarn eslint' && 'pnpm test' == 'yarn test'.

When running narn eslint in a pnpm folder, it runs pnpm run.

The most correct form is pnpm exec <binary>, but pnpm lets you do it if there's no script name binary, same as yarn.

Example:

» pnpm eslint . --fix # Works fine

» narn eslint . --fix
pnpm run eslint . --fix # Incorrectly calls run
 ERR_PNPM_NO_SCRIPT  Missing script: eslint
@bbugh
Copy link
Author

bbugh commented Oct 19, 2022

@joeldenning would you accept a PR for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant