From fuse-typescript
Use when running TypeScript on Bun — bunfig.toml, bun test (coverage, JUnit, preload), Bun.build and --compile, workspaces, and the Bun vs Node transpiler tradeoff. Covers Bun 1.3.x. Do NOT use for Node.js runtime setup (ts-runtime-node) or tsconfig details (ts-config).
How this skill is triggered — by the user, by Claude, or both
Slash command
/fuse-typescript:ts-runtime-bunThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Before ANY implementation, use `TeamCreate` to spawn 3 agents:
Before ANY implementation, use TeamCreate to spawn 3 agents:
package.json, bunfig.toml, tsconfig.jsonAfter implementation, run fuse-ai-pilot:sniper for validation.
.ts/.tsx directly on Bun with no separate transpile stepbunfig.toml ([test] coverage thresholds, JUnit reporter, preload)Bun.build / bun build, or producing a --compile single-file binarynode:test → use ts-runtime-node.ts/.tsx natively - Its transpiler handles TS + JSX with no config; unlike Node, .tsx, enum, and decorators work at runtime.tsc typechecking.bunfig.toml is Bun-only - It complements, never replaces, package.json and tsconfig.json; CLI flags override bunfig values.bun test is Jest-compatible - Import from bun:test; not every Jest feature is implemented.tsc --noEmit (or bun x tsc) in CI; Bun's runtime and bundler do no type checking.monorepo/
├── package.json # "workspaces": ["packages/*"]
├── bunfig.toml # [test] coverage + [test.reporter] junit
├── bun.lock
├── tsconfig.json
└── packages/
├── core/ # bun:test, Bun.build
└── cli/ # bun build --compile → binary
→ See bun-project-setup.md for a complete setup
| Topic | Reference | When to Consult |
|---|---|---|
| bunfig + test | bunfig-test.md | Coverage thresholds, JUnit, preload, watch |
| Build + compile | build-compile.md | Bun.build, single-file executables, cross-compile |
| Workspaces | workspaces.md | Monorepo layout, workspace:*, --filter, catalogs |
| Bun vs Node | references/bun-vs-node.md | Choosing a runtime; transpiler differences |
| Template | When to Use |
|---|---|
| bun-project-setup.md | Starting a Bun TS project or monorepo |
bunfig.toml for CIbun test --coverage and --reporter=junit --reporter-outfile in pipelines--compile --target= to cross-compile CLIs for other platformsbun build as a typechecker — run tsc --noEmit alongside ittsconfig settings into bunfig.toml — Bun reads tsconfig directlynpx claudepluginhub fusengine/agents --plugin fuse-typescriptConfigures and runs TypeScript build tooling with Bun, tsgo, Vitest, Biome, and Turborepo. Covers package.json scripts, typechecking, testing, linting, formatting, and monorepo development.
Runs Bun scripts, tests with compact reporters and bail flags, builds bundles/executables, and initializes projects using flags for fast feedback and minimal output.