Skip to Content
πŸ“– Guide DocumentsπŸ“¦ SetupOverview

Setup

Choose a setup for your CLI, editor, or bundler. Each guide includes installation, configuration, and a verification step.

The common base

Every surface starts from the same two packages:

npm install -D ttsc typescript

ttsc reads the tsconfig.json you already have, and npx ttsc builds where npx tsc did. Each page below adds its own package on top of this base.

Keep TypeScript 6 for ESLint

If your tooling needs the JavaScript TypeScript 6 compiler API, keep it under typescript and install native TypeScript 7 under @typescript/native:

npm install -D ttsc typescript@npm:@typescript/typescript6@6.0.2 @typescript/native@npm:typescript@7.0.2

ttsc, its plugin builders, and its VS Code extension use the nearest ancestor package.json declaring TypeScript or its aliases. They discover npm aliases by their npm:typescript@... declaration and verify the installed package’s name and native version. The alias name is yours to choose; @typescript/native above is an example. Declared native aliases take precedence over typescript. If that manifest exposes multiple distinct native alias installations, select one with --binary or TTSC_TSGO_BINARY.

ESLint continues to resolve TypeScript 6. A TypeScript 6 installation alone cannot run ttsc; a native compiler is still required. Install optional dependencies so the native platform executable is available.

Pick your surface

Start with the Introduction for installation and a first build.

Last updated on