From 359c1f1f6cca3e07500b8581e0e1c3f887e2d232 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Wed, 8 Nov 2023 12:23:06 +0100 Subject: [PATCH] Improve TypeScript config --- package.json | 2 +- tsconfig.build.json | 6 ++++++ tsconfig.json | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aecfc5a..8a03ce3 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "prepack": "yarn clean && yarn build", "prettier": "prettier --check . --cache", "test": "yarn lint && yarn tsc && yarn prettier", - "tsc": "tsc --noEmit" + "tsc": "tsc" }, "keywords": [ "collision", diff --git a/tsconfig.build.json b/tsconfig.build.json index 5417c7d..a9a3fdc 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,4 +1,10 @@ { "extends": "./tsconfig.json", + "compilerOptions": { + "noEmit": false, + "outDir": "dist", + "rootDir": "src" + }, + "include": ["src"], "exclude": ["src/**/*.spec.ts"] } diff --git a/tsconfig.json b/tsconfig.json index c8a2786..645870c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,11 +5,12 @@ "isolatedModules": true, "module": "esnext", "moduleResolution": "node", + "noEmit": true, "noUncheckedIndexedAccess": true, "outDir": "dist", "strict": true, "target": "es5", "verbatimModuleSyntax": true }, - "include": ["src"] + "exclude": ["dist"] }