Merge pull request #32900 from woocommerce/fix/beta-tester-preuglify

Fix Beta Tester Uglification
This commit is contained in:
Roy Ho 2022-05-06 15:39:01 -07:00 committed by GitHub
commit 89845eeb59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: This is an infrastructure change.

View File

@ -27,8 +27,7 @@
"build": "pnpm run uglify",
"build:zip": "./bin/build-zip.sh",
"build:dev": "pnpm run lint:js && pnpm run uglify",
"preuglify": "rm -f $npm_package_assets_js_min",
"uglify": "for f in $npm_package_assets_js_js; do file=${f%.js}; node_modules/.bin/uglifyjs $f -c -m > $file.min.js; done",
"uglify": "rm -f $npm_package_assets_js_min && for f in $npm_package_assets_js_js; do file=${f%.js}; node_modules/.bin/uglifyjs $f -c -m > $file.min.js; done",
"lint": "eslint assets/js --ext=js",
"lint:fix": "eslint assets/js --ext=js --fix"
},