From 9303630c88d591d79190534a2e96272e34045915 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Fri, 10 Nov 2023 16:53:56 +0100 Subject: [PATCH 1/3] introduce IDE-only `tsconfig.json` --- src/tsconfig.json | 14 ++++++++++++++ tsconfig.tests.json | 4 +--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 src/tsconfig.json diff --git a/src/tsconfig.json b/src/tsconfig.json new file mode 100644 index 00000000000..321f038a735 --- /dev/null +++ b/src/tsconfig.json @@ -0,0 +1,14 @@ +// `tsconfig.json` for the editor only +// this config includes additional files (e.g. tests) that +// we don't want to see hooked up to the main build +// it can also add a few more types for that purpose +{ + "compilerOptions": { + "noEmit": true, + "lib": ["es2015", "esnext.asynciterable", "dom"], + "types": ["jest", "node", "./testing/matchers/index.d.ts"] + }, + "extends": "../tsconfig.json", + "include": ["./**/*.ts", "./**/*.tsx"], + "exclude": [] +} diff --git a/tsconfig.tests.json b/tsconfig.tests.json index d6bb25bd3fd..676cd16d135 100644 --- a/tsconfig.tests.json +++ b/tsconfig.tests.json @@ -1,5 +1,3 @@ { - "extends": "./tsconfig.json", - "include": ["src/**/__tests__/**/*.ts", "src/**/__tests__/**/*.tsx"], - "exclude": [] + "extends": "src/tsconfig.json", } From 5e3fb704d30612e04152fc8d52eb810cf74696e7 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Fri, 10 Nov 2023 16:58:05 +0100 Subject: [PATCH 2/3] formatting --- tsconfig.tests.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.tests.json b/tsconfig.tests.json index 676cd16d135..69737270cef 100644 --- a/tsconfig.tests.json +++ b/tsconfig.tests.json @@ -1,3 +1,3 @@ { - "extends": "src/tsconfig.json", + "extends": "src/tsconfig.json" } From 04dcc0d1b0c253a5e3b793fdd2ce01932427e445 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Fri, 10 Nov 2023 17:07:14 +0100 Subject: [PATCH 3/3] fix path --- tsconfig.tests.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.tests.json b/tsconfig.tests.json index 69737270cef..0908742da0d 100644 --- a/tsconfig.tests.json +++ b/tsconfig.tests.json @@ -1,3 +1,3 @@ { - "extends": "src/tsconfig.json" + "extends": "./src/tsconfig.json" }