-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Feature] run local dependency binary only #565
Comments
Fixed in #570 🎉 |
Seems it doesn't work with scoped packages.
This command works as expected: @arcanis Should I file a new issue? |
@segrey it's not a bug, the
I guess the next question is "how to know what's the name of the binary for a given package", to which the answer is "it's theoretically hard to do it perfectly because there might be multiple binaries for one package" 😛 That being said, I'll improve |
Ah, you're right! Sorry for the noise. IDE has capability to list all binaries provided by a package by reading its package.json, but |
Describe the user story
It'd be great to be able to run a local dependency binary without additional options coming from
scripts
.For example,
"eslint": "eslint sources scripts"
(from pnp-sample-app/package.json#L51) prevents runningyarn run eslint --print-config .eslintrc.js
Removing the
eslint
script from the package.json fixes the error.Describe the solution you'd like
Maybe a new flag for
run
command, for exampleyarn run --local-dependency-binary-only eslint --print-config .eslintrc.js
?Or, maybe a new command, for example
yarn runLocalDependencyBinary eslint --print-config .eslintrc.js
?Any solution would work for me.
Describe the drawbacks of your solution
Seems introducing a new flag or a new command shouldn't break any of existent use cases.
Describe alternatives you've considered
Don't see any alternatives currently. I could be wrong here.
Additional context
Based on previous discussion: #499 (comment)
Found the case with ESLint => created this issue.
The text was updated successfully, but these errors were encountered: