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:
parent
102fabbee0
commit
fd7c728689
|
@ -1,3 +0,0 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
Comment: Adds pre build script to first delete asset items.
|
|
@ -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",
|
||||
|
|
14
turbo.json
14
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/**"
|
||||
|
|
Loading…
Reference in New Issue