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
@ -24,6 +24,10 @@ export default function(): Rule {
|
||||
const failures: string[] = [];
|
||||
|
||||
ctx.logger.info('------ Missing @Injectable migration ------');
|
||||
ctx.logger.info('In Angular 9, enforcement of @Injectable decorators for DI is a bit ');
|
||||
ctx.logger.info('stricter. Read more about this in the dedicated guide: ');
|
||||
ctx.logger.info('https://v9.angular.io/guide/migration-injectable');
|
||||
|
||||
if (!buildPaths.length && !testPaths.length) {
|
||||
throw new SchematicsException(
|
||||
'Could not find any tsconfig file. Cannot add the "@Injectable" decorator to providers ' +
|
||||
|
Reference in New Issue
Block a user