-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Respect save-exact option from .npmrc in project directory #1088
Comments
Hopefully I take your descriptions right, my steps are:
Now webpack 1.13.2 is installed, exactly the same version. I don't know which package you were installing, but maybe you came across this issue because the nature of
Also, this might be fixed already. So please tried again and update this issue, or correct me if I made some mistakes on reproducing the bug :-) |
IMHO the desired behaviour of |
The possible bug with workaround Workaround |
yeah, I saw this change, and now, the version is prefixed with |
I've just verified and the workaround works on master. |
Is this the same issue as Yarn not respecting |
I'd like to be able to rely on the original |
hey guys, defining: # .yarnrc
save-prefix false works the way we expect, but, unfortunately, you'll need different configurations from yarn add redux
# package.json
"redux": "3.6.0" |
That works just fine for me, thanks! |
@oieduardorabelo it works for me, but I can't find any documents about |
hey @dawncold , I saw it in the Line 74 in 6e7d396
the default yarn/src/registries/yarn-registry.js Line 25 in 05bf977
in my local tests, |
I'm liking the workaround solution, but I don't see the need for yarn to reinvent the wheel here. If yarn is supposed to exist as an interface on top of existing |
With the bloat of tools that pop up every day, it's really frustrating to configure every little bit, especially if you already configured it for npm. I use So... after mentally being in peace for a couple of years now using |
so perfect. |
I think this can be closed, from v1.1.0 Yarn respects Ref: #4471 |
Small question, with tools like https://renovateapp.com/ I am used to pin only dev dependencies, and use ^ for deps. Is that feasible using yarn? (specifying prefix for dev or dep) |
@vvo AFAIK yarn doesn't have anything like this. You can sketch up an RFC if you are feeling strongly but I have doubts about usefulness of such a feature for many people. |
For anyone looking for a defaultSemverRangePrefix: "" Reference: https://yarnpkg.com/configuration/yarnrc |
Do you want to request a feature or report a bug?
Not sure if this is a bug or feature request
What is the current behavior?
save-exact = true
from .npmrc file is not respected,(workaround) settingsave-prefix
to''
(empty string) results in addingundefined<pkg.version>
topackage.json
file when runningyarn add <package>
due to empty string being a false value,If the current behavior is a bug, please provide the steps to reproduce.
.npmrc
file in project directory, addsave-exact = true
line to it,(workaround) and/or: runyarn config set save-prefix ''
What is the expected behavior?
The same as calling
yarn add
with the--exact
flag. All packages should be saved as an exact version.Please mention your node.js, yarn and operating system version.
yarn 0.15.1
node 6.8.1
macOS 10.12
The text was updated successfully, but these errors were encountered: