What does HackerNews think of ts-node?
TypeScript execution and REPL for node.js
https://www.typescriptlang.org/docs/handbook/jsdoc-supported...
I’ve never written TypeScript myself so just a guess.
There’s also this for node.js:
I guess there's no native typescript support for nodejs (so npx is out). Maybe deno can help?
> Supports TypeScript out of the box.
Thats clearly a sort of "now you have two problems" type solution - but if there's a desire to stick with ts as a language - it might be helpful? (to drop the python dependency).
Ed: hm, there's apparently ts-node : https://github.com/TypeStrong/ts-node
npx ts-node script.ts
https://stackoverflow.com/a/33536053https://github.com/TypeStrong/ts-node
Article mentions ts-jest; can also recommend. I use Jest for all my TS projects from serverless to selenium. Its watch mode is fantastic.
I also typically use ts-loader with Webpack instead of Babel.
Eh, might as well toss a few more recommendations in there:
* source-map-support
* Bluebird for long stack traces with async/await(v8 now has a zero-cost feature behind a flag now though as of end of 2018)
* Get the debugger hooked up to your browser/nodejs process for a great debug experience
We use ts-node to run our mocha tests without ever compiling: https://github.com/TypeStrong/ts-node