Joey Perrott bec21de06a refactor(@schematics/angular): hard code version of Angular in latest-verisons
Update the version of Angular in latest-verions as 13.0.0-next.0 is not on npm.
2021-07-29 14:20:43 +02:00

25 lines
936 B
TypeScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export const latestVersions: Record<string, string> & {
Angular: string;
DevkitBuildAngular: string;
} = {
// We could have used TypeScripts' `resolveJsonModule` to make the `latestVersion` object typesafe,
// but ts_library doesn't support JSON inputs.
...require('./latest-versions/package.json')['dependencies'],
// As Angular CLI works with same minor versions of Angular Framework, a tilde match for the current
Angular: '~12.2.0-rc.0',
// Since @angular-devkit/build-angular and @schematics/angular are always
// published together from the same monorepo, and they are both
// non-experimental, they will always have the same version.
DevkitBuildAngular: '~' + require('../package.json')['version'],
};