Skip to content
rolldown avatar

Tsdown Migrate

Migrate tsup library projects to tsdown with option mappings, default differences, and two-stage guidance.

CCM score
70 of 100
skills.sh installs
411
GitHub stars
4.4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the two-stage migration: first on tsdown@0.22.14 until the build emits zero deprecation warnings, then upgrade to ^0.23.0 or newer
  • Includes property renames (entryPoints to entry, cjsInterop to cjsDefault), external/noExternal to deps moves, and plugin import transforms from /esbuild to /rolldown
  • Enforces explicit format: 'cjs' and clean: false settings to preserve tsup defaults that tsdown changes
  • Designed for AI agents performing config migrations, and for Node.js 22.18+ build environments with lower-version targets

Install

$ npx -y skills add rolldown/tsdown --skill tsdown-migrate -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Migrating from tsup to tsdown

Knowledge base for AI agents to migrate tsup projects to tsdown — the Rolldown-powered library bundler.

Target Version: Two-Stage Migration

tsdown v0.23 removed all previously-deprecated tsup compatibility options — bundle, outExtension, publicDir, removeNodeProtocol, injectStyle, and skipNodeModulesBundle are no longer recognized. They fail TypeScript type checking and are silently ignored at runtime, so a missed mapping on v0.23+ produces wrong output without any error. Migrating directly to v0.23+ is therefore unsafe. tsdown v0.22.14 is the last version that still accepts these options and flags each one with a deprecation warning, making it the safe migration checkpoint. Migrate in two stages:

Details

Repository
github.com/rolldown/tsdown
Categories
Frontend & UI Code, CLI & Terminal
First seen
Jun 3, 2026

Similar to Tsdown Migrate

More Frontend & UI Code