File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,17 @@ mkdir -p "${DIST_DIR}"
4646
4747# Copy plugin files into build directory
4848echo " Copying plugin files..."
49- rsync -a --exclude=' build' --exclude=' dist' --exclude=' build.sh' . " ${BUILD_DIR} /${PLUGIN_SLUG} /"
49+ # Excludes are anchored with a leading slash to the plugin root so we only drop
50+ # the top-level dev vendor/ (composer dev tools) — NOT admin/js/vendor/, which
51+ # holds the bundled Chart.js.
52+ rsync -a \
53+ --exclude=' /build' --exclude=' /dist' --exclude=' /build.sh' \
54+ --exclude=' /.git' --exclude=' /.github' --exclude=' /.svn-wporg' \
55+ --exclude=' /vendor' --exclude=' /sdk/vendor' \
56+ --exclude=' node_modules' --exclude=' /tests' \
57+ --exclude=' /composer.json' --exclude=' /composer.lock' \
58+ --exclude=' /phpcs.xml.dist' --exclude=' /phpstan.neon' \
59+ . " ${BUILD_DIR} /${PLUGIN_SLUG} /"
5060
5161# Update version in main plugin file
5262echo " Setting version to ${VERSION} ..."
You can’t perform that action at this time.
0 commit comments