From b5a5e98c9ea3f1ad8c9ad7d93e31d67b59ac1d76 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Fri, 8 May 2020 10:26:35 +0700 Subject: [PATCH] Add ncc build step --- .gitignore | 3 ++- package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 37e10ce..a733f44 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules *.log -/dist/tsc +/dist/* +!/dist/index.js diff --git a/package.json b/package.json index 5607207..192067b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { "private": true, "scripts": { - "build:typescript": "tsc" + "build:typescript": "tsc", + "build:ncc": "ncc build --minify --source-map dist/tsc/index.js --out dist/" }, "dependencies": { "download": "^8.0.0",