TTSC
The compiler, the runtime, and the bundler adapter, one toolchain, one tsconfig.json.
npx ttsc # build Β· check Β· watch Β· fix Β· format
npx ttsx file.ts # run TypeScript with a real type-checkIn this chapter
- Compile:
ttscbuild / check / watch / fix / format. Day-to-day commands and the full flag reference. - Execute:
ttsx. The typed replacement fortsxandts-node. - Bundler integration:
@ttsc/unplugin. Same plugin pass inside Vite, Webpack, Rollup, esbuild, Rspack, Rolldown, Next.js, Farm, Bun. - Playground: Browser-hosted ttsc with on-demand npm package tarball loading.
To show TypeScript errors and supported plugin diagnostics in VS Code, install the extension as part of Setup β Editor. For lint and format, see Lint & Prettier. For the utility plugins shipped in this repo and the wider ecosystem (typia, nestia, β¦), see Plugin Ecosystem.
How they fit together
Every ttsc build is one pass over your project:
- Read
tsconfig.json. - Type-check the project.
- Run every configured plugin, in order.
- Emit JS +
.d.ts(or skip with--noEmit).
ttsx does steps 1β3, then runs the result instead of emitting. @ttsc/unplugin runs the same plugin pass inside a bundler. The VS Code extension shows TypeScript-Go editor features plus supported plugin diagnostics and actions from the same project setup. It does not emit or rewrite JavaScript.
Last updated on