Skip to content

Commit

Permalink
style(@schematics/angular): prevent adding redundant whitespace in ge…
Browse files Browse the repository at this point in the history
…nerated 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.

(cherry picked from commit ed90080)
  • Loading branch information
wojteko22 authored and dgp1130 committed Mar 23, 2020
1 parent cc913e2 commit e6d4cc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1, <% if (packageManager) { %>
"version": 1,<% if (packageManager) { %>
"cli": {
"packageManager": "<%= packageManager %>"
},<% } %>
Expand Down

0 comments on commit e6d4cc2

Please sign in to comment.