plantain-00 / type-coverage

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

Cannot use with shared tsconfig with default "main" #50

Closed foray1010 closed 4 years ago

foray1010 commented 4 years ago

Version(if relevant): 2.7.0

Environment(if relevant):

Code(if relevant):

{
  "extends": "@foray1010/tsconfig",
  "compilerOptions": {
    "emitDeclarationOnly": false,
    "noEmit": true
  }
}

Expected:

Able to get config as tsc

Actual:

ENOENT: no such file or directory, stat '/myrepo/node_modules/@foray1010/tsconfig.json'

I think the problem is in this line: https://github.com/plantain-00/type-coverage/blob/3e9c564912fc319eff923cd171b6d2caa5c325b6/packages/utils/src/tsconfig.ts#L76

plantain-00 commented 4 years ago

v2.7.1 should fix this.

foray1010 commented 4 years ago

it works, thank you!