refactor(core): add links to remaining migration guides (#33385)
PR Close #33385
This commit is contained in:
parent
0d9be22023
commit
a17cc9beee
|
@ -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(
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue