From fd7c728689be324a1cd4a9f46eb6d22cdbfe14f0 Mon Sep 17 00:00:00 2001 From: Roy Ho Date: Wed, 23 Nov 2022 06:38:28 -0800 Subject: [PATCH] Revert "Add pre build script to delete assets" (#35693) Revert "Add pre build script to delete assets (#35627)" This reverts commit 4770123fa3a71cf4c561fa6149685c67d0778ee4. --- plugins/woocommerce/changelog/add-pre-build | 3 --- plugins/woocommerce/package.json | 1 - turbo.json | 14 ++------------ 3 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 plugins/woocommerce/changelog/add-pre-build 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/**"