November 2018
Beginner
502 pages
10h 22m
English
There are several ways to tell the TypeScript compiler which files to process. The simplest method is to explicitly list the files in the files field:
{ "compilerOptions": { ... }, "files": ["product.ts", "orderDetail.ts"]}
However, that approach is difficult to maintain as our code base grows. A more maintainable approach is to define file patterns for what to include and exclude with the include and exclude fields.
The following example looks at the use of these fields:
{ "compilerOptions": { ... }, "include": ["src/**/*"]}
Read now
Unlock full access