diff --git a/plugins/woocommerce/changelog/add-pre-build b/plugins/woocommerce/changelog/add-pre-build deleted file mode 100644 index c005b3ed18b..00000000000 --- a/plugins/woocommerce/changelog/add-pre-build +++ /dev/null @@ -1,3 +0,0 @@ -Significance: patch -Type: dev -Comment: Adds pre build script to first delete asset items. diff --git a/plugins/woocommerce/package.json b/plugins/woocommerce/package.json index 64288817216..a042808f6fc 100644 --- a/plugins/woocommerce/package.json +++ b/plugins/woocommerce/package.json @@ -19,7 +19,6 @@ "postinstall": "composer install", "changelog": "composer exec -- changelogger", "build": "pnpm -w exec turbo run turbo:build --filter=$npm_package_name", - "build:assets-cleanup": "find ./assets/css/. ! -name '.gitkeep' -type f -exec rm -f {} + && find ./assets/client/. ! -name '.gitkeep' -type f -exec rm -f {} + && find ./assets/js/. ! -name '.gitkeep' -type f -exec rm -f {} +", "test": "pnpm -w exec turbo run turbo:test --filter=$npm_package_name", "lint": "pnpm lint:php", "build:feature-config": "php bin/generate-feature-config.php", diff --git a/turbo.json b/turbo.json index b4d6a027677..a43c31b740a 100644 --- a/turbo.json +++ b/turbo.json @@ -4,11 +4,8 @@ "build:feature-config": { "cache": false }, - "build:assets-cleanup": { - "cache": false - }, "turbo:build": { - "dependsOn": [ "build:feature-config", "build:assets-cleanup", "^turbo:build", "$WC_ADMIN_PHASE" ], + "dependsOn": [ "build:feature-config", "^turbo:build", "$WC_ADMIN_PHASE" ], "inputs": [ "src/**/*.js", "src/**/*.jsx", @@ -30,7 +27,6 @@ "woocommerce#turbo:build": { "dependsOn": [ "build:feature-config", - "build:assets-cleanup", "^turbo:build", "woocommerce/client/admin#turbo:build", "woocommerce/client/legacy#turbo:build" @@ -43,14 +39,8 @@ "outputMode": "new-only" }, - "woocommerce#build:zip": { - "dependsOn": [ - "^build:assets-cleanup" - ] - }, - "woocommerce/client/legacy#turbo:build": { - "dependsOn": [ "build:assets-cleanup", "^turbo:build" ], + "dependsOn": [ "^turbo:build" ], "outputs": [ "../../assets/js/**", "../../assets/css/**"