From d5aedbe89256e8e6a6d2a4aa09682e383f6d2290 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 21 Nov 2019 19:20:30 +0100 Subject: [PATCH] refactor(core): update undecorated-classes-with-di migration rerun command (#33958) With Angular CLI version 9 RC 3 we can run a single migration for a package using the name of the migration schematic. We need to pass the schematic name as a value to the `migrate-only` option. Ex: ``` ng update @angular/core --migrate-only migration-v9-undecorated-classes-with-di ``` See: https://github.com/angular/angular-cli/pull/16174 PR Close #33958 --- .../schematics/migrations/undecorated-classes-with-di/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/schematics/migrations/undecorated-classes-with-di/index.ts b/packages/core/schematics/migrations/undecorated-classes-with-di/index.ts index 801910df1c..a2b6f56766 100644 --- a/packages/core/schematics/migrations/undecorated-classes-with-di/index.ts +++ b/packages/core/schematics/migrations/undecorated-classes-with-di/index.ts @@ -24,7 +24,7 @@ import {UndecoratedClassesTransform} from './transform'; import {UpdateRecorder} from './update_recorder'; const MIGRATION_RERUN_MESSAGE = 'Migration can be rerun with: "ng update @angular/core ' + - '--from 8.0.0 --to 9.0.0 --migrate-only"'; + '--migrate-only migration-v9-undecorated-classes-with-di"'; const MIGRATION_AOT_FAILURE = 'This migration uses the Angular compiler internally and ' + 'therefore projects that no longer build successfully after the update cannot run ' +