diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9e176bf83be6..f9259e6c4d2e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -399,6 +399,8 @@ jobs: run: | cd projects/js-packages/storybook node bin/webserver.mjs + # Work around a probable bug in jest-playwright-preset, which should be going away when we update @storybook/test-runner to v0.24.1+. + export NODE_PATH=$( dirname "$( dirname "$( realpath node_modules/@storybook/test-runner )" )" ) REFERENCE_URL=https://automattic.github.io/jetpack-storybook/ pnpm exec test-storybook -c storybook --url 'http://127.0.0.1:6006/index.html' # Probably this should be a linting test, but we don't run linting on trunk or release branches. diff --git a/.npmrc b/.npmrc index 2035b3e9b768..35b01a6bfcde 100644 --- a/.npmrc +++ b/.npmrc @@ -1,35 +1,2 @@ -save-exact = true -prefer-workspace-packages = true -strict-peer-dependencies = true -use-lockfile-v6 = true -# Force node version -engine-strict = true - -# No hoisting by default. -hoist-pattern=[] -public-hoist-pattern=[] - -# Be strict about peer deps -auto-install-peers = false -dedupe-peer-dependents = false - -# Silence this warning. Our `jetpack dependencies build-order` (also used by `jetpack build --all`) checks for cycles itself, plus it has a way to indicate that a dep is only for testing. -ignore-workspace-cycles = true - -# Opinion seems divided on whether the new default 'lowest-direct' is good or bad. -# https://github.com/pnpm/pnpm/issues/6463 -# https://github.com/pnpm/pnpm/issues/6498 -# Also it would need a renovate config change (`rangeStrategy` to "bump" or "pin" for JS packages). -# Let's stick with the historical behavior for now. -resolution-mode = highest - # @automattic/jetpack-webpack-config looks for this. jetpack-webpack-config-resolve-conditions=jetpack:src - -manage-package-manager-versions=false - -# Ensure dependencies were properly built. -strict-dep-builds = true - -# Warn if `node_modules` do not match lockfile. -verify-deps-before-run = install diff --git a/package.json b/package.json index 341e30098834..2da16e411d20 100644 --- a/package.json +++ b/package.json @@ -40,85 +40,5 @@ "engines": { "node": "^22.19.0", "pnpm": "^10.22.0" - }, - "pnpm": { - "ignoredBuiltDependencies": [ - "@swc/core", - "core-js", - "esbuild", - "print-this", - "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@<11": ".pnpm-patches/uuid.patch" - } } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0292bca48e9a..57e78a2ae7b5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7747,9 +7747,6 @@ packages: '@napi-rs/wasm-runtime@0.2.12': resolution: {integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==} - '@napi-rs/wasm-runtime@1.0.7': - resolution: {integrity: sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==} - '@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1': resolution: {integrity: sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg==} @@ -8059,88 +8056,38 @@ packages: cpu: [arm64] os: [android] - '@oxc-parser/binding-darwin-arm64@0.78.0': - resolution: {integrity: sha512-MdoPQhdKnQ5QZzws9hW4+Ew+59ftOUlQvOTDJ6HeVNxMU4+DBBOycFniRrqqhM1OUfrMjTtJ7kmx7Eoy4SvtWA==} - engines: {node: '>=20.0.0'} - cpu: [arm64] - os: [darwin] - - '@oxc-parser/binding-darwin-x64@0.78.0': - resolution: {integrity: sha512-R7psaP7nmFA9KwdHv/ppdWVHsI6Eo6LeFxMmc7KKQEcKC0Po+PlgUosbcvJfLybFNLeAVLBVbMtCf0GhuvCdoQ==} - engines: {node: '>=20.0.0'} - cpu: [x64] - os: [darwin] - '@oxc-parser/binding-freebsd-x64@0.78.0': resolution: {integrity: sha512-EFva2L+0JdItSAQR3ESf06mt6gMUu0pX0NJ1WYUf171RMUxl4N6VD81UDmLt9SRVNaghF3J6MVtnLsTtMXZArg==} engines: {node: '>=20.0.0'} cpu: [x64] os: [freebsd] - '@oxc-parser/binding-linux-arm-gnueabihf@0.78.0': - resolution: {integrity: sha512-d4DgfgA4hw4WcMBWkHzZKZo8Wq4Nj2ANV645pyxW8kPfGC5yP5KA74gZcUAYlRzfNUZ51huIQbaHTb8EVibIhQ==} - engines: {node: '>=20.0.0'} - cpu: [arm] - os: [linux] - '@oxc-parser/binding-linux-arm-musleabihf@0.78.0': resolution: {integrity: sha512-JVf1+9JMLCtRi6wguZ6ZA/xRBmJxE55FFBoshEpuFLCtT0UVNabjN55Wp3Wd09TDxXOZOxkjEzYGxek24vtazA==} engines: {node: '>=20.0.0'} cpu: [arm] os: [linux] - '@oxc-parser/binding-linux-arm64-gnu@0.78.0': - resolution: {integrity: sha512-YbXJzCfZ6Tyupe/z0+OerL65JY9KU069Yh0G4mGMVNr7taW2jtsuUiV6CWdgNpXnXJTgKopjyHvc0g9yQsG2Rg==} - engines: {node: '>=20.0.0'} - cpu: [arm64] - os: [linux] - - '@oxc-parser/binding-linux-arm64-musl@0.78.0': - resolution: {integrity: sha512-VBdPB2N37A+M49zPV8ziiFywlgE3VX3AnR+zT1cIdQyKDoFM3uGPtjmtRe1qw6KhFF5YtxInzb0v3E3VkSdhuQ==} - engines: {node: '>=20.0.0'} - cpu: [arm64] - os: [linux] - '@oxc-parser/binding-linux-riscv64-gnu@0.78.0': resolution: {integrity: sha512-743OajvLP/fJm2d2da4/vqLMfki6XxfXizbUfPzEAXJMH0vEjf63s4gf55SBuy6hpmXOdCW5k4L6AoS+E89qtw==} engines: {node: '>=20.0.0'} cpu: [riscv64] os: [linux] + libc: [glibc] '@oxc-parser/binding-linux-s390x-gnu@0.78.0': resolution: {integrity: sha512-z3HVOr6F1PpKAxzwwG9NKfFmCCMMI8MbmxZ3l+UKKViFD9NlJYKx+Afye3SgHHTkYKEm3POgmmR4Aq3kKMP7sQ==} engines: {node: '>=20.0.0'} cpu: [s390x] os: [linux] + libc: [glibc] '@oxc-parser/binding-linux-x64-gnu@0.78.0': resolution: {integrity: sha512-qJULpZeRsN0mfxasPh8EzzE7lsEEMEEtcprgw8QetB5l1Urz4gzKyeKdqs1vuxBl9o0s+WHSiowH2YqFMALs/g==} engines: {node: '>=20.0.0'} cpu: [x64] os: [linux] - - '@oxc-parser/binding-linux-x64-musl@0.78.0': - resolution: {integrity: sha512-ctEL662Oe9Gaqf/48lsVZzAMcAcXIWsddZy59kGH7592rJBaXxmQhkOnnVEeJF25k4JMbCCdYwGsgI7WtC+Fdg==} - engines: {node: '>=20.0.0'} - cpu: [x64] - os: [linux] - - '@oxc-parser/binding-wasm32-wasi@0.78.0': - resolution: {integrity: sha512-Pq0uT2CuN3J7Tv3KLuO7Sh4C7zTuqdJl0IDg3zB5keKx0BSbaEWewJL2CUNYUlG8txf+sMpUV+bkAIS5MEcKAw==} - engines: {node: '>=14.0.0'} - cpu: [wasm32] - - '@oxc-parser/binding-win32-arm64-msvc@0.78.0': - resolution: {integrity: sha512-OBsfQKaF+ckV792JP+jIRGuRhiRWHuu9xYHnLzOQj4TqurpbPWUXuMZ9mdpZ4pAT1OxmzzRV1hZPrL1e1ms9uA==} - engines: {node: '>=20.0.0'} - cpu: [arm64] - os: [win32] - - '@oxc-parser/binding-win32-x64-msvc@0.78.0': - resolution: {integrity: sha512-0XLQIzU16tnOu6zVrsWAL/kp8Onv0YCQPIwoTXonbhwbVp0rtgCOF4WsY6GKH45FqX9LwP+H8wOTtjyKYl3Zaw==} - engines: {node: '>=20.0.0'} - cpu: [x64] - os: [win32] + libc: [glibc] '@oxc-project/types@0.78.0': resolution: {integrity: sha512-8FvExh0WRWN1FoSTjah1xa9RlavZcJQ8/yxRbZ7ElmSa2Ij5f5Em7MvRbSthE6FbwC6Wh8iAw0Gpna7QdoqLGg==} @@ -8548,56 +8495,67 @@ packages: resolution: {integrity: sha512-EPlb95nUsz6Dd9Qy13fI5kUPXNSljaG9FiJ4YUGU1O/Q77i5DYFW5KR8g1OzTcdZUqQQ1KdDqsTohdFVwCwjqg==} cpu: [arm] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.53.2': resolution: {integrity: sha512-BOmnVW+khAUX+YZvNfa0tGTEMVVEerOxN0pDk2E6N6DsEIa2Ctj48FOMfNDdrwinocKaC7YXUZ1pHlKpnkja/Q==} cpu: [arm] os: [linux] + libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.53.2': resolution: {integrity: sha512-Xt2byDZ+6OVNuREgBXr4+CZDJtrVso5woFtpKdGPhpTPHcNG7D8YXeQzpNbFRxzTVqJf7kvPMCub/pcGUWgBjA==} cpu: [arm64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.53.2': resolution: {integrity: sha512-+LdZSldy/I9N8+klim/Y1HsKbJ3BbInHav5qE9Iy77dtHC/pibw1SR/fXlWyAk0ThnpRKoODwnAuSjqxFRDHUQ==} cpu: [arm64] os: [linux] + libc: [musl] '@rollup/rollup-linux-loong64-gnu@4.53.2': resolution: {integrity: sha512-8ms8sjmyc1jWJS6WdNSA23rEfdjWB30LH8Wqj0Cqvv7qSHnvw6kgMMXRdop6hkmGPlyYBdRPkjJnj3KCUHV/uQ==} cpu: [loong64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-ppc64-gnu@4.53.2': resolution: {integrity: sha512-3HRQLUQbpBDMmzoxPJYd3W6vrVHOo2cVW8RUo87Xz0JPJcBLBr5kZ1pGcQAhdZgX9VV7NbGNipah1omKKe23/g==} cpu: [ppc64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.53.2': resolution: {integrity: sha512-fMjKi+ojnmIvhk34gZP94vjogXNNUKMEYs+EDaB/5TG/wUkoeua7p7VCHnE6T2Tx+iaghAqQX8teQzcvrYpaQA==} cpu: [riscv64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-riscv64-musl@4.53.2': resolution: {integrity: sha512-XuGFGU+VwUUV5kLvoAdi0Wz5Xbh2SrjIxCtZj6Wq8MDp4bflb/+ThZsVxokM7n0pcbkEr2h5/pzqzDYI7cCgLQ==} cpu: [riscv64] os: [linux] + libc: [musl] '@rollup/rollup-linux-s390x-gnu@4.53.2': resolution: {integrity: sha512-w6yjZF0P+NGzWR3AXWX9zc0DNEGdtvykB03uhonSHMRa+oWA6novflo2WaJr6JZakG2ucsyb+rvhrKac6NIy+w==} cpu: [s390x] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.53.2': resolution: {integrity: sha512-yo8d6tdfdeBArzC7T/PnHd7OypfI9cbuZzPnzLJIyKYFhAQ8SvlkKtKBMbXDxe1h03Rcr7u++nFS7tqXz87Gtw==} cpu: [x64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-musl@4.53.2': resolution: {integrity: sha512-ah59c1YkCxKExPP8O9PwOvs+XRLKwh/mV+3YdKqQ5AMQ0r4M4ZDuOrpWkUaqO7fzAHdINzV9tEVu8vNw48z0lA==} cpu: [x64] os: [linux] + libc: [musl] '@rollup/rollup-openharmony-arm64@4.53.2': resolution: {integrity: sha512-4VEd19Wmhr+Zy7hbUsFZ6YXEiP48hE//KPLCSVNY5RMGX2/7HZ+QkN55a3atM1C/BZCGIgqN+xrVgtdak2S9+A==} @@ -8956,24 +8914,28 @@ packages: engines: {node: '>=10'} cpu: [arm64] os: [linux] + libc: [glibc] '@swc/core-linux-arm64-musl@1.15.1': resolution: {integrity: sha512-fKzP9mRQGbhc5QhJPIsqKNNX/jyWrZgBxmo3Nz1SPaepfCUc7RFmtcJQI5q8xAun3XabXjh90wqcY/OVyg2+Kg==} engines: {node: '>=10'} cpu: [arm64] os: [linux] + libc: [musl] '@swc/core-linux-x64-gnu@1.15.1': resolution: {integrity: sha512-ZLjMi138uTJxb+1wzo4cB8mIbJbAsSLWRNeHc1g1pMvkERPWOGlem+LEYkkzaFzCNv1J8aKcL653Vtw8INHQeg==} engines: {node: '>=10'} cpu: [x64] os: [linux] + libc: [glibc] '@swc/core-linux-x64-musl@1.15.1': resolution: {integrity: sha512-jvSI1IdsIYey5kOITzyajjofXOOySVitmLxb45OPUjoNojql4sDojvlW5zoHXXFePdA6qAX4Y6KbzAOV3T3ctA==} engines: {node: '>=10'} cpu: [x64] os: [linux] + libc: [musl] '@swc/core-win32-arm64-msvc@1.15.1': resolution: {integrity: sha512-X/FcDtNrDdY9r4FcXHt9QxUqC/2FbQdvZobCKHlHe8vTSKhUHOilWl5EBtkFVfsEs4D5/yAri9e3bJbwyBhhBw==} @@ -9500,41 +9462,49 @@ packages: resolution: {integrity: sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==} cpu: [arm64] os: [linux] + libc: [glibc] '@unrs/resolver-binding-linux-arm64-musl@1.11.1': resolution: {integrity: sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==} cpu: [arm64] os: [linux] + libc: [musl] '@unrs/resolver-binding-linux-ppc64-gnu@1.11.1': resolution: {integrity: sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==} cpu: [ppc64] os: [linux] + libc: [glibc] '@unrs/resolver-binding-linux-riscv64-gnu@1.11.1': resolution: {integrity: sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==} cpu: [riscv64] os: [linux] + libc: [glibc] '@unrs/resolver-binding-linux-riscv64-musl@1.11.1': resolution: {integrity: sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==} cpu: [riscv64] os: [linux] + libc: [musl] '@unrs/resolver-binding-linux-s390x-gnu@1.11.1': resolution: {integrity: sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==} cpu: [s390x] os: [linux] + libc: [glibc] '@unrs/resolver-binding-linux-x64-gnu@1.11.1': resolution: {integrity: sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==} cpu: [x64] os: [linux] + libc: [glibc] '@unrs/resolver-binding-linux-x64-musl@1.11.1': resolution: {integrity: sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==} cpu: [x64] os: [linux] + libc: [musl] '@unrs/resolver-binding-wasm32-wasi@1.11.1': resolution: {integrity: sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==} @@ -19518,13 +19488,6 @@ snapshots: '@tybys/wasm-util': 0.10.1 optional: true - '@napi-rs/wasm-runtime@1.0.7': - dependencies: - '@emnapi/core': 1.7.0 - '@emnapi/runtime': 1.7.0 - '@tybys/wasm-util': 0.10.1 - optional: true - '@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1': dependencies: eslint-scope: 5.1.1 @@ -19906,27 +19869,12 @@ snapshots: '@oxc-parser/binding-android-arm64@0.78.0': optional: true - '@oxc-parser/binding-darwin-arm64@0.78.0': - optional: true - - '@oxc-parser/binding-darwin-x64@0.78.0': - optional: true - '@oxc-parser/binding-freebsd-x64@0.78.0': optional: true - '@oxc-parser/binding-linux-arm-gnueabihf@0.78.0': - optional: true - '@oxc-parser/binding-linux-arm-musleabihf@0.78.0': optional: true - '@oxc-parser/binding-linux-arm64-gnu@0.78.0': - optional: true - - '@oxc-parser/binding-linux-arm64-musl@0.78.0': - optional: true - '@oxc-parser/binding-linux-riscv64-gnu@0.78.0': optional: true @@ -19936,20 +19884,6 @@ snapshots: '@oxc-parser/binding-linux-x64-gnu@0.78.0': optional: true - '@oxc-parser/binding-linux-x64-musl@0.78.0': - optional: true - - '@oxc-parser/binding-wasm32-wasi@0.78.0': - dependencies: - '@napi-rs/wasm-runtime': 1.0.7 - optional: true - - '@oxc-parser/binding-win32-arm64-msvc@0.78.0': - optional: true - - '@oxc-parser/binding-win32-x64-msvc@0.78.0': - optional: true - '@oxc-project/types@0.78.0': {} '@paulirish/trace_engine@0.0.59': @@ -29269,20 +29203,11 @@ snapshots: '@oxc-project/types': 0.78.0 optionalDependencies: '@oxc-parser/binding-android-arm64': 0.78.0 - '@oxc-parser/binding-darwin-arm64': 0.78.0 - '@oxc-parser/binding-darwin-x64': 0.78.0 '@oxc-parser/binding-freebsd-x64': 0.78.0 - '@oxc-parser/binding-linux-arm-gnueabihf': 0.78.0 '@oxc-parser/binding-linux-arm-musleabihf': 0.78.0 - '@oxc-parser/binding-linux-arm64-gnu': 0.78.0 - '@oxc-parser/binding-linux-arm64-musl': 0.78.0 '@oxc-parser/binding-linux-riscv64-gnu': 0.78.0 '@oxc-parser/binding-linux-s390x-gnu': 0.78.0 '@oxc-parser/binding-linux-x64-gnu': 0.78.0 - '@oxc-parser/binding-linux-x64-musl': 0.78.0 - '@oxc-parser/binding-wasm32-wasi': 0.78.0 - '@oxc-parser/binding-win32-arm64-msvc': 0.78.0 - '@oxc-parser/binding-win32-x64-msvc': 0.78.0 p-debounce@4.0.0: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 61003850e0ee..96a8f894ea0f 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,8 +1,133 @@ packages: - - 'projects/*/*' + - projects/*/* - '!projects/js-packages/jetpack-cli' - - 'projects/plugins/*/tests/e2e' - - 'tools/cli' - - 'tools/e2e-commons' - - 'tools/js-tools' - - '.github/files/coverage-munger' + - projects/plugins/*/tests/e2e + - tools/cli + - tools/e2e-commons + - tools/js-tools + - .github/files/coverage-munger + +engineStrict: true +managePackageManagerVersions: false +preferWorkspacePackages: true + +# Be strict about peer deps +autoInstallPeers: false +dedupePeerDependents: false +strictPeerDependencies: true + +# No hoisting by default. +hoistPattern: [] + +# Silence this warning. Our `jetpack dependencies build-order` (also used by `jetpack build --all`) checks for cycles itself, plus it has a way to indicate that a dep is only for testing. +ignoreWorkspaceCycles: true + +# Package compromise avoidance: let new releases age a day, and don't allow trust downgrades unless explicitly excepted. +minimumReleaseAge: 1440 +minimumReleaseAgeExclude: + # Calypso packages and other Automattic-controlled things. We'll often want to immediately update these after releasing them. + - '@automattic/*' +trustPolicy: no-downgrade +trustPolicyExclude: + # https://github.com/paulmillr/chokidar/issues/1440 + - chokidar@4.0.3 + + # Don't know why 5.1.0 had provenance but 5.1.1 doesn't. But both are over a year old and there's nothing suspicious in the diff. 🤷 + - reselect@5.1.1 + + # Packages where newer majors have provenance but we're still on an older one. + - '@octokit/endpoint@9.0.6' + - '@octokit/plugin-paginate-rest@9.2.2' + - '@oxc-parser/binding-linux-x64-gnu@0.78.0' + - rxjs@7.8.2 + - semver@6.3.1 + - svelte@4.2.19 + - undici@5.29.0 + - undici-types@6.21.0 + +# Package compromise avoidance: require dep build script approval. +strictDepBuilds: true +verifyDepsBeforeRun: install +ignoredBuiltDependencies: + - '@swc/core' + - core-js + - esbuild + - print-this + - svelte-preprocess + - unrs-resolver + +# Dependencies needing patching. +patchedDependencies: + + # Gutenberg packages all have their ESM files flagged as CommonJS. + # https://github.com/WordPress/gutenberg/issues/73363 + "@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 up to v11 had CommonJS files with ESM content too. + # No bug report, because it's already fixed in the latest versions. + "uuid@<11": .pnpm-patches/uuid.patch diff --git a/projects/packages/subscribers-dashboard/changelog/update-pnpm-configs b/projects/packages/subscribers-dashboard/changelog/update-pnpm-configs new file mode 100644 index 000000000000..8734481c354c --- /dev/null +++ b/projects/packages/subscribers-dashboard/changelog/update-pnpm-configs @@ -0,0 +1,5 @@ +Significance: patch +Type: removed +Comment: Remove unnecessary `resolve.alias` and `resolve.fallback` in webpack config. + + diff --git a/projects/packages/subscribers-dashboard/webpack.config.js b/projects/packages/subscribers-dashboard/webpack.config.js index f6590d8b802b..ac7b85e4f586 100644 --- a/projects/packages/subscribers-dashboard/webpack.config.js +++ b/projects/packages/subscribers-dashboard/webpack.config.js @@ -15,17 +15,7 @@ module.exports = [ optimization: { ...jetpackWebpackConfig.optimization, }, - resolve: { - ...jetpackWebpackConfig.resolve, - alias: { - ...jetpackWebpackConfig.resolve.alias, - '@automattic/calypso-config': '@automattic/calypso-config/src/client.js', - }, - fallback: { - ...jetpackWebpackConfig.resolve.fallback, - events: require.resolve( 'events/' ), - }, - }, + resolve: jetpackWebpackConfig.resolve, node: false, plugins: [ ...jetpackWebpackConfig.StandardPlugins() ], module: {