Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .pnpm-patches/@wordpress-build-modules-no-side-effects.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Hack for https://github.com/WordPress/gutenberg/issues/73363

diff --git a/build-module/package.json b/build-module/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..089153bcb5adf57dc25f206a9dad3114c9cff80d
--- /dev/null
+++ b/build-module/package.json
@@ -0,0 +1 @@
+{"type":"module","sideEffects":false}
9 changes: 9 additions & 0 deletions .pnpm-patches/@wordpress-build-modules.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Hack for https://github.com/WordPress/gutenberg/issues/73363

diff --git a/build-module/package.json b/build-module/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..089153bcb5adf57dc25f206a9dad3114c9cff80d
--- /dev/null
+++ b/build-module/package.json
@@ -0,0 +1 @@
+{"type":"module"}
16 changes: 16 additions & 0 deletions .pnpm-patches/@wordpress__block-editor.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Hack for https://github.com/WordPress/gutenberg/issues/73363

diff --git a/build-module/package.json b/build-module/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..f0545ca9fef129d2d48e3abe6266bb8c63a180f5
--- /dev/null
+++ b/build-module/package.json
@@ -0,0 +1,8 @@
+{
+ "type": "module",
+ "sideEffects": [
+ "index.js",
+ "store/index.js",
+ "hooks/**"
+ ]
+}
14 changes: 14 additions & 0 deletions .pnpm-patches/@wordpress__block-library.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Hack for https://github.com/WordPress/gutenberg/issues/73363

diff --git a/build-module/package.json b/build-module/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..86525a602634f6df4fa899b3f3ccff98fb383f97
--- /dev/null
+++ b/build-module/package.json
@@ -0,0 +1,6 @@
+{
+ "type": "module",
+ "sideEffects": [
+ "*/init.js"
+ ]
+}
14 changes: 14 additions & 0 deletions .pnpm-patches/@wordpress__blocks.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Hack for https://github.com/WordPress/gutenberg/issues/73363

diff --git a/build-module/package.json b/build-module/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..b8b0e42861ff4e6a8d35d18c3af1fd78edb5cd65
--- /dev/null
+++ b/build-module/package.json
@@ -0,0 +1,6 @@
+{
+ "type": "module",
+ "sideEffects": [
+ "{index.js,store/index.js}"
+ ]
+}
14 changes: 14 additions & 0 deletions .pnpm-patches/@wordpress__core-data.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Hack for https://github.com/WordPress/gutenberg/issues/73363

diff --git a/build-module/package.json b/build-module/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..01ba5824acf704e5bdf0f1ba39082f8b7ed45143
--- /dev/null
+++ b/build-module/package.json
@@ -0,0 +1,6 @@
+{
+ "type": "module",
+ "sideEffects": [
+ "index.js"
+ ]
+}
17 changes: 17 additions & 0 deletions .pnpm-patches/@wordpress__editor.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Hack for https://github.com/WordPress/gutenberg/issues/73363

diff --git a/build-module/package.json b/build-module/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..ec566419b6da8e8e2bca9ba950ad82c0914ea410
--- /dev/null
+++ b/build-module/package.json
@@ -0,0 +1,9 @@
+{
+ "type": "module",
+ "sideEffects": [
+ "index.js",
+ "store/index.js",
+ "hooks/**",
+ "bindings/**"
+ ]
+}
14 changes: 14 additions & 0 deletions .pnpm-patches/@wordpress__interface.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Hack for https://github.com/WordPress/gutenberg/issues/73363

diff --git a/build-module/package.json b/build-module/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..58bcd63dc1d5a2fc49de44b1760d6dbfb34b838a
--- /dev/null
+++ b/build-module/package.json
@@ -0,0 +1,6 @@
+{
+ "type": "module",
+ "sideEffects": [
+ "{index.js,store/index.js}"
+ ]
+}
14 changes: 14 additions & 0 deletions .pnpm-patches/@wordpress__patterns.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Hack for https://github.com/WordPress/gutenberg/issues/73363

diff --git a/build-module/package.json b/build-module/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..ed3b18a17925393bc4ca3f33ae7f38976518ca5f
--- /dev/null
+++ b/build-module/package.json
@@ -0,0 +1,6 @@
+{
+ "type": "module",
+ "sideEffects": [
+ "{index.js,store/index.js,hooks/**}"
+ ]
+}
14 changes: 14 additions & 0 deletions .pnpm-patches/@wordpress__reusable-blocks.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Hack for https://github.com/WordPress/gutenberg/issues/73363

