Skip to content

build: replace tsup with tsdown workspace#351

Merged
yusukebe merged 16 commits intohonojs:mainfrom
Moshyfawn:build/tsdown-workspace
Apr 5, 2026
Merged

build: replace tsup with tsdown workspace#351
yusukebe merged 16 commits intohonojs:mainfrom
Moshyfawn:build/tsdown-workspace

Conversation

@Moshyfawn
Copy link
Copy Markdown
Contributor

Description

  • Replace tsup with tsdown across all packages
  • Add a shared build config
  • Unlock parallel builds of all packages: around 4x build speed improvement: went from 13s to 3s on an M3 Mac.
  • Run built-in publint, attw, and unused checks
  • Add root tsdown dependency using yarn's workspace resolution
  • Remove tsup, rimraf, glob, and per-package publint dependencies

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 19, 2026

⚠️ No Changeset found

Latest commit: 89ce455

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Moshyfawn
Copy link
Copy Markdown
Contributor Author

I noticed some of the Hono core packages use tsdown which I've also adopted for my own projects, gaining a substantial boost in both build times and ease of package management. I decided to give Hono Vite plugins tsdown migration a try for the same reason I now always pick tsdown 😊

Exports takes precedence over typesVersions in all modern moduleResolution modes apart from node10
@Moshyfawn Moshyfawn force-pushed the build/tsdown-workspace branch from 676b8e0 to a67cef5 Compare March 19, 2026 13:00
Copy link
Copy Markdown
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe
Copy link
Copy Markdown
Member

yusukebe commented Apr 5, 2026

@Moshyfawn

Unlock parallel builds of all packages: around 4x build speed improvement: went from 13s to 3s on an M3 Mac.

Amazing! You are done well.

I updated some by myself, and it looks good. Let's go with this.

@yusukebe yusukebe merged commit cde672c into honojs:main Apr 5, 2026
10 of 11 checks passed
Comment on lines +29 to +31
"./adapter/cloudflare": {
"import": "./dist/adapter/cloudflare.mjs",
"require": "./dist/adapter/cloudflare.cjs"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: here the ./cloudflare export has been updated to ./adapter/cloudflare

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants