TSConfig
composite
The composite option enforces certain constraints which make it possible for build tools (including TypeScript
itself, under --build mode) to quickly determine if a project has been built yet.
When this setting is on:
-
The
rootDirsetting, if not explicitly set, defaults to the directory containing thetsconfig.jsonfile. -
All implementation files must be matched by an
includepattern or listed in thefilesarray. If this constraint is violated,tscwill inform you which files weren’t specified. -
declarationdefaults totrue
You can find documentation on TypeScript projects in the handbook.