mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 22:34:21 +08:00
The package group format required to automatically update the builder packages was not supported until CLI 7.2. For older CLI versions performing the update, this new migration will update the builders instead. Once the CLI is updated to at least 7.2, the update algorithm itself will handle the update.
31 lines
800 B
TypeScript
31 lines
800 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
|
|
*/
|
|
|
|
import {
|
|
Rule,
|
|
chain,
|
|
} from '@angular-devkit/schematics';
|
|
import { updatePackageJson, updateTsLintConfig } from './codelyzer-5';
|
|
import { updateES5Projects } from './differential-loading';
|
|
import { dropES2015Polyfills } from './drop-es6-polyfills';
|
|
import { updateBuilders } from './update-builders';
|
|
|
|
export { updateLazyModulePaths } from './update-lazy-module-paths';
|
|
|
|
export default function(): Rule {
|
|
return () => {
|
|
return chain([
|
|
updateTsLintConfig(),
|
|
updatePackageJson(),
|
|
dropES2015Polyfills(),
|
|
updateES5Projects(),
|
|
updateBuilders(),
|
|
]);
|
|
};
|
|
}
|