Support output to IPC-driven files

TypeScript 1.8 allows users to use the —outFile argument with special file system entities like named pipes, devices, etc.

As an example, on many Unix-like systems, the standard output stream is accessible by the file /dev/stdout.

  1. tsc foo.ts --outFile /dev/stdout

This can be used to pipe output between commands as well.

As an example, we can pipe our emitted JavaScript into a pretty printer like pretty-js:

  1. tsc foo.ts --outFile /dev/stdout | pretty-js