Add ncc build step

This commit is contained in:
khai96_ 2020-05-08 10:26:35 +07:00
parent 636254ab6e
commit b5a5e98c9e
2 changed files with 4 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
node_modules node_modules
*.log *.log
/dist/tsc /dist/*
!/dist/index.js

View File

@ -1,7 +1,8 @@
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"build:typescript": "tsc" "build:typescript": "tsc",
"build:ncc": "ncc build --minify --source-map dist/tsc/index.js --out dist/"
}, },
"dependencies": { "dependencies": {
"download": "^8.0.0", "download": "^8.0.0",