Skip to content

Commit

Permalink
Remove obsolete pnpmfile hack
Browse files Browse the repository at this point in the history
  • Loading branch information
anomiex committed Apr 18, 2024
1 parent a2e3e36 commit 0139fae
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,6 @@ function fixDeps( pkg ) {
pkg.dependencies[ 'detect-package-manager' ] ??= '*';
}

// Outdated deps.
// https://github.com/linearlabs-workspace/storybook-addon-mock/issues/208
if ( pkg.name === 'storybook-addon-mock' ) {
for ( const [ dep, ver ] of Object.entries( pkg.dependencies ) ) {
if ( ( dep === 'storybook' || dep.startsWith( '@storybook/' ) ) && ver.match( /^\^7\./ ) ) {
pkg.dependencies[ dep ] += ' || ^8';
}
}
if ( pkg.dependencies[ '@storybook/addons' ] ) {
pkg.dependencies[ '@storybook/addons' ] = 'npm:@storybook/manager-api@^8';
}
}

// 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

0 comments on commit 0139fae

Please sign in to comment.