What is the rationale for putting save-exact into .npmrc? #3244
Answered
by
beerose
vincentrolfs
asked this question in
Q&A
-
What is the rationale for putting save-exact into .npmrc? I want to understand more about why this is done, since it's not at all obvious why this is a good idea. In former times, the main argument for save-exact was trying to avoid breakage of production builds, but with package.lock/yarn.lock this argument does not seem to apply anymore. |
Beta Was this translation helpful? Give feedback.
Answered by
beerose
Jun 20, 2022
Replies: 1 comment
-
This is a PR that introduced it: #500 Even with yarn.lock/package.lock etc you still may need it as Example:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
beerose
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a PR that introduced it: #500
Even with yarn.lock/package.lock etc you still may need it as
save-exact=true
makes sure that no sliding versions (with ~ or ^ ) will not be installed.Example:
"some-package": "^1.2.3"
in your package.jsonsome-package
, e.g. 1.8.0save-exact=true
.