Skip to content

Commit 12b35c4

Browse files
alan-agius4devversion
authored andcommitted
fix(cdk/schematics): use workingDirectory smart provider in path option
The Angular CLI, handles options with both name and format `path` as a special case. This behaviour has been deprecated and instead the `workingDirectory` smart provider should be used instead. Currently, when not using the provider a deprecation warning will be issue. See: angular/angular-cli#23212
1 parent 3ec1291 commit 12b35c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cdk/schematics/ng-generate/drag-drop/schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"path": {
88
"type": "string",
99
"format": "path",
10+
"$default": {
11+
"$source": "workingDirectory"
12+
},
1013
"description": "The path to create the component.",
1114
"visible": false
1215
},

0 commit comments

Comments
 (0)