Commit 330e98512b3 for woocommerce

commit 330e98512b339323d31bf2cd633c0a1d4b6ccfee
Author: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
Date:   Wed Dec 2 14:19:22 2026 +0200

    Remove npx only-allow preinstall scripts (#71710)

    The preinstall scripts downloaded the latest only-allow from npm on
    every install, outside the lockfile and minimumReleaseAge. npm and
    yarn already fail on this repo's catalog: and workspace: versions.

diff --git a/package.json b/package.json
index a8146c52554..a372dacae4d 100644
--- a/package.json
+++ b/package.json
@@ -33,7 +33,6 @@
 		"cherry-pick": "node ./tools/cherry-pick/bin/run",
 		"clean": "rimraf -g '**/node_modules' 'packages/*/*/vendor' 'plugins/*/vendor' && pnpm store prune",
 		"clean:build": "rimraf -g '**/node_modules/.cache' '**/*.tsbuildinfo' 'packages/js/*/build' 'packages/js/*/build-*' 'packages/js/*/dist' 'plugins/*/build' 'plugins/woocommerce/client/*/build' && git clean --force -d -X --quiet ./plugins/woocommerce/assets",
-		"preinstall": "npx only-allow pnpm",
 		"postinstall": "husky",
 		"run-canonical-extensions-tests": "bash bin/run-canonical-extensions-tests.sh",
 		"sync-dependencies": "pnpm exec syncpack fix",
diff --git a/plugins/woocommerce/changelog/remove-npx-preinstall b/plugins/woocommerce/changelog/remove-npx-preinstall
new file mode 100644
index 00000000000..9ef243cb8f3
--- /dev/null
+++ b/plugins/woocommerce/changelog/remove-npx-preinstall
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Remove the unpinned npx only-allow preinstall script; dev tooling only, no production change.
diff --git a/plugins/woocommerce/package.json b/plugins/woocommerce/package.json
index e2fc75f5a8a..ceba3e15e2b 100644
--- a/plugins/woocommerce/package.json
+++ b/plugins/woocommerce/package.json
@@ -48,7 +48,6 @@
 		"env:test:restart": "pnpm wp-env:test destroy --force && pnpm wp-env:test start --update",
 		"env:test:start": "pnpm wp-env:test start --update",
 		"env:test:stop": "pnpm wp-env:test stop",
-		"preinstall": "npx only-allow pnpm",
 		"postinstall": "rimraf -g vendor/woocommerce packages/email-editor packages/blueprint && XDEBUG_MODE=off composer install --quiet",
 		"lint": "pnpm --if-present '/^lint:lang:.*$/'",
 		"lint:changes:branch": "pnpm '/^lint:changes:branch:.*$/'",
diff --git a/tools/storybook/changelog/remove-npx-preinstall b/tools/storybook/changelog/remove-npx-preinstall
new file mode 100644
index 00000000000..9ef243cb8f3
--- /dev/null
+++ b/tools/storybook/changelog/remove-npx-preinstall
@@ -0,0 +1,3 @@
+Significance: patch
+Type: dev
+Comment: Remove the unpinned npx only-allow preinstall script; dev tooling only, no production change.
diff --git a/tools/storybook/package.json b/tools/storybook/package.json
index 796876a935a..e9d0f97d402 100644
--- a/tools/storybook/package.json
+++ b/tools/storybook/package.json
@@ -16,8 +16,7 @@
 		"watch:build": "pnpm watch:build:storybook",
 		"watch:build:storybook": "./import-wp-css-storybook.sh && STORYBOOK=true BABEL_ENV=storybook storybook dev -c ./.storybook -p 6007 --ci",
 		"copy-blocks-storybook-iframe": "cp ../../plugins/woocommerce/client/blocks/storybook/dist/iframe.html ./storybook-static/assets/woocommerce-blocks",
-		"storybook-rtl": "USE_RTL_STYLE=true pnpm watch:build:storybook",
-		"preinstall": "npx only-allow pnpm"
+		"storybook-rtl": "USE_RTL_STYLE=true pnpm watch:build:storybook"
 	},
 	"engines": {
 		"node": "^24.15.0"