gustavopch / tsc-files

A tiny tool to run `tsc` on specific files without ignoring tsconfig.json
MIT License
234 stars 49 forks source link

tsc-files is failing because it isn't including type definitions #59

Closed mosnicholas closed 1 year ago

mosnicholas commented 1 year ago

https://github.com/gustavopch/tsc-files/blob/c01619fb0ff6eea957f322539e2a8d336c2900e6/cli.js#L56C15-L56C15

This line is overriding my tsconfig include array, which defines some project-specific types. These are important to help extend typescript definitions with local ones. Is there a reason this always overrides the include array?

gustavopch commented 1 year ago

If we don't override, all your types will be loaded instead of only the types from the specific files you want to check, defeating the purpose of this tool. It's discussed here: https://github.com/gustavopch/tsc-files/issues/20.

mosnicholas commented 1 year ago

Got it thank you @gustavopch