Skip to content

Commit

Permalink
Update dependency storybook-addon-mock to v5 (#36977)
Browse files Browse the repository at this point in the history
* Update dependency storybook-addon-mock to v5
* Remove obsolete pnpmfile hack
  • Loading branch information
matticbot authored Apr 18, 2024
1 parent 2199ce4 commit 5fe8c38
Show file tree
Hide file tree
Showing 4 changed files with 437 additions and 28 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
Loading

0 comments on commit 5fe8c38

Please sign in to comment.