Node.js 23.6 Now Runs TypeScript Natively
Briefly

Node.js 23.6 has officially rolled out native support for TypeScript, a long-requested feature that enables developers to run TypeScript files directly without additional flags. The feature, which was experimental in the previous version, allows developers to execute files simply by running 'node index.ts'. However, certain limitations exist, such as the lack of support for tsconfig.json settings and certain TypeScript constructs. This development positions Node closer to TypeScript-native runtimes like Deno and Bun, although those still have features that Node currently does not support.
The Node team recently announced shipping TypeScript native support in Node 23.6, allowing developers to run TypeScript files without any extra configuration or flags.
Node developers can create an index.ts file and run node index.ts, with Node removing TypeScript type annotations and executing the resulting JavaScript code.
However, caveats apply: Node.js ignores tsconfig.json files, meaning certain TypeScript features and settings will not be supported, including JSX files.
Native TypeScript support brings Node closer to alternatives like Deno and Bun, which still offer additional features like tsconfig support.
Read at InfoQ
[
|
]