From a4410ec9287db7e7852d760e0a8a04d0cd4f6a58 Mon Sep 17 00:00:00 2001 From: Innei Date: Sat, 27 Aug 2022 17:29:16 +0800 Subject: [PATCH] perf: ncc pack speed Signed-off-by: Innei --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3add576f..0348dba6 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "build:webpack": "nest build --webpack --webpackPath ./configs/webpack.config.js -c ./configs/nest-cli.webpack.json", "dev": "npm run start", "repl": "npm run start -- --entryFile repl", - "bundle": "rimraf out && npm run build && cd dist/src && npx ncc build main.js -o ../../out -m && cd ../.. && chmod +x out/index.js", + "bundle": "rimraf out && npm run build && cd dist/src && npx ncc build main.js -o ../../out -m -t && cd ../.. && chmod +x out/index.js", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "cross-env NODE_ENV=development nest start -w --path tsconfig.json", "start:debug": "cross-env NODE_ENV=development nest start --debug --watch",