fix(core): undecorated-classes-with-di migration should report config… · angular/angular@c0ad47a · GitHub
Skip to content

Commit c0ad47a

Browse files
devversionatscott
authored andcommitted
fix(core): undecorated-classes-with-di migration should report config errors (#33567)
Currently TypeScript projects with an invalid tsconfig configuration, cause the undecorated-classes-with-di migration to throw. Instead we should gracefully exit the migration (like we do for syntactical diagnostics), but report that there are configuration issues. This issue surfaced when testing this migration in combination with the Angular CLI migrations. One of the CLI migrations currently causes invalid tsconfig files which then cause this issue in the undecorated-classes-with-di migration. PR Close #33567
1 parent 4b62ba9 commit c0ad47a

2 files changed

Lines changed: 47 additions & 4 deletions

File tree

packages/core/schematics/migrations/undecorated-classes-with-di/index.ts

Lines changed: 20 additions & 4 deletions

packages/core/schematics/test/undecorated_classes_with_di_migration_spec.ts

Lines changed: 27 additions & 0 deletions

0 commit comments

Comments
 (0)