From 2304b7d3bf232d008b11e235aec37bd826d6fdce Mon Sep 17 00:00:00 2001 From: torounit Date: Fri, 19 Jun 2026 09:26:27 +0900 Subject: [PATCH] fix: exclude dev-only files from the wp.org plugin distribution .husky, .vscode, .wordpress-org, src, and tsconfig.json were being shipped in the release zip and SVN trunk/tags because .distignore never listed them. Also fix the phpcs.xml.dist entry (it was incorrectly written as .phpcs.xml.dist, so it wasn't excluded either), drop a pile of dead entries for files this repo doesn't have, and stop excluding README.md. Excluding README.md was also the root cause of the last release failing outright: wp.org's SVN pre-commit hook rejects a tag/trunk commit that has no readme file at all, and since readme.txt generation was dropped, README.md being excluded meant no readme shipped at all. README.md already follows the WordPress readme header format (Contributors, Stable tag, etc.), so shipping it as-is satisfies the hook. --- .distignore | 43 +++++++++++++++---------------------------- 1 file changed, 15 insertions(+), 28 deletions(-) diff --git a/.distignore b/.distignore index 429d0c8..2eb8afd 100644 --- a/.distignore +++ b/.distignore @@ -1,37 +1,24 @@ # A set of files you probably don't want in your WordPress.org distribution -.distignore -.github -.gitignore -.npmrc -.git -.idea -.travis.yml -.DS_Store -.phpdoc -Thumbs.db -behat.yml -bin -.cache -wp-cli.local.yml -docker -node_modules -*.sql -wordpress -*.tar.gz -*.zip -nightly -.nvmrc -.wp-env.json +/.git +/.github +/.husky +/.vscode +/.wordpress-org +/bin +/node_modules +/src +/tests .distignore .editorconfig .gitignore -.phpcs.xml.dist .wp-env.json +.wp-env.test.json composer.json composer.lock -package.json package-lock.json -phpdoc.dist.xml +package.json +phpcs.xml.dist phpunit.xml.dist -README.md -tests +tsconfig.json +*.tar.gz +*.zip