mcpField
T
tsdown

tsdown

github.com/onmaxDevelopment7231.3k installsUpdated 2d ago
Repository

About tsdown

tsdown is a TypeScript bundler powered by Rolldown and Oxc, and a drop-in replacement for tsup. This skill guides developers building TypeScript libraries and npm packages through configuration, output formats, and advanced features.

Key features

  1. 01Bundle TypeScript projects
  2. 02Generate .d.ts declarations
  3. 03Produce ESM and CJS output
  4. 04Run in watch mode
  5. 05Consult configuration and migration guides

Use cases

  1. 01Build and publish a TypeScript library
  2. 02Generate type declarations for an npm package
  3. 03Configure bundling for Vue or React component libraries
  4. 04Migrate build configuration from tsup

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/onmax/nuxt-skills --skill tsdown

After installing, type/tsdownin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
advanced.md
config.md
features.md
output.md

Details

From the project README

tsdown

Rolldown + Oxc powered TypeScript bundler. Drop-in tsup replacement.

When to Use

  • Building TypeScript libraries
  • Generating .d.ts declarations
  • Publishing npm packages
  • Dual ESM/CJS output
  • Vue/React component libraries

Quick Start

npm i -D tsdown typescript
// tsdown.config.ts
import { defineConfig } from 'tsdown'

export default defineConfig({
  entry: 'src/index.ts',
  format: 'esm',
  dts: true,
  exports: true,
})
tsdown           # Build
tsdown --watch   # Watch mode

Reference Files

TaskFile
Config file, CLI, entry pointsconfig.md
Format, target, dts, exports, validationoutput.md
Shims, unbundle, watch, frameworks, WASMfeatures.md
Plugins, hooks, lint, programmatic, migrationadvanced.md

Loading Files

Consider loading these reference files based on your task:

DO NOT load all files at once. Load only what's relevant to your current task.

Cross-Skill References

  • Library patterns → Use ts-library skill
  • Vue component libs → Use vue skill
  • Package management → Use pnpm skill

Comments

Markdown supported