refactor(core): add links to remaining migration guides (#33385)

PR Close #33385
This commit is contained in:
Kara Erickson 2019-10-24 15:22:28 -07:00 committed by Andrew Kushnir
parent 0d9be22023
commit a17cc9beee
2 changed files with 9 additions and 0 deletions

View File

@ -30,6 +30,10 @@ export default function(): Rule {
const failures: string[] = [];
ctx.logger.info('------ ModuleWithProviders migration ------');
ctx.logger.info('In Angular 9, the ModuleWithProviders type without a ');
ctx.logger.info('generic has been deprecated. This migration adds the ');
ctx.logger.info('generic where it is missing. See more info here:');
ctx.logger.info('https://v9.angular.io/guide/migration-module-with-providers');
if (!allPaths.length) {
throw new SchematicsException(

View File

@ -17,6 +17,11 @@ import {appendPropertyInAstObject, findPropertyInAstObject, insertPropertyInAstO
*/
export default function(): Rule {
return (tree: Tree, context: SchematicContext) => {
context.logger.info('------ ngcc postinstall migration ------');
context.logger.info('This migration adds an ngcc invocation to npm/yarn\'s ');
context.logger.info('postinstall script. See more info here: ');
context.logger.info('https://v9.angular.io/guide/migration-ngcc');
addPackageJsonScript(
tree, 'postinstall',
'ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points');