diff --git a/plugins/woocommerce/package.json b/plugins/woocommerce/package.json index 965883ccd15..4e4184160e3 100644 --- a/plugins/woocommerce/package.json +++ b/plugins/woocommerce/package.json @@ -10,7 +10,8 @@ }, "license": "GPL-3.0+", "scripts": { - "build": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name^...\" --parallel build && pnpm --filter=\"$npm_package_name\" build:project", + "build:pre": "pnpm --if-present --workspace-concurrency=Infinity --stream --filter @woocommerce/admin-library --filter @woocommerce/block-library --filter @woocommerce/classic-assets --parallel build", + "build": "pnpm --filter $npm_package_name build:pre && pnpm --if-present --workspace-concurrency=Infinity --stream --filter=\"$npm_package_name...\" --parallel build:project", "build:project": "pnpm --if-present '/^build:project:.*$/'", "build:project:copy-assets": "wireit", "build:zip": "./bin/build-zip.sh", @@ -695,7 +696,6 @@ "node_modules/@woocommerce/e2e-core-tests/CHANGELOG.md", "node_modules/@woocommerce/api/dist/", "node_modules/@woocommerce/admin-e2e-tests/build", - "node_modules/@woocommerce/classic-assets/build", "node_modules/@woocommerce/block-library/build", "node_modules/@woocommerce/block-library/blocks.ini", "node_modules/@woocommerce/admin-library/build",