From 24a02bc6a73b70209d62641cf31250728851f403 Mon Sep 17 00:00:00 2001 From: Vladimir Reznichenko Date: Wed, 26 Jun 2024 21:17:18 +0200 Subject: [PATCH] Tooling: added pre-build steps to solve concurrency issues --- plugins/woocommerce/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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",