Skip to content

Commit ed90080

Browse files
wojteko22dgp1130
authored andcommitted
style(@schematics/angular): prevent adding redundant whitespace in generated angular.json file
Previously "ng new" was generating angular.json file containing redundant whitespace after "version" property. When file was edited some IDEs automatically removed this whitespace making additional change in diff. If "packageManager" option is used, whitespace is still present.
1 parent bc5ce39 commit ed90080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/schematics/angular/workspace/files/angular.json.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3-
"version": 1, <% if (packageManager) { %>
3+
"version": 1,<% if (packageManager) { %>
44
"cli": {
55
"packageManager": "<%= packageManager %>"
66
},<% } %>

0 commit comments

Comments
 (0)