Skip to content

Commit 61d2e67

Browse files
cexbrayatalan-agius4
authored andcommitted
refactor(@angular/cli): use inject migration in mcp modernize tool
The documentation URL already references the inject migration. `inject-flags` is a migration that can't be run via `ng g @angular/core`.
1 parent 0e97b79 commit 61d2e67

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/angular/cli/src/commands/mcp/tools/modernize.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ const TRANSFORMATIONS: Array<Transformation> = [
3636
documentationUrl: 'https://angular.dev/guide/testing/dependency-injection',
3737
},
3838
{
39-
name: 'inject-flags',
40-
description:
41-
'Updates `inject` calls from using the InjectFlags enum to a more modern and readable options object.',
39+
name: 'inject',
40+
description: 'Converts usages of constructor-based injection to the inject() function.',
4241
documentationUrl: 'https://angular.dev/reference/migrations/inject-function',
4342
},
4443
{

0 commit comments

Comments
 (0)