Keen Yee Liau c3cc50e6b9 refactor(@schematics/angular): read build-angular's version from package.json
Now that `@angular-devkit/build-angular` is promoted to stable
(https://github.com/angular/angular-cli/pull/20528), it will
always have the same version as `@schematics/angular`.

With this change, there is no need to manually update `DevkitBuildAngular`
field in `latest-versions.ts` anymore.
2021-04-20 09:33:36 -05:00

24 lines
740 B
TypeScript

/**
* @license
* Copyright Google Inc. 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 = {
// These versions should be kept up to date with latest Angular peer dependencies.
Angular: '~12.0.0-next.9',
RxJs: '~6.6.0',
ZoneJs: '~0.11.4',
TypeScript: '~4.2.3',
TsLib: '^2.1.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'],
ngPackagr: '^12.0.0-next.8',
};