Commit 9fc41deaa27 for woocommerce
commit 9fc41deaa27840f47839b7835a69f21fd7c7d13b
Author: Jorge A. Torres <jorge.torres@automattic.com>
Date: Fri Aug 7 10:28:20 2026 +0100
Keep dev-only files out of the release zip (#67077)
diff --git a/plugins/woocommerce/.distignore b/plugins/woocommerce/.distignore
index b5cf98a1bcb..5fdbaaeed1b 100644
--- a/plugins/woocommerce/.distignore
+++ b/plugins/woocommerce/.distignore
@@ -13,11 +13,18 @@
/storybook/
/tests/
/test-results/
+/lib/vendor/
+/tmp/
/vendor/*/*/tests
/packages/*/tests
/packages/*/changelog
/packages/*/node_modules
/packages/*/vendor
+/packages/*/vendor-prefixed/composer.json
+/packages/*/vendor-prefixed/patches
+/packages/*/vendor-prefixed/setup.sh
+/packages/*/vendor-prefixed/vendor
+/packages/blueprint/src/docs
/packages/email-editor/tasks
/e2e/
babel.config.js
@@ -25,13 +32,12 @@ babel.config.js
contributors.html
docker-compose.yaml
Dockerfile
+eslint.config.mjs
Gruntfile.js
global.d.ts
none
package-lock.json
package.json
-packages/woocommerce-admin/docs
-packages/woocommerce-blocks/docs
phpcs.xml
phpunit.xml
phpunit.xml.dist
@@ -42,9 +48,7 @@ README.md
renovate.json
tsconfig.*
webpack.config.js
-/client/legacy/
-/client/admin/
-/client/blocks/
+/client/
phpstan.neon
phpstan-baseline.neon
/php-stubs/
diff --git a/plugins/woocommerce/changelog/reduce-zip-dist-hygiene b/plugins/woocommerce/changelog/reduce-zip-dist-hygiene
new file mode 100644
index 00000000000..1dc4c625312
--- /dev/null
+++ b/plugins/woocommerce/changelog/reduce-zip-dist-hygiene
@@ -0,0 +1,4 @@
+Significance: patch
+Type: dev
+
+Keep dev-only files out of the release zip: stop copying legacy JS test directories into built assets, and exclude lint configs and other development files from the package.
diff --git a/plugins/woocommerce/client/legacy/Gruntfile.js b/plugins/woocommerce/client/legacy/Gruntfile.js
index 53589073cac..8c9b44e97be 100644
--- a/plugins/woocommerce/client/legacy/Gruntfile.js
+++ b/plugins/woocommerce/client/legacy/Gruntfile.js
@@ -213,7 +213,7 @@ module.exports = function ( grunt ) {
{
cwd: '<%= dirs.js %>/',
expand: true,
- src: [ '**', '!admin/utils/**' ],
+ src: [ '**', '!admin/utils/**', '!**/test/**' ],
dest: '<%= dirs.jsDest %>/',
},
{