Closed mmun closed 9 years ago
The problem is that most editors are configured to add trailing newlines on save, since this is better for git diffs in general. And sometimes you just have to edit package.json
with an editor. ¯_(ツ)_/¯
This is one of those things I've just given up on. Software amirite?
@slindberg That's true. npm install --save some-new-dep
also renormalizes the package.json to have a newline at the end (among other things). The problem is that ember-cli-release removes the newline, so you're constantly fighting npm & your editor.
I'll try and find how npm install
does its normalization.
Ahhh, I understand now. Although for some reason I thought that doing an npm install --save ...
stripped the newline. Must have been caused by other dev's editors or something.
Not that big of a deal, but it would be nice to avoid changing the whitespace, as demonstrated in this commit:
https://github.com/tildeio/htmlbars/commit/a5bb78d179d8126f5c622d00e98ca1e00c0322dc