askill
tsdown

tsdownSafety 95Repository

Use when bundling TypeScript libraries - provides tsdown configuration, dual ESM/CJS output, .d.ts generation, package validation, and plugin authoring

552 stars
11k downloads
Updated 2/16/2026

Package Files

Loading files...
SKILL.md

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

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

87/100Analyzed 2/25/2026

Well-structured skill for tsdown bundler with clear when-to-use guidance, actionable quick start, and excellent modular reference file system. Tags are slightly mismatched (linting doesn't fit). High reusability through cross-skill references and task-based file loading guidance.

95
90
90
75
85

Metadata

Licenseunknown
Version-
Updated2/16/2026
Publisheronmax

Tags

apici-cdlinting