Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrader: Add trailing newline to package.json #362

Merged
merged 1 commit into from Sep 27, 2018

Conversation

JHilker
Copy link
Contributor

@JHilker JHilker commented Sep 26, 2018

By default npm includes a trailing newline when it writes the package.json. this preserves that behavior to not cause churn in the file in the most common case.

https://github.com/npm/cli/blob/4c65cd952bc8627811735bea76b9b110cc4fc80e/lib/install/update-package-json.js#L48

By default npm includes a trailing newline when it writes the `package.json`. this preserves that behavior to not cause churn in the file in the most common case.
@typicode
Copy link
Owner

Thank you! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants