Sync package-lock.json on latest NPM#70839
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: -630 B (-0.03%) Total Size: 1.89 MB
ℹ️ View Unchanged
|
sirreal
left a comment
There was a problem hiding this comment.
Thank you.
On trunk, npm ci fails (lockfile out of date). On this branch it works correctly with npm 10 and 11.
I'm surprised CI does not prevent getting into this state.
I opened #70844 as a potential improvement here. |
What?
Updates
package-lock.jsonto commit changes caused ontrunkwhen runningnpm installwith the latest version of npm (v11.4.2 at time of writing).Split from #70799
Why?
npm installshould not cause local changespackage-lock.jsonshould be kept in sync with the result ofnpm installTesting Instructions
You can manually verify these changes are correct on trunk:
git checkout trunknpm install -g npm@latestnpm installgit diff update/sync-package-lock