Skip to content

Commit

Permalink
Add missing dependency of @wordpress/patterns on @babel/runtime (#…
Browse files Browse the repository at this point in the history
…54118)

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/patterns depends on @babel/runtime (fixes #54115)
  • Loading branch information
anomiex authored Sep 2, 2023
1 parent f454434 commit 3b114f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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/patterns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"{src,build,build-module}/{index.js,store/index.js,hooks/**}"
],
"dependencies": {
"@babel/runtime": "^7.16.0",
"@wordpress/block-editor": "file:../block-editor",
"@wordpress/blocks": "file:../blocks",
"@wordpress/components": "file:../components",
Expand Down

0 comments on commit 3b114f7

Please sign in to comment.