Skip to Content

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-check

In this chapter

  • Compile: ttsc build / check / watch / fix / format. Day-to-day commands and the full flag reference.
  • Execute: ttsx. The typed replacement for tsx and ts-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:

  1. Read tsconfig.json.
  2. Type-check the project.
  3. Run every configured plugin, in order.
  4. 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