From 74bb169f0d809149a7bf1e315195b82d45df4756 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 24 May 2024 17:49:49 +0530 Subject: [PATCH] Equivalent to "**/*.ts", "**/*.tsx", "**/*.d.ts" From the docs: https://www.typescriptlang.org/tsconfig/#include > If the last path segment in a pattern does not contain a file extension or wildcard character, then it is treated as a directory, and files with supported extensions inside that directory are included (e.g. .ts, .tsx, and d.ts by default). --- web/packages/media/tsconfig.json | 6 +----- web/packages/next/tsconfig.json | 3 +-- web/packages/utils/tsconfig.json | 3 +-- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/web/packages/media/tsconfig.json b/web/packages/media/tsconfig.json index bcc1151c1..5ec77ed60 100644 --- a/web/packages/media/tsconfig.json +++ b/web/packages/media/tsconfig.json @@ -5,9 +5,5 @@ "lib": ["ESnext", "DOM", "DOM.Iterable", "WebWorker"] }, /* Typecheck all files with the given extensions (here or in subfolders) */ - "include": [ - "**/*.ts", - "**/*.tsx", - "../../packages/next/global-electron.d.ts" - ] + "include": [".", "../../packages/next/global-electron.d.ts"] } diff --git a/web/packages/next/tsconfig.json b/web/packages/next/tsconfig.json index 9c7ee3ef6..887a3743a 100644 --- a/web/packages/next/tsconfig.json +++ b/web/packages/next/tsconfig.json @@ -4,6 +4,5 @@ /* Also indicate expectation of a WebWorker runtime */ "lib": ["ESnext", "DOM", "DOM.Iterable", "WebWorker"] }, - /* Typecheck all files with the given extensions (here or in subfolders) */ - "include": ["**/*.ts", "**/*.tsx", "**/*.d.ts", "global-electron.d.ts"] + "include": ["."] } diff --git a/web/packages/utils/tsconfig.json b/web/packages/utils/tsconfig.json index 7c0ebd678..d890ecabe 100644 --- a/web/packages/utils/tsconfig.json +++ b/web/packages/utils/tsconfig.json @@ -1,5 +1,4 @@ { "extends": "@/build-config/tsconfig-typecheck.json", - /* Typecheck all files with the given extensions (here or in subfolders) */ - "include": ["**/*.ts"] + "include": ["."] }