run ts files in node with type-checking
https://github.com/alexsch01/tsnode
-
Node.js 22 - v22.18.0 or later
OR
-
Node.js v24.3.0 or later
$ npm install -g @alexsch01/tsnode
$ mkdir proj
$ cd proj
$ tsnode --init
$ npm install -D @types/node
[Make a main.ts file]
$ tsnode main.ts