dominikg / tsconfck

A utility to find and parse tsconfig files without depending on typescript
Other
290 stars 14 forks source link

feat: jsconfig #132

Closed dominikg closed 11 months ago

dominikg commented 11 months ago

fixes #87

This PR adds new options configName and configNames to TSConfckFindOptions and TSConfckFindAllOptions respectively. Passing jsconfig.json there is going to search for the closest jsconfig.json file instead of tsconfig.json.

Additionally if a config has allowJs: true in compilerOptions, the default extensions applied to glob patterns for matching files also include .js, .mjs, .cjsand .jsx.