All skills
onmax avatar

/tsdown

@6a37106

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

  • 5 files
  • 15.4 KB
  • MIT
  • Updated 8 months ago
  • GitHub

Use this Skill: https://skilld.dev/gh/onmax/claude-config/tsdown

This session only. Nothing lands on disk.

SKILL.md

โ‰ˆ35 tokens always: the name and description. โ‰ˆ465 when used: this file. โ‰ˆ3.4k more on demand in 4 files.

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 output.md
Shims, unbundle, watch, frameworks features.md
Plugins, hooks, programmatic, migration advanced.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

Source: SKILL.md on GitHub

No third-party reports yet.

Signed by skilld at 6a37106. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 8 hours ago.

Activeupdated 8 months ago

README badge

README badge for onmax/claude-config/tsdown