With the new node version 24, node can also execute typescript files.
Previously I've used
node --import @swc-node/register/esm-register src/index.ts
Now
This doesn’t seem to mentioned in the current SWC Node documentation. But I think it worth adding a note, that while Node’s native TypeScript support seems to have some limitations like no support for enums or tsx code, it can be a useful alternative for executing typescript code.