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

How to use SUM() in MySQL for calculated values -

ios - IBOutlet for image button not correctly referencing button after recreating outlet -

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