From 0adec5a7d1bfbb6b22804eff9d1dc4702ea88f97 Mon Sep 17 00:00:00 2001 From: Jason Raymond Bell Date: Wed, 27 Apr 2022 23:07:03 +0100 Subject: [PATCH] fix: tsconfig.json Including files that included files outside of src/ made the build/ include a src/ directory. Prevented this by excluding .test.ts files and also configured rootDir to avoid this happening again (it will throw an error instead). --- tsconfig.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 0c77a371..6318f066 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,8 @@ "lib": ["es2019"], "module": "commonjs", "noImplicitAny": true, - "outDir": "./build/", + "outDir": "build", + "rootDir": "src", "preserveConstEnums": true, "strictNullChecks": true, "strict": true, @@ -17,5 +18,6 @@ "typeRoots": ["node_modules/@types"], "esModuleInterop": true }, - "include": ["src/**/*"] + "include": ["src/**/*"], + "exclude": ["**/*.test.ts"] }