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

Taught in

References