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-prefix false in v0.28.4 adds false keyword to the package version #4104

Closed
lgraziani2712 opened this issue Aug 6, 2017 · 5 comments
Closed

Comments

@lgraziani2712
Copy link

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

  • Report a bug.

What is the current behavior?

When I run yarn add <package> or yarn add --dev <package it adds the false keywork as a prefix for the package version. E.g.:

{
  "eslint": "false4.4.0"
}

If the current behavior is a bug, please provide the steps to reproduce.

  1. Add a .yarnrc file with save-prefix false as its content.
  2. yarn add --dev eslint.

What is the expected behavior?

The false keyword it doesn't needs to be written to the package.json file.

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

  • Nodejs: v8.2.1.
  • Windows 10.
  • yarnpkg v0.28.4

Thank you!

@rally25rs
Copy link
Contributor

Related: #2653 #1088

@BYK
Copy link
Member

BYK commented Aug 7, 2017

Why do we need save-prefix to support a keyword? What if someone actually wants to prefix things with false (I know, highly unlikely but why prevent it?)

@BYK
Copy link
Member

BYK commented Aug 7, 2017

Why do we need save-prefix to support a keyword?

Okay sorry. Just read #2653 and now I understand the motivation. That said I'd rather us supporting empty strings for settings. Would like to close this in favor of #2653 which I prioritized for 1.0. Works for you?

@OliverJAsh
Copy link

To confirm, what's the expected behaviour here? On 1.0.2 I'm seeing false in my versions.

@BYK
Copy link
Member

BYK commented Sep 16, 2017

@OliverJAsh

To confirm, what's the expected behaviour here? On 1.0.2 I'm seeing false in my versions.

If there's false in your config file, it is expected to see false. Use an empty string in your .yarnrc file or wait until we have #4471 merged and use the new and shiny save-exact setting ;)

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

4 participants