Revert "Add pre build script to delete assets" (#35693)

Revert "Add pre build script to delete assets (#35627)"

This reverts commit 4770123fa3.
This commit is contained in:
Roy Ho 2022-11-23 06:38:28 -08:00 committed by GitHub
parent 102fabbee0
commit fd7c728689
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 16 deletions

View File

@ -1,3 +0,0 @@
Significance: patch
Type: dev
Comment: Adds pre build script to first delete asset items.

View File

@ -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",

View File

@ -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/**"