pnpm install @types/[email protected]
The @types/react version in package.json should be 16.7.20 exactly
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 its specifiers field.
node v11.7.0macOS v10.14.3The 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
Good to see this happening!
:ship: 3.0.0-alpha.2 (dist-tag: next-major)