-
-
Notifications
You must be signed in to change notification settings - Fork 33k
Closed
Labels
discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.
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.
bnb, BridgeAR, benjamingr, SerkanSipahi, dsebastien and 136 morejimmywarting, nmrugg, jefrydco, hinell and eldoymanekinekko, SerkanSipahi, dsebastien, hadrien-toma, flameddd and 22 moreDanielRosenwasser, imranbarbhuiya, wrslatz, micheleriva, micalevisk and 30 morekirillgroshkov, Qard, yosiat, henriquesml, knyga and 18 morekirillgroshkov, metcoder95, balazsorban44, henriquesml, knyga and 15 more
Metadata
Metadata
Assignees
Labels
discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.