From 2431ab4208f35bc86e6460cb9c1a71c47608844a Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 30 Jan 2025 07:58:53 +0100 Subject: [PATCH] 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. --- packages/angular/build/src/utils/version.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/angular/build/src/utils/version.ts b/packages/angular/build/src/utils/version.ts index f8f87791240c..51f493bfe993 100644 --- a/packages/angular/build/src/utils/version.ts +++ b/packages/angular/build/src/utils/version.ts @@ -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; }