Configures tsdown for efficient TypeScript library bundling, supporting ESM/CJS outputs and declaration files.
Install
mkdir -p .claude/skills/tsdown && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1310" && unzip -o skill.zip -d .claude/skills/tsdown && rm skill.zipInstalls to .claude/skills/tsdown
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when bundling TypeScript libraries - provides tsdown configuration, dual ESM/CJS output, .d.ts generation, package validation, and plugin authoringKey capabilities
- →Bundle TypeScript libraries
- →Generate .d.ts declaration files
- →Configure dual ESM and CJS output
- →Validate package exports
- →Watch files for changes
How it works
It utilizes Rolldown and Oxc to perform high-speed bundling and transformation of TypeScript code into multiple module formats.
Inputs & outputs
When to use tsdown
- →Bundle a TypeScript library
- →Generate .d.ts files
- →Configure dual ESM/CJS output
- →Set up tsdown.config.ts
About this skill
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
| Task | File |
|---|---|
| Config file, CLI, entry points | config.md |
| Format, target, dts, exports, validation | output.md |
| Shims, unbundle, watch, frameworks, WASM | features.md |
| Plugins, hooks, lint, programmatic, migration | advanced.md |
Loading Files
Consider loading these reference files based on your task:
- references/config.md - if setting up tsdown.config.ts, CLI, or entry points
- references/output.md - if configuring output format, target, .d.ts, exports, or validation
- references/features.md - if using shims, unbundle, watch mode, framework integrations, or WebAssembly
- references/advanced.md - if writing plugins, using linting/validation, programmatic API, or migrating from tsup
DO NOT load all files at once. Load only what's relevant to your current task.
Cross-Skill References
- Library patterns → Use
ts-libraryskill - Vue component libs → Use
vueskill - Package management → Use
pnpmskill
When not to use it
- →When building non-TypeScript projects
Prerequisites
Limitations
- →Configuration is specific to the tsdown schema
- →Requires TypeScript as a peer dependency
How it compares
It serves as a high-performance, drop-in replacement for tsup, focusing on modern build standards and faster execution.
Compared to similar skills
tsdown side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| tsdown (this skill) | 3 | 6mo | Review | Intermediate |
| drizzle | 238 | 2mo | No flags | Intermediate |
| zustand | 113 | 2mo | No flags | Intermediate |
| motion-canvas | 58 | 6mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by onmax
View all by onmax →You might also like
drizzle
lobehub
Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.
zustand
lobehub
Zustand state management guide. Use when working with store code (src/store/**), implementing actions, managing state, or creating slices. Triggers on Zustand store development, state management questions, or action implementation.
motion-canvas
davila7
Complete production-ready guide for Motion Canvas with ESM/CommonJS workarounds, full setup templates, and troubleshooting for programmatic video creation using TypeScript
turborepo
vercel
Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines, dependsOn, caching, remote cache, the "turbo" CLI, --filter, --affected, CI optimization, environment variables, internal packages, monorepo structure/best practices, and boundaries. Use when user: configures tasks/workflows/pipelines, creates packages, sets up monorepo, shares code between apps, runs changed/affected packages, debugs cache, or has apps/packages directories.
shadcn-ui-setup
maneeshanif
Install and configure Shadcn/ui component library with Radix UI primitives, Aceternity UI effects, set up components, and manage the component registry. Use when adding Shadcn/ui to a Next.js project or installing specific UI components for Phase 2.
angular
sickn33
Modern Angular (v20+) expert with deep knowledge of Signals, Standalone Components, Zoneless applications, SSR/Hydration, and reactive patterns. Use PROACTIVELY for Angular development, component architecture, state management, performance optimization, and migration to modern patterns.