exclude property support in tsconfig.json

A tsconfig.json file that doesn’t specify a files property (and therefore implicitly references all *.ts files in all subdirectories) can now contain an exclude property that specifies a list of files and/or directories to exclude from the compilation. The exclude property must be an array of strings that each specify a file or folder name relative to the location of the tsconfig.json file. For example:

  1. {
  2. "compilerOptions": {
  3. "out": "test.js"
  4. },
  5. "exclude": [
  6. "node_modules",
  7. "test.ts",
  8. "utils/t2.ts"
  9. ]
  10. }

The exclude list does not support wilcards. It must simply be a list of files and/or directories.