Switch back to package.json

This commit is contained in:
khai96_ 2020-05-08 12:52:52 +07:00
parent 5311fe843b
commit cc0d51290c
2 changed files with 3 additions and 7 deletions

View File

@ -1,5 +0,0 @@
dist/tsc: node_modules src
pnpx tsc
dist/index.js: dist/tsc
pnpx ncc build --minify --source-map --no-cache dist/tsc/index.js --out dist/

View File

@ -1,8 +1,9 @@
{
"private": true,
"scripts": {
"postinstall": "rm -rf dist && make dist/index.js",
"start": "sh ./run.sh"
"build:ncc": "ncc build --minify --source-map --no-cache dist/tsc/index.js --out dist/",
"build": "tsc && pnpm run build:ncc",
"start": "pnpm run build && sh ./run.sh"
},
"dependencies": {
"download": "^8.0.0",