plantain-00 / type-coverage

A CLI tool to check type coverage for typescript code
MIT License
1.25k stars 44 forks source link

Issues when tsconfig uses both include and files #76

Open jamestowers opened 3 years ago

jamestowers commented 3 years ago

This is a great package, we are using it as part of the ts-coverage-report package but are hitting an issue duie to our unusual tsconfig setup.

Ours makes use of both includes and files and it seems this line prevents you from using both - one overwrites the other.

Here's our tsconfig:

{
  "extends": "tools/config/tsconfig.json",
  "files": [
    "node_modules/@testing-library/jest-dom/extend-expect.d.ts",
    "node_modules/tools/config/declarations.d.ts"
  ],
  "include": ["app"],
  "exclude": ["node_modules"],
  "compilerOptions": {
    "baseUrl": "app",
    "skipLibCheck": true,
  }
}

I get no results with the above but if I remove the files property things work as expected.

is it possible to merge the results of files and includes?

plantain-00 commented 3 years ago

v2.14.7 should fix this.