From nuxt-skills
Bundles TypeScript libraries with tsdown, providing dual ESM/CJS output, .d.ts declaration generation, and package validation. Useful when building or publishing npm packages.
How this skill is triggered — by the user, by Claude, or both
Slash command
/nuxt-skills:tsdownThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Rolldown + Oxc powered TypeScript bundler. Drop-in tsup replacement.
Rolldown + Oxc powered TypeScript bundler. Drop-in tsup replacement.
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
| 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 |
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.
ts-library skillvue skillpnpm skillnpx claudepluginhub onmax/nuxt-skills --plugin nuxt-skillsGuides TypeScript library authoring: project setup, dual CJS/ESM package exports, tsdown/unbuild config, type-safe API design, advanced type patterns, vitest testing, and npm release workflows.
Develops npm packages with Node.js and TypeScript: library setup, CLI tools, dual ESM/CJS exports, tsup/tsc builds, vitest testing, and versioning/dist-tag strategies.
Packages Vovk.ts TypeScript API clients as zero-dep publishable npm packages using `vovk bundle` CLI, `bundle.build`, [email protected] recipe, and outputConfig options. Use for shipping SDKs to npm.