diff --git a/build-module/package.json b/build-module/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..b8b0e42861ff4e6a8d35d18c3af1fd78edb5cd65
--- /dev/null
+++ b/build-module/package.json
@@ -0,0 +1,6 @@
+{
+ "type": "module",
+ "sideEffects": [
+ "{index.js,store/index.js}"
+ ]
+}
14 changes: 14 additions & 0 deletions .pnpm-patches/@wordpress__rich-text.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Hack for https://github.com/WordPress/gutenberg/issues/73363

diff --git a/build-module/package.json b/build-module/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..f652f9e7f1a2388bdf0d399ce2562c9f7fad37b8
--- /dev/null
+++ b/build-module/package.json
@@ -0,0 +1,6 @@
+{
+ "type": "module",
+ "sideEffects": [
+ "{index.js,store/index.js}"
+ ]
+}
16 changes: 16 additions & 0 deletions .pnpm-patches/uuid.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Until v11, the package contains ESM files that are flagged as CommonJS. Hack around that.

diff --git a/dist/esm-browser/package.json b/dist/esm-browser/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..b15ba83dfd0d662958567ab6671d083368e7df2c
--- /dev/null
+++ b/dist/esm-browser/package.json
@@ -0,0 +1 @@
+{"type":"module","sideEffects": false}
diff --git a/dist/esm-node/package.json b/dist/esm-node/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..b15ba83dfd0d662958567ab6671d083368e7df2c
--- /dev/null
+++ b/dist/esm-node/package.json
@@ -0,0 +1 @@
+{"type":"module","sideEffects": false}
14 changes: 12 additions & 2 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ async function fixDeps( pkg ) {
}
}

// Breaking change in @wordpress/icons v11.
if (
pkg.name === '@automattic/components' &&
pkg.dependencies[ '@wordpress/icons' ]?.startsWith( '>=10' )
) {
pkg.dependencies[ '@wordpress/icons' ] += ' <11';
}

// Outdated dependency version causing dependabot warnings.
// https://github.com/WordPress/gutenberg/issues/69557
if (
Expand All @@ -65,9 +73,11 @@ async function fixDeps( pkg ) {
}

// Missing dep or peer dep on react.
// https://github.com/WordPress/gutenberg/issues/55171
// https://github.com/WordPress/gutenberg/issues/73257
if (
pkg.name === '@wordpress/icons' &&
( pkg.name === '@wordpress/icons' ||
pkg.name === '@wordpress/media-utils' ||
pkg.name === '@wordpress/admin-ui' ) &&
! pkg.dependencies?.react &&
! pkg.peerDependencies?.react
) {
Expand Down
71 changes: 70 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,75 @@
"svelte-preprocess",
"swiper",
"unrs-resolver"
]
],
"patchedDependencies": {
"@wordpress/a11y": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/admin-ui": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/annotations": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/api-fetch": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/autop": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/blob": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/block-editor": ".pnpm-patches/@wordpress__block-editor.patch",
"@wordpress/block-library": ".pnpm-patches/@wordpress__block-library.patch",
"@wordpress/block-serialization-default-parser": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/blocks": ".pnpm-patches/@wordpress__blocks.patch",
"@wordpress/commands": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/components": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/compose": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/core-data": ".pnpm-patches/@wordpress__core-data.patch",
"@wordpress/data-controls": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/data": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/dataviews": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/date": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/deprecated": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/dom": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/dom-ready": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/editor": ".pnpm-patches/@wordpress__editor.patch",
"@wordpress/edit-post": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/element": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/escape-html": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/fields": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/format-library": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/global-styles-engine": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/global-styles-ui": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/hooks": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/html-entities": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/i18n": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/icons": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/interactivity": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/interactivity-router": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/interface": ".pnpm-patches/@wordpress__interface.patch",
"@wordpress/is-shallow-equal": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/jest-console": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/keyboard-shortcuts": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/keycodes": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/latex-to-mathml": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/media-utils": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/notices": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/patterns": ".pnpm-patches/@wordpress__patterns.patch",
"@wordpress/plugins": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/preferences": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/primitives": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/priority-queue": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/private-apis": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/react-i18n": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/redux-routine": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/reusable-blocks": ".pnpm-patches/@wordpress__reusable-blocks.patch",
"@wordpress/rich-text": ".pnpm-patches/@wordpress__rich-text.patch",
"@wordpress/router": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/server-side-render": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/shortcode": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/style-engine": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/sync": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/token-list": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/undo-manager": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/upload-media": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/url": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/viewport": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/warning": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"@wordpress/widgets": ".pnpm-patches/@wordpress-build-modules.patch",
"@wordpress/wordcount": ".pnpm-patches/@wordpress-build-modules-no-side-effects.patch",
"uuid": ".pnpm-patches/uuid.patch"
}
}
}
Loading
Loading