Skip to content

Commit 50ea6b3

Browse files
fix(schematics): add workingDirectory to schemas (#3473)
Closes #3469
1 parent e6dedd6 commit 50ea6b3

File tree

16 files changed

+61
-16
lines changed

16 files changed

+61
-16
lines changed

modules/data/schematics/ng-add/schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
"type": "string",
1919
"format": "path",
2020
"description": "The path to the module.",
21-
"visible": false
21+
"visible": false,
22+
"$default": {
23+
"$source": "workingDirectory"
24+
}
2225
},
2326
"project": {
2427
"type": "string",

modules/effects/schematics/ng-add/schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
"type": "string",
1919
"format": "path",
2020
"description": "The path to create the effect.",
21-
"visible": false
21+
"visible": false,
22+
"$default": {
23+
"$source": "workingDirectory"
24+
}
2225
},
2326
"flat": {
2427
"type": "boolean",

modules/router-store/schematics/ng-add/schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
"type": "string",
1414
"format": "path",
1515
"description": "The path to create the router store.",
16-
"visible": false
16+
"visible": false,
17+
"$default": {
18+
"$source": "workingDirectory"
19+
}
1720
},
1821
"project": {
1922
"type": "string",

modules/schematics/src/action/schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
"type": "string",
2424
"format": "path",
2525
"description": "The path to create the component.",
26-
"visible": false
26+
"visible": false,
27+
"$default": {
28+
"$source": "workingDirectory"
29+
}
2730
},
2831
"project": {
2932
"type": "string",

modules/schematics/src/component-store/schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
"type": "string",
1818
"format": "path",
1919
"description": "The path to create the component store.",
20-
"visible": false
20+
"visible": false,
21+
"$default": {
22+
"$source": "workingDirectory"
23+
}
2124
},
2225
"project": {
2326
"type": "string",

modules/schematics/src/container/schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"type": "string",
99
"format": "path",
1010
"description": "The path to create the component.",
11-
"visible": false
11+
"visible": false,
12+
"$default": {
13+
"$source": "workingDirectory"
14+
}
1215
},
1316
"project": {
1417
"type": "string",

modules/schematics/src/data/schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
"type": "string",
1717
"format": "path",
1818
"description": "The path to create the service.",
19-
"visible": false
19+
"visible": false,
20+
"$default": {
21+
"$source": "workingDirectory"
22+
}
2023
},
2124
"project": {
2225
"type": "string",

modules/schematics/src/effect/schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
"type": "string",
1818
"format": "path",
1919
"description": "The path to create the component.",
20-
"visible": false
20+
"visible": false,
21+
"$default": {
22+
"$source": "workingDirectory"
23+
}
2124
},
2225
"project": {
2326
"type": "string",

modules/schematics/src/entity/schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
"type": "string",
1818
"format": "path",
1919
"description": "The path to create the component.",
20-
"visible": false
20+
"visible": false,
21+
"$default": {
22+
"$source": "workingDirectory"
23+
}
2124
},
2225
"project": {
2326
"type": "string",

modules/schematics/src/feature/schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"type": "string",
99
"format": "path",
1010
"description": "The path to create the feature.",
11-
"visible": false
11+
"visible": false,
12+
"$default": {
13+
"$source": "workingDirectory"
14+
}
1215
},
1316
"project": {
1417
"type": "string",

0 commit comments

Comments
 (0)