Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
  • Loading branch information
gregmagolan committed Nov 22, 2019
commit 79cbe71c0398c8bc63533682af9ea057c96ed96b
5 changes: 3 additions & 2 deletions packages/angular_devkit/build_angular/src/utils/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ export function assertCompatibleAngularVersion(projectRoot: string, logger: logg

const cliMajor = new SemVer(angularCliPkgJson['version']).major;
// e.g. CLI 8.0 supports '>=8.0.0 <9.0.0', including pre-releases (betas, rcs, snapshots)
// of both 8 and 9.
// of both 8 and 9. Also 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".
const supportedAngularSemver =
`^${cliMajor}.0.0-beta || ` + `>=${cliMajor}.0.0 <${cliMajor + 1}.0.0`;
`0.0.0 || ^${cliMajor}.0.0-beta || ` + `>=${cliMajor}.0.0 <${cliMajor + 1}.0.0`;

const angularVersion = new SemVer(angularPkgJson['version']);
const rxjsVersion = new SemVer(rxjsPkgJson['version']);
Expand Down