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/ /node_modules/
/npm-debug.log /npm-debug.log
tmp/ 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/)" "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)"
], ],
"repository": "mishoo/UglifyJS", "repository": "mishoo/UglifyJS",
"main": "tools/node.js", "main": "index.js",
"bin": { "bin": {
"uglifyjs": "bin/uglifyjs" "uglifyjs": "bin/uglifyjs"
}, },
"files": [ "files": [
"bin", "index.js",
"lib",
"tools",
"LICENSE" "LICENSE"
], ],
"devDependencies": { "devDependencies": {
@ -27,7 +25,8 @@
"semver": "~6.3.0" "semver": "~6.3.0"
}, },
"scripts": { "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": [ "keywords": [
"cli", "cli",