Skip to content

TypeScript Runtime

October 5, 2023
December 11, 2014

Traditionally TypeScripts are compiled to JavaScript and run on Node.js/browser

deno
bun

REPL

Hopa - zero config CLI that runs JavaScript and TypeScript
a7ul/esbuild-node-tsc: Build your Typescript Node.js projects using blazing fast esbuild

ts-node

ts-node | ts-node
TypeStrong/ts-node: TypeScript execution and REPL for node.js
Running TypeScript Scripts With Ease with ts-node ← Alligator.io

config

tsconfig.json · TypeScript
Compiler Options · TypeScript ❗!important

tsc --init generates a default tsconfig.json
default tsc targets es2016, update these settings in tsconfig.json

{
  "compilerOptions": {
    "target": "esnext",
    "module": "nodenext",
    "watch": true
  }
}