include and exclude
The tsconfig.json lists of file patterns that decide which source files belong to the project.
In more detail
include usually holds a glob pattern such as src/**/* meaning every file under src. exclude removes matches again, for example build output folders. Files outside include are still compiled if something inside imports them.
Related terms
- tsconfig.json — The configuration file that tells the TypeScript compiler which files to check and how strict to be.
- glob pattern — A pattern that matches names using * for any run of characters, a question mark for one character and [abc] for one of a set.
Taught in
- tsconfig.json: target, lib, strict And NodeNext — Production TypeScript