Skip to content

Commit 2431ab4

Browse files
authored
refactor(@angular/build): update version check to account for unreleased 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.
1 parent 249f9dc commit 2431ab4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/angular/build/src/utils/version.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ export function assertCompatibleAngularVersion(projectRoot: string): void | neve
3838
}
3939

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

0 commit comments

Comments
 (0)