Skip to content

Migrating a Real TypeScript OSS Library from tsup to tsdown

6.6 relevance
Score Breakdown
technical depth
7
novelty
6
actionability
8
community
6
strategic
4
personal
7

Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.

TypeScript build tool migration guide, actionable for OSS maintainers and platform engineers.

Languages dev.to
Migrating a Real TypeScript OSS Library from tsup to tsdown
Summary

Migrating a real TypeScript OSS library from tsup to tsdown revealed that a successful build can silently break the package contract by changing output filenames and declaration formats. The author found that tsdown's default output (index.cjs, index.d.mts, index.d.cts) differed from tsup's (index.js, index.d.ts), requiring explicit config overrides to preserve existing package.json exports for ESM/CJS consumers. A packed-package smoke test was essential to catch these breaking changes before publishing.

Author

nyaomaru

More from nyaomaru →