From cc0d51290cb7bcf3a2d23a176942cb89f147b15b Mon Sep 17 00:00:00 2001 From: khai96_ Date: Fri, 8 May 2020 12:52:52 +0700 Subject: [PATCH] Switch back to package.json --- Makefile | 5 ----- package.json | 5 +++-- 2 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index 4828b74..0000000 --- a/Makefile +++ /dev/null @@ -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/ diff --git a/package.json b/package.json index eb659be..1076697 100644 --- a/package.json +++ b/package.json @@ -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",