/fuse-typescript:ts-runtime-nodefrom fuse-typescript
Runs TypeScript files directly on Node.js via native type stripping. Covers erasable vs non-erasable syntax, when to use tsx, ESM setup, --watch mode, and migrating from ts-node.
Ships in fuse-typescript. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
It also covers when native stripping is insufficient and a full loader (tsx) is needed — paths, decorators, enum, or .tsx — plus setting up an ESM-only Node project, --watch mode, and node:test, and migrating a script/CLI off ts-node.
Out of scope: Bun runtime specifics belong to ts-runtime-bun; tsconfig configuration details belong to ts-config.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
package.json, tsconfig.json, entry scriptsModules: TypeScript and CLI flag docsAfter implementation, run fuse-ai-pilot:sniper for validation.
.ts/.mts/.cts files directly with node file.ts (no bundler)tsx)--watch mode, or node:testts-node to Node's built-in supportbun test → use ts-runtime-buntsc --noEmit separately for safety.tsconfig.json is ignored at runtime - paths, downleveling, and JS target lowering do not apply. Native stripping only erases inline types.enum, namespace with runtime code, parameter properties, and import aliases throw ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX.import type / verbatimModuleSyntax - Value imports of types crash at runtime; the type keyword is mandatory for type-only imports.import './file.ts', not ./file. .tsx is unsupported by native stripping.project/
├── package.json # "type": "module"
├── tsconfig.json # noEmit, erasableSyntaxOnly, verbatimModuleSyntax
├── src/
│ ├── index.ts # node src/index.ts
│ └── interfaces/ # type-only modules (import type)
└── test/
└── unit.test.ts # node --test (node:test)
→ See node-esm-setup.md for a complete setup
| Topic | Reference | When to Consult |
|---|---|---|
| Type Stripping | type-stripping.md | Running .ts natively, understanding what erases and what errors |
| When tsx | tsx-when-needed.md | Native stripping is insufficient (paths, enums, decorators, .tsx) |
| Node 26 / 24 features | references/node24-features.md | Watch mode, node:test, ESM resolution, relevant built-ins, Node 26 changes |
| Template | When to Use |
|---|---|
| node-esm-setup.md | Starting an ESM Node + native TS project |
"type": "module" and use .ts/.mts with explicit import extensionstsc --noEmit in CI for real type safety alongside runtime strippingtsx the moment you need paths, decorators, enum, or .tsxtsconfig paths or target downleveling work at runtime — they don't.ts files inside node_modules — Node refuses to strip themWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub fusengine/claude-plugins --plugin fuse-typescript7 skills in this plugin
/ts-configUse when creating or migrating a tsconfig.json, choosing module/moduleResolution, or fixing TS 6.0 deprecations that are hard errors in TS 7.0. Not for language syntax (ts-language-patterns)./ts-language-patternsUse when writing or reviewing modern TS syntax — const type parameters, using/await using, standard decorators, satisfies, or LLM anti-patterns (legacy enum/namespace). Not for tsconfig (ts-config)./ts-lint-formatUse when choosing or configuring a TS linter/formatter — Biome 2.x vs ESLint 10 flat config + typescript-eslint typed linting. Not for type checking itself (ts-config)./ts-packagingUse when publishing a TypeScript library — exports map, JSR vs npm, dual ESM/CJS, type validation, provenance. Not for application deployment./ts-runtime-bunUse when running TypeScript on Bun — bunfig.toml, bun test, Bun.build/--compile, or Bun workspaces. Not for Node.js runtime setup (ts-runtime-node)./ts-testingUse when writing or configuring TypeScript tests and choosing between bun test and Vitest. Not for framework-specific testing (React → react-testing).Other plugins' skills for the same job