Skip to content

Commit edb4594

Browse files
committed
fix(@angular/cli): respect release age policy in update bootstrapping logic
Querying version target returns the resolved range/tag specifier instead of the resolved specific version number if the installed CLI version is outdated. This allows the package manager to natively enforce release-age policies (like pnpm's `minimum-release-age` or yarn's `npmMinimalAgeGate`) and select an appropriate older version during temporary installation rather than crashing.
1 parent e5eb3e3 commit edb4594

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/angular/cli/src/commands/update/utilities/cli-version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function checkCLIVersion(
7070

7171
const version = manifest.version;
7272

73-
return VERSION.full === version ? null : version;
73+
return VERSION.full === version ? null : String(runnerVersion);
7474
}
7575

7676
/**

0 commit comments

Comments
 (0)