-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Update lock file format to version 2 (npm 8) #36041
Conversation
Size Change: 0 B Total Size: 1.08 MB ℹ️ View Unchanged
|
This branch works locally, you can test it with:
|
@gziolo Why is this PR a Draft? And why does it have the label "Status: Blocked"? Is there anything blocking this PR? |
It’s not working on Continues Integration. Packages aren’t properly installed from npm. It’s related to outdated package forks used with React Native code. I didn’t have time to look into it closer but it was a blocker for quite some time. |
@gziolo Heads up that I created the following PR to investigate further the issues caused by React Native dependencies. I spotted a couple of issues (referenced in this issue), the first one is related to permission issues when checking out the GitHub repository of some of the dependencies. However, after removing them, I identified new issues which don't look related to React Native. You can check the errors in the different PR checks here. |
Let's close in favor of #40517 that is more up to date 😄 |
I'd like to note that I created that PR only for testing purposes 😅 , but I'm happy to continue the upgrade there if you prefer. |
I would have to recreate the branch from scratch anyway because the lock file changes so often 😄 |
Description
Related to #36142. Alternative to #37324.
Replaces #28886 (I failed to rebase the old branch from @fluiddot).
Replaces #33892 (I failed to rebase my own branch).
The new lock file format is optimized for monorepos so it would simplify the process of updating dependencies for WordPress packages. More about the new lock file format in https://blog.npmjs.org/post/621733939456933888/npm-v7-series-why-keep-package-lockjson.html. More about other changes introduced in npm 7 in https://github.blog/2021-02-02-npm-7-is-now-generally-available/.
How has this been tested?
Checklist:
*.native.js
files for terms that need renaming or removal).