You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(@angular/cli): populate path with working directory in nested schematics
With this change we change the how we handle `"format": "path"` schematic property option. We replace the formatter in favour of a `SmartDefaultProvider`, which ensures that nested schematics can access the `workingDirectory`.
(cherry picked from commit e751464)
Copy file name to clipboardExpand all lines: packages/schematics/angular/component/schema.json
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,9 @@
9
9
"path": {
10
10
"type": "string",
11
11
"format": "path",
12
+
"$default": {
13
+
"$source": "workingDirectory"
14
+
},
12
15
"description": "The path at which to create the component file, relative to the current workspace. Default is a folder with the same name as the component in the project root.",
0 commit comments