Three tsconfig properties that tell the compiler which files to compile
As of today, there are six tsconfig property definitions. Three specify which files the compiler will compile.
-
files
If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. When a 'files' property is specified, only those files and those specified by 'include' are included. -
exclude
Specifies a list of files to be excluded from compilation. The 'exclude' property only affects the files included via the 'include' property and not the 'files' property. Glob patterns require TypeScript version 2.0 or later. -
include
Specifies a list of glob patterns that match files to be included in compilation. If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. Requires TypeScript version 2.0 or later.
The tsconfig schema is here: http://json.schemastore.org/tsconfig
Documentation is here https://www.typescriptlang.org/docs/handbook/tsconfig-json.html