I am using TypeScript and ts-node to execute my script as follows:
node -r ts-node/register index.ts
This works fine, but the compilation process takes too long so I would like to speed everything up. I noticed, that I might also just transpile the TypeScript file and call the resulting index.js
directly.
What exactly are the requirements for this? Do I need to use tsc
, ts-node
, ts-node-dev
or node
to make this work?
Any info that makes me able to execute the index.js
is appreciated!