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
Yarn config is empty when run from within an npm script #3922
Labels
Comments
This causes authentication errors when
|
Confirmed issue still present in |
Thanks for the report! This is because scripts are run with Will submit a PR to fix this. |
BYK
added a commit
that referenced
this issue
Sep 12, 2017
**Summary** Fixes #3922. Certain commands in yarn should always produce an output, regardless of the silent status. This makes `reporter.inspect` for console reporter to always produce an output. It also forces the output of `yarn config get` to override silent mode. **Test plan** Should add integration tests.
BYK
added a commit
that referenced
this issue
Sep 12, 2017
…4419) **Summary** Fixes #3922. Certain commands in yarn should always produce an output, regardless of the silent status. This makes `reporter.inspect` for console reporter to always produce an output. It also forces the output of `yarn config get` to override silent mode. **Test plan** Should add integration tests.
😄 Thanks @BYK |
joaolucasl
pushed a commit
to joaolucasl/yarn
that referenced
this issue
Oct 27, 2017
…arnpkg#4419) **Summary** Fixes yarnpkg#3922. Certain commands in yarn should always produce an output, regardless of the silent status. This makes `reporter.inspect` for console reporter to always produce an output. It also forces the output of `yarn config get` to override silent mode. **Test plan** Should add integration tests.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
The output of
yarn config
is empty if run from within a yarn script.If the current behavior is a bug, please provide the steps to reproduce.
package.json
:yarn run debug
.What is the expected behavior?
Expect
yarn run debug
to produce the same output asnpm run debug
oryarn config list
.Please mention your node.js, yarn and operating system version.
node.js v6.11.0
yarn v0.27.5
OS Ubuntu 16.04
Seems this was introduced sometime between v0.24.5 and v0.27.5. We were using this behavior as part of a docker build script that would internally grab an NPM authorization token (from
yarn config
) to provide it to the docker container being built. Would be nice to see the regression fixed, to bring this back into line with npm's behavior.The text was updated successfully, but these errors were encountered: