If I compile TypeScript for Node.js with
tsc --module commonjs --target ES5
I can't use async/await or generators because tsc doesn't know how to compile it to ES5.
That can be fixed if I compile TypeScript for Node.js with
tsc --module commonjs --target ES6
but then I can't use default parameters or destructuring assignment, because Node.js doesn't support them. tsc knows how to compile those to ES5, but it only does it if you actually target ES5.
How can I target Node.js with support for all of TypeScript's features?
tscwas the only build tool I needed. I mean, internally it does everything it needs to target Node.js's combination of features, but there doesn't seem to be an option for it. :(