Skip to content

fix(build): exclude dev vendor/ from the plugin ZIP#37

Merged
cport1 merged 1 commit into
mainfrom
fix/build-exclude-vendor
Jul 20, 2026
Merged

fix(build): exclude dev vendor/ from the plugin ZIP#37
cport1 merged 1 commit into
mainfrom
fix/build-exclude-vendor

Conversation

@cport1

@cport1 cport1 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

A local root composer install (dev tools: phpstan.phar ~23MB, phpcs, stubs) created vendor/, which build.sh's rsync bundled into the ZIP — bloating it to ~8MB and shipping dev dependencies (a WordPress.org rejection). Anchors the rsync excludes to the plugin root so only the top-level vendor/ is dropped while admin/js/vendor/ (bundled Chart.js) is kept. Verified: .org ZIP back to ~244KB, Chart.js present, no phpstan/phpcs/stubs.

…ugin zip

A local 'composer install' at the repo root creates vendor/ with dev tools
(phpstan.phar ~23MB, php_codesniffer, WP/Woo stubs). build.sh's rsync copied
it into the plugin ZIP, bloating it from ~250KB to ~8MB and shipping dev
dependencies (a WordPress.org rejection). Anchor the excludes to the plugin
root so only the top-level vendor/ is dropped — admin/js/vendor/ (bundled
Chart.js) is preserved. Also exclude .git/.github/node_modules/tests/composer
+ lint configs.
@cport1
cport1 merged commit 2330106 into main Jul 20, 2026
3 checks passed
@cport1
cport1 deleted the fix/build-exclude-vendor branch July 20, 2026 22:58
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