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

java - AEM: 403 Forbidden occurs when call a Post servlet -

ruby on rails - ActiveRecord order not working -

Google Alert - facebook