Closed
Description
I would like Node.js to support the following user experience
$ node script.ts
Typescript support is missing, install it with:
npm i --location=global typescript-node-core
$ npm i --location=global typescript-node-core
...
$ node script.ts
"Hello World"
(I picked the typescript-node-core name at random, I would be extremely happy if that could be ts-node)
Note that script.ts
could evaluate to either cjs or mjs depending on the tsconfig.json
file.
Originally posted by @mcollina in #43408 (comment)
Why vendoring is not an option?
- TypeScript changes too fast and they do not follow semantic versioning, nor do they provide any long-term support.
- We will never be able to pick a default
tsconfig
given the 100+ options.