Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: angular/angular-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 622640b5130ef06dd95f531d04594567f8292cb2
Choose a base ref
..
head repository: angular/angular-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 589f01ef622312b6174232f9e0bbeee2c3828919
Choose a head ref
Showing with 3 additions and 1 deletion.
  1. +3 −1 scripts/release-checks/dependency-ranges/latest-versions-check.mts
Original file line number Diff line number Diff line change
@@ -14,7 +14,9 @@ export function checkSchematicsAngularLatestVersion(newVersion: semver.SemVer):
// Root of the Angular CLI project.
const root = fileURLToPath(new URL('../../../', import.meta.url));
const rootRequire = createRequire(root);
const { latestVersions } = rootRequire('./dist/@schematics/angular/utility/latest-versions.js');
const { latestVersions } = rootRequire(
'./dist/releases/schematics/angular/utility/latest-versions.js',
);

const keysToCheck = ['Angular', 'NgPackagr'];
const { major, minor, prerelease } = newVersion;