Skip to content

build: migrate from tsup to tsdown#302

Merged
yusukebe merged 6 commits intohonojs:v2from
tommy-ish:feat/tsdown
Mar 13, 2026
Merged

build: migrate from tsup to tsdown#302
yusukebe merged 6 commits intohonojs:v2from
tommy-ish:feat/tsdown

Conversation

@tommy-ish
Copy link

@tommy-ish tommy-ish commented Feb 11, 2026

I migrated build tool from tsup to tsdown.

I ran npx tsdown-migrate according to tsdown's Migration Guide.

I modified the tsdown configuration to align with the paths defined in package.json.

I added a separate ci-build job running on Node.js 24, since tsdown (Rolldown) requires node:util#styleText which is not available in Node.js 18.

Replace tsup (^7.2.0) with tsdown (^0.20.3) and update build/watch
scripts accordingly.
@tommy-ish tommy-ish marked this pull request as draft February 11, 2026 05:50
Update exports to use .cjs/.mjs/.d.cts/.d.mts extensions matching
tsdown's actual output, and nest type definitions per format to
resolve publint errors.
@tommy-ish tommy-ish marked this pull request as ready for review February 11, 2026 06:38
@yusukebe yusukebe added the v2 label Feb 15, 2026
@rafaell-lycan
Copy link

Does it impact the output size? 🤔

@yusukebe
Copy link
Member

The output size will be reduced significantly!

@yusukebe yusukebe changed the base branch from main to v2 March 13, 2026 01:13
@yusukebe
Copy link
Member

@tommy-ish

Sorry for being late. Adding ci-build is good! I'll merge this into the v2 branch for the next major release. Thanks!

@yusukebe yusukebe merged commit 0443bcb into honojs:v2 Mar 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants