Execute o nó TypeScript
npx ts-node src/foo.ts
Frightened Flatworm
npx ts-node src/foo.ts
{
// ...
"scripts": {
"start": "nodemon -w src --ext ts --exec ts-node src/index.ts"
}
}