Skip to content

Commit 3ec1291

Browse files
alan-agius4devversion
authored andcommitted
fix(material/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 0b59637 commit 3ec1291

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

src/material/schematics/ng-generate/address-form/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
},

src/material/schematics/ng-generate/dashboard/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
},

src/material/schematics/ng-generate/navigation/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
},

src/material/schematics/ng-generate/table/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
},

src/material/schematics/ng-generate/tree/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)