Charles Lyding 9b5653b13e fix(@schematics/angular): ensure Angular builders are migrated to latest versions
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.
2019-04-22 13:29:05 -07:00

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(),
]);
};
}