7

I am looking to compile a single .ts file to stdout, something like this:

tsc foo.ts > foo.js

is this possible somehow? I want to control where the output goes without using a tsconfig.json file.

Alexander Mills
  • 90,741
  • 139
  • 482
  • 817

1 Answers1

4
tsc foo.ts --out /dev/stdout | another-program

It comes from this discussion.

Maurici Abad
  • 1,012
  • 9
  • 20