Skip to content

Commit

Permalink
fix(cdk/schematics): use workingDirectory smart provider in path op…
Browse files Browse the repository at this point in the history
…tion

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
  • Loading branch information
alan-agius4 authored and devversion committed May 27, 2022
1 parent 3ec1291 commit 12b35c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cdk/schematics/ng-generate/drag-drop/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"path": {
"type": "string",
"format": "path",
"$default": {
"$source": "workingDirectory"
},
"description": "The path to create the component.",
"visible": false
},
Expand Down

0 comments on commit 12b35c4

Please sign in to comment.