-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
npm_config_argv
is not set properly in yarn scripts
#2226
Comments
Found this issue which seems linked with the env variables: #684 |
It's an issue that I've encountered & been bitten by. Say you type However if you type So that's a genuine compatibility issue that actually arisen for me. |
**Summary** Fixes #2226. Better emulates `npm_config_argv` by passing `process.argv.slice(2)` as the `original` portion and both the command name and the script name in `cooked` portion. **Test case** Added integration tests.
@indiescripter submitted #4479. Hope it helps you a bit? |
**Summary** Fixes #2226. Better emulates `npm_config_argv` by passing `process.argv.slice(2)` as the `original` portion and both the command name and the script name in `cooked` portion. **Test case** Added integration tests.
**Summary** Fixes yarnpkg#2226. Better emulates `npm_config_argv` by passing `process.argv.slice(2)` as the `original` portion and both the command name and the script name in `cooked` portion. **Test case** Added integration tests.
Do you want to request a feature or report a bug?
Not clear. To be compatible with npm I guess it's a bug.
What is the current behavior?
Environment variables are not set correctly.
If the current behavior is a bug, please provide the steps to reproduce.
and
What is the expected behavior?
npm_config_argv
should be set inprocess.env
, as well as thenpm_config_demo_arg
in this case.Please mention your node.js, yarn and operating system version.
The text was updated successfully, but these errors were encountered: