-
-
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] Provide permanent folder with dependencies binaries #566
Comments
Imo this feature could already be implemented rather easily through a plugin (by hooking on the I'm not sure adding it to the core would be very impactful as those binaries can already be called through |
Note that one main reason I'm not super fond of global binaries (in relation with WEB-42294) is that they obfuscate the source of the tool. For example, if running |
You're right that |
Unfortunately, this is not an option for IDEs, because |
Describe the user story
Like npm / Yarn v1 generate
node_modules/.bin
folder with dependencies binaries, Yarn v2 could do the same. Seems currently Yarn 2 already generates a folder with dependencies binaries and prepend it toPATH
when running a script from package.json withyarn run <script>
command. However, it works for package.json scripts only.What do you think about generating such a folder permanently (not temporary)?
Prepending it to
PATH
environment variable would allow to run dependencies binaries in a terminal more naturally, e.g.eslint
instead ofyarn run eslint
.Describe the solution you'd like
For example, it could be
.yarn/.bin/
.Describe the drawbacks of your solution
At least more FS operations to create/populate a folder.
Describe alternatives you've considered
As an alternative, it's possible to run
yarn run <dependency binary>
Additional context
For example, IntelliJ could prepend such a folder to
PATH
automatically, like it currently does withnode_modules/.bin
.The text was updated successfully, but these errors were encountered: