Skip to content

docs(package-json): note that line endings are inferred#7382

Merged
wraithgar merged 1 commit intonpm:latestfrom
ertw:patch-2
Apr 16, 2024
Merged

docs(package-json): note that line endings are inferred#7382
wraithgar merged 1 commit intonpm:latestfrom
ertw:patch-2

Conversation

@ertw
Copy link
Copy Markdown
Contributor

@ertw ertw commented Apr 16, 2024

What

Per npm/json-parse-even-better-errors#3 (comment), npm will implicitly update line endings, spacing, etc of package-lock.json so that it matches package.json

Why

I'd like to add this documentation because it does not seem to be documented anywhere, and as it is an implicit and non-configurable behavior, it took me a long time to figure out the cause.

References

npm/json-parse-even-better-errors#3 (comment)

Per npm/json-parse-even-better-errors#3 (comment), npm will implicitly update line endings, spacing, etc of `package-lock.json` so that it matches `package.json` 

I'd like to add this documentation because it does not seem to be documented anywhere, and as it is an implicit and non-configurable behavior, it took me a long time to figure out the cause.
@ertw ertw requested a review from a team as a code owner April 16, 2024 21:15
@wraithgar wraithgar changed the title Update package-lock-json.md docs(package-json): note that line endings are inferred Apr 16, 2024
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.

2 participants