plantain-00 / type-coverage

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

`glob_1.default is not a function` with 2.15.0 #79

Closed martinfrancois closed 3 years ago

martinfrancois commented 3 years ago

We are using type-coverage as part of our CI pipeline. So far everything has been working well, but since the 2.15.0 release, we get the following error on our code base (did not appear before with 2.14.9): glob_1.default is not a function

We use the following command to run type-coverage in ci:

npx --package typescript --package type-coverage -c 'type-coverage -p tsconfig.json --strict --ignore-files "src/api/generated/**/*.*"'

tsconfig.json

{
  "compilerOptions": {
    "baseUrl": "./src",
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "noImplicitAny": false,
    "forceConsistentCasingInFileNames": true,
    "noFallthroughCasesInSwitch": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react-jsx"
  },
  "paths": {
    "widgets/*": ["widgets/*"]
  },
  "include": ["src"]
}

Version(if relevant): 2.15.0

Environment(if relevant): reproducible under different environments, Node 15.8.0, npm 7.5.1 (for example, Dockerhub image node:15)

plantain-00 commented 3 years ago

v2.15.1 should fix this.

martinfrancois commented 3 years ago

It does indeed, thanks a lot for the swift response!