gustavopch / tsc-files

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

You can't send in globs without file extension #30

Closed emattias closed 2 years ago

emattias commented 2 years ago

Since only arguments sent in to tsc-files ending with .ts or .tsx will be filtered out (thus not sent to tsc) you can't send in general globs without file endings. So this doesnt work:

'*.ts': ['tsc-files --noEmit types/**/*']

you have to do add the file ending, like this for example

'*.ts': ['tsc-files --noEmit types/**/*.d.ts']

I guess tsc-files could resolve the glob and filter based on that instead of the string argument?

emattias commented 2 years ago

After more investigation this issue is superseded by this one: https://github.com/gustavopch/tsc-files/issues/31