Fixed Beta Tester Uglification

PNPM does not run "pre" and "post" scripts
for user-defined scripts. This commit
removed the "preuglify" script from the
beta tester plugin so that it builds correctly.
This commit is contained in:
Christopher Allford 2022-05-06 12:11:51 -07:00
parent 245dd98b45
commit dc6bd75984
1 changed files with 1 additions and 2 deletions

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