docs(core): add migration guide links to schematics (#33258)
Angular v9 schematics should print out a link to the migration guide associated with each schematic. This way, users have an easy way to find more information about the automatic code transformations they will see with `ng update`. PR Close #33258
This commit is contained in:

committed by
Matias Niemelä

parent
32b042014d
commit
f289411fa9
@ -38,6 +38,12 @@ export default function(): Rule {
|
||||
const failures: string[] = [];
|
||||
|
||||
ctx.logger.info('------ Undecorated classes with DI migration ------');
|
||||
ctx.logger.info(
|
||||
'As of Angular 9, it is no longer supported to use Angular DI ' +
|
||||
'on a class that does not have an Angular decorator. ');
|
||||
ctx.logger.info('Read more about this in the dedicated guide: ');
|
||||
ctx.logger.info('https://v9.angular.io/guide/migration-undecorated-classes');
|
||||
|
||||
|
||||
if (!buildPaths.length) {
|
||||
throw new SchematicsException(
|
||||
|
Reference in New Issue
Block a user