We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e318081 commit 1cc08b4Copy full SHA for 1cc08b4
packages/bazel/check_version.js
@@ -57,7 +57,8 @@ if (isBazelManagedDeps()) {
57
}
58
// Be tolerant of versions such as "0.17.0-7-g76dc057"
59
const angularPackageVersion = contents.version.split('-')[0];
60
- const range = `~${angularPackageVersion}`; // should match patch version
+ // Should match only the major and minor versions
61
+ const range = `${semver.major(angularPackageVersion)}.${semver.minor(angularPackageVersion)}.x`;
62
if (!semver.satisfies(npmPackageVersion, range)) {
63
throw new Error(
64
`Expected angular npm version ${npmPackageVersion} to satisfy ${range}. ` +
0 commit comments