halay08

tsdown

by @halay08 in Tools
0
0
# Install this skill:
npx skills add halay08/fullstack-agent-skills --skill "tsdown"

Install specific skill from multi-skill repository

# Description

tsdown is a fast and elegant TypeScript library bundler powered by Rolldown and Oxc

# SKILL.md


name: tsdown
description: tsdown is a fast and elegant TypeScript library bundler powered by Rolldown and Oxc
license: MIT


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

Load Based on Task

Setting up config? β†’ Load config.md
Configuring output? β†’ Load output.md
Using features? β†’ Load features.md
Plugins/migration? β†’ Load advanced.md

Cross-Skill References

  • Library patterns β†’ Use ts-library skill
  • Vue component libs β†’ Use vue skill
  • Package management β†’ Use pnpm skill

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.