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

ruby on rails - ActiveRecord order not working -

javascript - How do you prevent nested queries/catches in sequelize? -

java - ConcurrentModificationException upon committing transaction with Hibernate -