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).
This commit is contained in:
Manav Rathi 2024-05-24 17:49:49 +05:30
parent 54e33d3f42
commit 74bb169f0d
No known key found for this signature in database
3 changed files with 3 additions and 9 deletions

View file

@ -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"]
}

View file

@ -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": ["."]
}

View file

@ -1,5 +1,4 @@
{
"extends": "@/build-config/tsconfig-typecheck.json",
/* Typecheck all files with the given extensions (here or in subfolders) */
"include": ["**/*.ts"]
"include": ["."]
}