Skip to content

Commit

Permalink
Add some missing package dependencies
Browse files Browse the repository at this point in the history
Build code transformations can introduce dependencies on packages such
as @wordpress/element and @babel/runtime. These need to be declared if
the package is to function correctly with yarn's p'n'p or pnpm with
hoisting disabled.

- @wordpress/preferences depends on @wordpress/element (fixes #41341)
- @wordpress/reusable-blocks depends on @babel/runtime (fixes #41343)
- @wordpress/viewport depends on @wordpress/element (fixes #41346)
  • Loading branch information
anomiex committed Jun 20, 2023
1 parent 3257238 commit 93aea9b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/preferences/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"@wordpress/a11y": "file:../a11y",
"@wordpress/components": "file:../components",
"@wordpress/data": "file:../data",
"@wordpress/element": "file:../element",
"@wordpress/i18n": "file:../i18n",
"@wordpress/icons": "file:../icons",
"classnames": "^2.3.1"
Expand Down
1 change: 1 addition & 0 deletions packages/reusable-blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"{src,build,build-module}/{index.js,store/index.js}"
],
"dependencies": {
"@babel/runtime": "^7.16.0",
"@wordpress/block-editor": "file:../block-editor",
"@wordpress/blocks": "file:../blocks",
"@wordpress/components": "file:../components",
Expand Down
3 changes: 2 additions & 1 deletion packages/viewport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"dependencies": {
"@babel/runtime": "^7.16.0",
"@wordpress/compose": "file:../compose",
"@wordpress/data": "file:../data"
"@wordpress/data": "file:../data",
"@wordpress/element": "file:../element"
},
"peerDependencies": {
"react": "^18.0.0"
Expand Down

0 comments on commit 93aea9b

Please sign in to comment.