How do I run typescript file after compile without generating javascript file -


type script using tsc -w -p . watch mode. , generate .js files. so, typescript run node example.js normal.

but, run typescript without node example.js command how can it?

will run typescript without node example.js command how can it

you can use ts-node compile + run directly (without ever writing disk):

ts-node example.ts 

more

https://github.com/typestrong/ts-node


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -