Skip to content

Commit

Permalink
Lock file maintenance (#39288)
Browse files Browse the repository at this point in the history
* Lock file maintenance

* Work around parsel-js assuming "browser" is esm

* Downgrade framer-motion to 11.4.0 to avoid a deprecation

Gutenberg is planning on removing the dep entirely, so let's not go to too much trouble to work around it.

* Remove pnpmfile hack for fixed issue

---------

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Brad Jorsch <[email protected]>
  • Loading branch information
3 people authored Sep 9, 2024
1 parent d2c5a98 commit 1e3851d
Show file tree
Hide file tree
Showing 42 changed files with 2,968 additions and 2,121 deletions.
9 changes: 7 additions & 2 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ function fixDeps( pkg ) {

// Missing dep or peer dep on react.
// https://github.com/WordPress/gutenberg/issues/55171
// https://github.com/WordPress/gutenberg/issues/62250
if (
( pkg.name === '@wordpress/icons' || pkg.name === '@wordpress/primitives' ) &&
pkg.name === '@wordpress/icons' &&
! pkg.dependencies?.react &&
! pkg.peerDependencies?.react
) {
Expand Down Expand Up @@ -100,6 +99,12 @@ function fixDeps( pkg ) {
delete pkg.peerDependenciesMeta?.ajv;
}

// Gutenberg is intending to get rid of this. For now, let's just not upgrade it.
// https://github.com/WordPress/gutenberg/issues/60975
if ( pkg.name === '@wordpress/components' && pkg.dependencies?.[ 'framer-motion' ] ) {
pkg.dependencies[ 'framer-motion' ] += ' <11.5.0';
}

// Types packages have outdated deps. Reset all their `@wordpress/*` deps to star-version,
// which pnpm should 🤞 dedupe to match whatever is in use elsewhere in the monorepo.
// https://github.com/Automattic/jetpack/pull/35904#discussion_r1508681777
Expand Down
Loading

0 comments on commit 1e3851d

Please sign in to comment.