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

Fix #5776: CLI switch "--scripts-prepend-node-path" doesn't work #5787

Merged

Conversation

brainfish
Copy link
Contributor

Summary

This is a fix for #5776 where the --scripts-prepend-node-path CLI switch is ignored. The code to wire this flag up in src/config.js was missing.

Test plan

Before:

$ yarn run --scripts-prepend-node-path env | egrep 'NODE|PATH'
  "NODE": "/usr/local/Cellar/node/8.1.0/bin/node",
  "PATH": "/Users/brainfish/code/yarn/node_modules/.bin:...

After:

$ yarn run --scripts-prepend-node-path env | egrep 'NODE|PATH'
  "NODE": "/usr/local/Cellar/node/8.1.0/bin/node",
  "PATH": "/usr/local/Cellar/node/8.1.0/bin:/Users/brainfish/code/yarn/node_modules/.bin:...

@arcanis arcanis merged commit 08870c8 into yarnpkg:master May 6, 2018
@arcanis
Copy link
Member

arcanis commented May 6, 2018

Thanks! 👍

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

Successfully merging this pull request may close these issues.

2 participants