Which files?

You can either use files to be explicit:

  1. {
  2. "files":[
  3. "./some/file.ts"
  4. ]
  5. }

or include and exclude to specify files. E.g.:

  1. {
  2. "include":[
  3. "./folder"
  4. ],
  5. "exclude":[
  6. "./folder/**/*.spec.ts",
  7. "./folder/someSubFolder"
  8. ]
  9. }

Some notes:

  • if files is specified, other options are ignored
  • **/* (e.g. sample usage somefolder/**/*) means all folder and any files (the extensions .ts/.tsx will be included and even .js/.jsx if allowJs is true)