Skip to content

Commit

Permalink
Update wordpress monorepo (#39999)
Browse files Browse the repository at this point in the history
* Update wordpress monorepo
* Drop some unneeded `@wordpress/babel-preset-default` deps.
* Pnpmfile hack to avoid redundant `@babel/` deps from
  `@wordpress/babel-preset-default`.
  * Moving to eslint 9 may let us pnpmfile-hack to remove the dep
    entirely from `@wordpress/eslint-plugin` instead.
* Fix a really weird test failure. See [this comment][1] for details.

[1]: #39999 (comment)

---------

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Brad Jorsch <brad.jorsch@automattic.com>
  • Loading branch information
3 people authored Nov 7, 2024
1 parent 75e11f4 commit 988d970
Show file tree
Hide file tree
Showing 95 changed files with 2,191 additions and 2,295 deletions.
9 changes: 9 additions & 0 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ function fixDeps( pkg ) {
}
}

// Unnecessarily explicit deps. I don't think we really even need @wordpress/babel-preset-default at all.
if ( pkg.name === '@wordpress/babel-preset-default' || pkg.name === '@wordpress/eslint-plugin' ) {
for ( const [ dep, ver ] of Object.entries( pkg.dependencies ) ) {
if ( dep.startsWith( '@babel/' ) && ! ver.startsWith( '^' ) && ! ver.startsWith( '>' ) ) {
pkg.dependencies[ dep ] = '^' + ver;
}
}
}

// Update localtunnel axios dep to avoid CVE
// https://github.com/localtunnel/localtunnel/issues/632
if ( pkg.name === 'localtunnel' && pkg.dependencies.axios === '0.21.4' ) {
Expand Down
Loading

0 comments on commit 988d970

Please sign in to comment.