I want to have a script, which will compile .ts files in my multiple repos. I try to run compilation via spawnSync('tsc file.ts') but I end up with tsc is not recognized as internal/external command.
Compiling the same file with npm run tsc file.ts works fine. What am I missing here?