H
Hono5mo ago
brunoalano

Using Hono through Bun inside a Node/Pnpm Monorepo

Hello, I would like to use Hono inside our Turborepo project, but actually we are using pnpm since many said that using bun are not stable enough. It's possible to use and deploy Hono on Bun under that context? I want to avoid the hono/node-server because it has some issues, and the ideal scenario would be able to deploy through Docker this hono instance (using turborepo prune feature).
3 Replies
Nico
Nico5mo ago
I’m unaware of any issues with Hono and node. You a use pnpm as a package manager along with Bun as well. Bun appears to be stable but does not has many features as Node yet. So the choice is really yours. For the most part you can switch between Bun and Node with very minimal code changes or even make a Node entry point and a Bun entry point
Chad Norvell
Chad Norvell5mo ago
I just did the same thing today with an existing pnpm /turbo monorepo. I swapped out hono/node-server with Bun without any problems at all. I just made sure to replace tsx watch index.ts with bun --watch index.ts in my package.json scripts.
Nico
Nico5mo ago
Personally I use Bun. It has everything I need for my applications. It's either Bun of CF Pages / Workers
Want results from more Discord servers?
Add your server