refactor: migrate monorepo to bun v1.3.x#480
Conversation
✅ Deploy Preview for dither-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Didn't we want to use bun and pnpm? |
We could, but it wouldn't have any benefit since we already have the bun toolchain. |
|
The most noticeable things that has changed for my eyes was the |
|
Tried to run |
|
Co-authored-by: Jerónimo Albi <894299+jeronimoalbi@users.noreply.github.com>
Co-authored-by: Jerónimo Albi <894299+jeronimoalbi@users.noreply.github.com>
Co-authored-by: Jerónimo Albi <894299+jeronimoalbi@users.noreply.github.com>
Using bun as the runtime, code collocation in the monorepo doesn't require any build step, so the modules can be server from the ts source directly. |
Does this work natively with Netlify? At the moment it expects dist as the directory. It is defined in the settings. |
We still build the frontend since it runs on the client, it can't be raw typescript. Everything else that runs on the server can be typescript native. |
Summary
Migrates the entire monorepo from pnpm + Node to Bun v1.3.x.
This includes:
oven-sh/setup-bunand replacepnpmcommands withbunequivalents.bun run.Tiltfile, Husky, lint-staged) to use Bun.