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

Allow shell variables in .yarnrc #4740

Closed
HaleTom opened this issue Oct 19, 2017 · 2 comments
Closed

Allow shell variables in .yarnrc #4740

HaleTom opened this issue Oct 19, 2017 · 2 comments
Labels
cat-feature fixed-in-modern This issue has been fixed / implemented in Yarn 2+.

Comments

@HaleTom
Copy link

HaleTom commented Oct 19, 2017

Feature (supported by npm)

Current behavior

npm allows in the .npmrc:

prefix=${XDG_DATA_HOME}/npm

However, when I type in my shell:

yarn config set prefix '${XDG_DATA_HOME}/npm'

I see this in my ~/.yarnrc:

prefix "/home/ravi/.local/share/npm"

What is the expected behavior?
.yarnrc contains:

prefix "${XDG_DATA_HOME}/npm"

Please mention your node.js, yarn and operating system version.

$ node --version
v8.5.0
$ yarn --version
1.1.0
$ uname -a
Linux svelte 4.9.52-1-MANJARO #1 SMP PREEMPT Wed Sep 27 16:40:38 UTC 2017 x86_64 GNU/Linux
@HaleTom
Copy link
Author

HaleTom commented Oct 19, 2017

Will likely be required in conjunction with #2334.

@paul-soporan
Copy link
Member

Closing as v2 allows environment variables to be used in .yarnrc.yml files.

https://yarnpkg.com/getting-started/migration

@paul-soporan paul-soporan added the fixed-in-modern This issue has been fixed / implemented in Yarn 2+. label Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat-feature fixed-in-modern This issue has been fixed / implemented in Yarn 2+.
Projects
None yet
Development

No branches or pull requests

3 participants