From 1b4d0553cc9ed9ec0ef915ac655d7337c8431b67 Mon Sep 17 00:00:00 2001 From: Harper Date: Tue, 10 Jun 2025 13:53:24 -0500 Subject: [PATCH] Extract tsconfig.src.base.json from tsconfig.base.json `tsconfig.base.json` includes settings that apply to ALL typescript in the project (including tests and docsgen), while `tsconfig.src.base.json` includes settings that should only apply to the source code of the main library. This fixes the `include` and `exclude` fields intended for library compilation being applied to the `tests` and `docsgen` folders, which made those folders actually just compile the library instead of their actual code. --- tsconfig.base.json | 12 ++---------- tsconfig.cjs.json | 4 ++-- tsconfig.esm.json | 4 ++-- tsconfig.src.base.json | 11 +++++++++++ 4 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 tsconfig.src.base.json diff --git a/tsconfig.base.json b/tsconfig.base.json index 971b37f..47744a0 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -19,13 +19,5 @@ "es2015", "es2015.core" ] - }, - "include": [ - "src" - ], - "exclude": [ - "dist", - "node_modules", - "test" - ] -} \ No newline at end of file + } +} diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index 8411f0d..5474a45 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -1,8 +1,8 @@ { - "extends": "./tsconfig.base.json", + "extends": "./tsconfig.src.base.json", "compilerOptions": { "module": "commonjs", "outDir": "./dist/cjs", "target": "ES2015" } -} \ No newline at end of file +} diff --git a/tsconfig.esm.json b/tsconfig.esm.json index d6aae5e..e7a334c 100644 --- a/tsconfig.esm.json +++ b/tsconfig.esm.json @@ -1,8 +1,8 @@ { - "extends": "./tsconfig.base.json", + "extends": "./tsconfig.src.base.json", "compilerOptions": { "module": "es6", "outDir": "./dist/esm", "target": "es6" } -} \ No newline at end of file +} diff --git a/tsconfig.src.base.json b/tsconfig.src.base.json new file mode 100644 index 0000000..452e67c --- /dev/null +++ b/tsconfig.src.base.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.base.json", + "include": [ + "src" + ], + "exclude": [ + "dist", + "node_modules", + "test" + ] +}