Skip to content

Commit cbcf1bc

Browse files
committed
Add missing wordpress deps to dataviews build process for storybook
1 parent 751c31f commit cbcf1bc

File tree

2 files changed

+10547
-3614
lines changed

2 files changed

+10547
-3614
lines changed

.pnpmfile.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ function fixDeps( pkg ) {
7171
'@use-gesture/react',
7272
'use-memo-one',
7373
'uuid',
74+
// Needed for storybook to build with the /wp endpoint. Normal builds don't need them due to dependency extraction.
75+
'@wordpress/date',
76+
'@wordpress/hooks',
7477
] ) {
7578
pkg.optionalDependencies[ dep ] = '*';
7679
}

0 commit comments

Comments
 (0)