Yarn: feature: Implement `yarn global config set|get`

Created on 14 Oct 2016  路  3Comments  路  Source: yarnpkg/yarn

Do you want to request a _feature_ or report a _bug_?
bug
What is the current behavior?
Currently, all yarn config set and yarn config remove commands modify home config, whether -g is set or not.
If the current behavior is a bug, please provide the steps to reproduce.
yarn config set foo bar
notice user level .yarnrc is modified
馃憤

yarn config set foo bar --global
notice user level .yarnrc is modified and global .yarnrc is _unmodified_
馃憥

What is the expected behavior?
--global should only modify global .yarnrc
Please mention your node.js, yarn and operating system version.

> node -v
v6.7.0
> npm -v
3.10.3
> yarn --version
0.15.1
cat-feature good first issue help wanted triaged

Most helpful comment

The yarn config documentation mentions the -gand --global flag for setting configuration values globally but as mentioned here this feature does not work.

All 3 comments

actually I have this the other way around.

$ yarn config set exact true

# and

$ yarn config set exact true -g

Both create and manipulate the global .yarnrc file.

I'm using 0.17.9

I've changed the issue since I don't think we are going to implement -g or --global flags. That would be inconsistent with how we do things. I think having a yarn global config command would be nice tho.

The yarn config documentation mentions the -gand --global flag for setting configuration values globally but as mentioned here this feature does not work.

Was this page helpful?
0 / 5 - 0 ratings