Skip to content

Commit

Permalink
refactor(@angular/build): update version check to account for unrelea…
Browse files Browse the repository at this point in the history
…sed FW packages (#29537)

In the FW integration tests the packages version is `0.0.0`. This commit update the compatibility version check to account for this.
  • Loading branch information
alan-agius4 authored Jan 30, 2025
1 parent 249f9dc commit 2431ab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/angular/build/src/utils/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export function assertCompatibleAngularVersion(projectRoot: string): void | neve
}

const supportedAngularSemver = '0.0.0-ANGULAR-FW-PEER-DEP';
if (supportedAngularSemver.startsWith('0.0.0')) {
// Internal CLI testing version.
if (angularPkgJson['version'] === '0.0.0' || supportedAngularSemver.startsWith('0.0.0')) {
// Internal CLI and FW testing version.
return;
}

Expand Down

0 comments on commit 2431ab4

Please sign in to comment.