Let's say I'm running TypeScript Node.js project like this: tsc && node build/index.js
(and tsc builds into build/
and I have index.ts
in the project).
What values should I use in lib
and target
(tsconfig.json
) to get the best possible experience, ie. access to newest features in my TypeScript code and output newest possible JavaScript code that still runs well on vanilla node
without Babel or other transpilers.
I'm using a new version of Node (10.11.0
is the official current version now) but I'd appreciate a more general answer that is not specific to this version.