Closed merceyz closed 1 year ago
How does this work with package managers that use non-semver versioning or for package specifiers like npm@github:npm/cli#c12ea07
or yarn@https://registry.npmjs.org/yarn/-/yarn-2.4.3.tgz
?
It doesn't, neither of those are supported. Note that this PR doesn't change the behaviour of Corepack, it merely tests existing behaviour.
Adds a test to ensure that not specifying a semver version in
package.json#packageManager
isn't allowed. Ref https://github.com/nodejs/corepack/pull/300#pullrequestreview-1608951980.