refactor: build scripts before release

This commit is contained in:
Moshe Brevda 2022-12-19 09:01:56 +02:00
parent f2b6f1def0
commit 5f1fa60b38
3 changed files with 8 additions and 5 deletions

4
.gitignore vendored
View File

@ -1,3 +1,7 @@
/node_modules/
/npm-debug.log
tmp/
# files generated at build time
bin/uglifyjs
index.js

View File

@ -12,14 +12,12 @@
"Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)"
],
"repository": "mishoo/UglifyJS",
"main": "tools/node.js",
"main": "index.js",
"bin": {
"uglifyjs": "bin/uglifyjs"
},
"files": [
"bin",
"lib",
"tools",
"index.js",
"LICENSE"
],
"devDependencies": {
@ -27,7 +25,8 @@
"semver": "~6.3.0"
},
"scripts": {
"test": "node test/compress.js && node test/mocha.js"
"test": "node test/compress.js && node test/mocha.js",
"prepack": "bin/uglifyjs.js --self --mangle --compress --output index.js && bin/uglifyjs.js bin/uglifyjs.js --mangle --compress --output bin/uglifyjs"
},
"keywords": [
"cli",