Skip to content

Commit a4200a0

Browse files
gregmagolanmgechev
authored andcommitted
refactor(@angular-devkit/build-angular): allow @angular/core version 0.0.0
Allow version "0.0.0" for integration testing in the angular/angular repository with the generated development @angular/core npm package which is versioned "0.0.0". This is a pre-req for angular/angular#33927 which runs integration tests against the bazel generated npm packages.
1 parent 486b370 commit a4200a0

File tree

1 file changed

+3
-2
lines changed
  • packages/angular_devkit/build_angular/src/utils

1 file changed

+3
-2
lines changed

packages/angular_devkit/build_angular/src/utils/version.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ export function assertCompatibleAngularVersion(projectRoot: string, logger: logg
5959

6060
const cliMajor = new SemVer(angularCliPkgJson['version']).major;
6161
// e.g. CLI 8.0 supports '>=8.0.0 <9.0.0', including pre-releases (betas, rcs, snapshots)
62-
// of both 8 and 9.
62+
// of both 8 and 9. Also allow version "0.0.0" for integration testing in the angular/angular
63+
// repository with the generated development @angular/core npm package which is versioned "0.0.0".
6364
const supportedAngularSemver =
64-
`^${cliMajor}.0.0-beta || ` + `>=${cliMajor}.0.0 <${cliMajor + 1}.0.0`;
65+
`0.0.0 || ^${cliMajor}.0.0-beta || ` + `>=${cliMajor}.0.0 <${cliMajor + 1}.0.0`;
6566

6667
const angularVersion = new SemVer(angularPkgJson['version']);
6768
const rxjsVersion = new SemVer(rxjsPkgJson['version']);

0 commit comments

Comments
 (0)