gustavopch / tsc-files

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

Fix for windows users with space in tsc path #62

Open foohines opened 1 year ago

foohines commented 1 year ago

This fixes the issue #60 which occurs when:

This fix works by:

More context can be found in the node documentation on how to correctly spawn windows .cmd files

jonasgeiler commented 1 year ago

Shouldn't setting shell to true be enough? I tried fixing it in my fork: https://github.com/skayo/tsc-files Will see if I open a PR, but for now I'll publish my fork as it's own package (@jonasgeiler/tsc-files)

foohines commented 1 year ago

I don't think so. I tested your fork and my own with just shell: true, and when a windows user has a space in their tsc path, it still fails with the same error.