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

Save exact by default: yarn config set save-prefix '' #3045

Closed
meznaric opened this issue Apr 5, 2017 · 3 comments
Closed

Save exact by default: yarn config set save-prefix '' #3045

meznaric opened this issue Apr 5, 2017 · 3 comments

Comments

@meznaric
Copy link

meznaric commented Apr 5, 2017

Do you want to request a feature or report a bug?
Bug

What is the current behavior?

$ yarn config set save-prefix ''
yarn config v0.21.3
success Set "save-prefix" to true.
✨  Done in 0.05s.
$ yarn add lodash
...
$ cat package.json
...
  "lodash": "true4.17.4",
...

What is the expected behavior?

I expect packages to have no prefix.

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

$ yarn --version
0.21.3
$ node --version
v6.10.0

What do I want to achieve?
I want to save exact versions of the packages by default. I tried few other stuff, but it didn't work:
yarn config set save-exact, yarn config set exact

@meznaric
Copy link
Author

meznaric commented Apr 6, 2017

Kind of duplicate of #1088

I used yarn config set save-prefix false and it's working.

@binarykitchen
Copy link
Contributor

@meznaric nope this doesn't work and causes the string "false" to be prefixed.

@dguo
Copy link
Contributor

dguo commented Oct 5, 2017

On Yarn v1.1, I ran into the same issue with the string "false" being prefixed. I tried using save-prefix '', but that caused an error. Using double quotes in my .yarnrc fixed it for me: save-prefix "".

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

No branches or pull requests

3 participants