Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 9 additions & 13 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ async function fixDeps( pkg ) {
}
}

// Let's try just using the monorepo version.
if ( pkg.name === '@automattic/launchpad' && pkg.dependencies?.[ 'social-logos' ] ) {
pkg.dependencies[ 'social-logos' ] = 'workspace:*';
}

// lock()/unlock() pair through a module-scoped registry, so a prerelease
// private-apis range would resolve a second copy beside the stable one the
// repo pins and throw. Collapse it onto the version premium-analytics
Expand Down Expand Up @@ -66,11 +71,6 @@ async function fixDeps( pkg ) {
pkg.peerDependencies[ dep ] = ver.replace( /^\^?/, '>=' );
}
}
// Broaden this one further until after this is merged and Renovate does a run:
// https://github.com/Automattic/jetpack/pull/52316
if ( pkg.peerDependencies[ '@wordpress/theme' ] ) {
pkg.peerDependencies[ '@wordpress/theme' ] = '*';
}
}

// Turn `@wordpress/stylelint-config` deps into peer deps too.
Expand Down Expand Up @@ -156,13 +156,10 @@ async function fixDeps( pkg ) {
pkg.dependencies.semver = '^7.7.3';
}

// Glob decided to deprecate everything <12, even though tons of stuff still depends on older versions.
// On the plus side, the net change from v10 to v13 is deleting the CLI from the package.
if ( pkg.dependencies?.glob?.match( /^\^1[0-2](?:\.\d+)*$/ ) ) {
pkg.dependencies.glob = '^13';
}
if ( pkg.peerDependencies?.glob?.match( /^\^1[0-2](?:\.\d+)*$/ ) ) {
pkg.dependencies.glob = '^13';
// Outdated dep with a deprecated sub-dep.
// https://github.com/istanbuljs/babel-plugin-istanbul/issues/337
if ( pkg.name === 'babel-plugin-istanbul' && pkg.dependencies[ 'test-exclude' ] === '^7.0.1' ) {
pkg.dependencies[ 'test-exclude' ] = '^8.0.0';
}

// We don't use this in our E2E runs, and it brings in a lot of extraneous deps (and CVE-2026-54285).
Expand All @@ -188,7 +185,6 @@ function fixPeerDeps( pkg ) {
'eslint-plugin-import', // https://github.com/import-js/eslint-plugin-import/issues/3227
'eslint-plugin-jsx-a11y', // https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/1075
'eslint-plugin-react', // https://github.com/jsx-eslint/eslint-plugin-react/issues/3977
'@babel/eslint-parser', // https://github.com/babel/babel/issues/17951
] );
if ( eslintOldPkgs.has( pkg.name ) ) {
for ( const p of [ 'eslint' ] ) {
Expand Down
Loading
Loading