Skip to content

chore(docs): remove license metadata from lockfile to prevent git churn#378

Open
guylamar2006 wants to merge 1 commit intoPolyMeilex:masterfrom
guylamar2006:fix-git-churn
Open

chore(docs): remove license metadata from lockfile to prevent git churn#378
guylamar2006 wants to merge 1 commit intoPolyMeilex:masterfrom
guylamar2006:fix-git-churn

Conversation

@guylamar2006
Copy link
Copy Markdown
Contributor

Modern npm (v9+) uses the Abbreviated Metadata API during targeted package installations, which intentionally omits non-essential fields like license to save bandwidth.

This causes constant Git churn where the license field disappears during quick updates and reappears during full installs. We are preemptively stripping the license fields from the lockfile to stabilize it and reduce meaningless diff noise. The actual licenses remain perfectly intact inside the physical node_modules/*/package.json files.

Modern npm (v9+) uses the Abbreviated Metadata API during targeted package
installations, which intentionally omits non-essential fields like `license`
to save bandwidth.

This causes constant Git churn where the license field disappears during
quick updates and reappears during full installs. We are preemptively
stripping the license fields from the lockfile to stabilize it and reduce
meaningless diff noise. The actual licenses remain perfectly intact inside
the physical `node_modules/*/package.json` files.
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.

1 participant