From e6d4cc24091bf212f109669ad7be83ebfbf09501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Oko=C5=84ski?= Date: Sat, 21 Mar 2020 16:20:39 +0100 Subject: [PATCH] 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. (cherry picked from commit ed90080f85e4b2227ac732d884bfa695f11bd1a6) --- .../schematics/angular/workspace/files/angular.json.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/schematics/angular/workspace/files/angular.json.template b/packages/schematics/angular/workspace/files/angular.json.template index 38a6487f7dc6..9924a5231347 100644 --- a/packages/schematics/angular/workspace/files/angular.json.template +++ b/packages/schematics/angular/workspace/files/angular.json.template @@ -1,6 +1,6 @@ { "$schema": "./node_modules/@angular/cli/lib/config/schema.json", - "version": 1, <% if (packageManager) { %> + "version": 1,<% if (packageManager) { %> "cli": { "packageManager": "<%= packageManager %>" },<% } %>