Skip to content

Fix .distignore: exclude dev files, stop hiding README.md - #10

Merged
torounit merged 1 commit into
mainfrom
fix/distignore
Jun 19, 2026
Merged

Fix .distignore: exclude dev files, stop hiding README.md#10
torounit merged 1 commit into
mainfrom
fix/distignore

Conversation

@torounit

Copy link
Copy Markdown
Owner

Summary

  • The release zip / wp.org SVN deploy was shipping .husky, .vscode, .wordpress-org, src/, and tsconfig.json because .distignore never listed them, and phpcs.xml.dist wasn't excluded either (the entry was misspelled as .phpcs.xml.dist). Dropped a bunch of other dead entries for files this repo doesn't have.
  • Root cause of the last failed release (https://github.com/torounit/schedule-terms/actions/runs/27797310572/job/82260034353): .distignore excluded README.md, and since readme.txt generation was removed earlier, no readme file at all was being shipped to wp.org. wp.org's SVN pre-commit hook rejects any tag/trunk commit with no readme file present, so the 2.0.0 tag commit was blocked. Fix: stop excluding README.md — it already follows the WordPress readme header format (Contributors, Stable tag, etc.), so shipping it as README.md (not readme.txt) satisfies the hook.

Test plan

  • composer lint passes
  • Verified locally with rsync -a --exclude-from=.distignore ./ /tmp/dist-check/ that the resulting tree only contains README.md, build/, includes/, schedule-terms.php, vendor/ — no .husky, .vscode, .wordpress-org, src/, tsconfig.json, tests/, bin/, node_modules/

.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.
@torounit
torounit merged commit 0e87c59 into main Jun 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant