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
Comments
Post a Comment