-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Build: Fix package dependencies issues discovered with pnpm #37396
Conversation
0978eab
to
eb98ae0
Compare
eb98ae0
to
80b7d76
Compare
Props to @youknowriad to fixing all those subtle bug while exploring pnpm in Gutenberg with #37324.
80b7d76
to
d166e55
Compare
Size Change: 0 B Total Size: 1.13 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there are more missing deps (see failures in tests in pnpm branch) but this is a good start.
I landed more fixes so you might want to rebase your branch and test again. I can tackle remaining issus as they pop up 👍🏻 |
The outdated packages resulted in the following CI failure. ``` TypeError: snapshotResolver.resolveSnapshotPath is not a function at Object._default [as default] (node_modules/jest-jasmine2/build/setup_jest_globals.js:101:41) ``` These updates were completed to resolve the error and mirror updates within the `gutenberg` submodule, which updated `jest-snapshot`: WordPress/gutenberg#37396 The cause of the error is a breaking change that landed in `jest-snapshots@27`: jestjs/jest#8829
Description
Props to @youknowriad to fixing all those subtle bug while exploring pnpm in Gutenberg with #37324.
This PR improves how we define npm dependencies in the Gutenberg project.
How has this been tested?
npm i
andnpm run build
.Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).