TSConfig include parsing throws an error on non-file paths #1060
Labels
status: accepting prs
Please, send a pull request to resolve this! 🙏
type: bug
Something isn't working :( 🐛
🐛 Bug Report
Actual Behavior
This is happening because
include
is["next-env.d.ts", "**/*.ts", "**/*.tsx"]
, and TypeStat is trying to read each of those as a directory:TypeStat/src/options/parseRawCompilerOptions.ts
Lines 33 to 35 in ba26bf7
Expected Behavior
TypeStat should use the same mechanisms that TypeScript internally uses to convert TSConfig
includes
into a list of files.Reproduction
JoshuaKGoldberg/typescript-static-analysis-hidden-gems@213dd04
The text was updated successfully, but these errors were encountered: