-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
pnpm install exact version #1633
Comments
The current behavior was copied from npm. I agree that it would make more sense to preserve the specs. |
@vjpr you were asking about this as well |
zkochan
added a commit
that referenced
this issue
Jan 30, 2019
close #1633 BREAKING CHANGE: the specified version spec is prefered. It doesn't matter what are the values of the save-exact and save-prefix configs.
Good to see this happening! |
zkochan
added a commit
that referenced
this issue
Jan 31, 2019
close #1633 BREAKING CHANGE: the specified version spec is prefered. It doesn't matter what are the values of the save-exact and save-prefix configs.
🚢 3.0.0-alpha.2 (dist-tag: next-major) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pnpm version: 2.25.5
Code to reproduce the issue:
Expected behavior:
The
@types/react
version inpackage.json
should be16.7.20
exactlyActual behavior:
A caret is prepended to the version in
package.json
(eg:^16.7.20
).When I explicitly declare the version, it should use exactly what I give it, no?
Same with
pnpm install @types/react@~16.7.20
, which currently uses^16.7.20
instead.Note: The version that's actually installed is correct. Only the
package.json
version is incorrect.Note: The same issue occurs for non-scoped packages, too.
Note: The
shrinkwrap.yaml
file also has this issue in itsspecifiers
field.Additional information:
node v11.7.0
macOS v10.14.3
The text was updated successfully, but these errors were encountered: