From 70f0ef93f8ed112e3babbe59bd2ff5148933d127 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Wed, 15 Sep 2021 08:52:20 +0700 Subject: [PATCH] Task: Fixed package json for yarn serve and fixed tsconfig for build with all packages to src only --- package.json | 2 +- tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2fa52cc..5dfde25 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "start": "ts-node-dev --respawn --transpile-only src/app.ts", "build": "rm -rf dist && tsc", - "serve": "yarn run build && node dist/app.js", + "serve": "yarn build && node dist/app.js", "bootstrap": "lerna bootstrap", "test": "echo \"Error: no test specified\" && exit 1", "prepare": "husky install" diff --git a/tsconfig.json b/tsconfig.json index 788d9de..5425253 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ "target": "es5", "module": "commonjs", "moduleResolution": "node", - "sourceMap": true, + "sourceMap": false, "outDir": "dist", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, @@ -12,5 +12,6 @@ "skipLibCheck": true, "experimentalDecorators": true }, + "include": ["src/**/*"], "exclude": ["node_modules"] }