cli commands (add
, update
) remove empty lines from package.json
#12092
Milestone
add
, update
) remove empty lines from package.json
#12092
From @gkalpak on May 18, 2018 11:11
Bug Report or Feature Request (mark with an
x
)Area
Versions
All
Repro steps
Some commands that modify
package.json
(e.g.ng update ...
orng add @angulatr/pwa
(probably otherng add
commands as well), remove an extra empty lines at the end of the file.Desired functionality
Modifications in
package.json
should preserve empty lines. (Ideally, all whitespace should be preserved.)Having an empty line at the end of each file is a common convention and removing such lines creates unnecessary noise in diffs. (Also note that other tools (e.g.
yarn install
) tend to add them back, which creates more unnecessary noise 😁)Copied from original issue: angular/devkit#940
The text was updated successfully, but these errors were encountered: