From f7e5dd970dac93c9a1c04097144974c3db3cdd3f Mon Sep 17 00:00:00 2001 From: Stephan Schreiber Date: Sun, 18 Aug 2024 04:17:27 +0200 Subject: [PATCH] Use separate tsconfigs for IDE and build --- tsconfig.build.json | 11 +++++++++++ tsconfig.json | 9 ++++----- 2 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 tsconfig.build.json diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..d36e29b --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "include": [ + "source" + ], + "compilerOptions": { + "rootDir": "source", + "outDir": "dist", + "noEmit": false, + } +} diff --git a/tsconfig.json b/tsconfig.json index 3dd7d74..7648e23 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { - "files": [ - "source/index.ts" + "include": [ + "source", + "eslint.config.mjs" ], "compilerOptions": { @@ -14,13 +15,11 @@ "moduleResolution": "Node16", // Output - "outDir": "dist", "target": "ESNext", "module": "Node16", - "declaration": true, - "declarationMap": true, "sourceMap": true, "removeComments": true, + "noEmit": true, // Type checking "strict": true,