Monorepo Builds keep using npm instead of bun

As title says, I keep having the issue that the automatic builds correctly identify bun and it's version but proceed trying to install with npm. Can I somehow force Cloudflare Build to use bun over npm?
4 Replies
RiskyMH
RiskyMH2w ago
is there a chance you are using the new text lockfile format of bun.lock or do you have your bun.lockb file in the monorepo package/app and not root?
Makisuo
MakisuoOP2w ago
issue is in most workflows I use the package directory as the root directory, meaning the lockfile isnt found by the CF CI defaulting to npm. I would just really like to force it to use bun rather than switching the app root.
RiskyMH
RiskyMH2w ago
Ah i see, this is where vercel makes it easier with custom install script
Makisuo
MakisuoOP2w ago
Yeah don’t really understand though why this isn’t an option here doesn’t seem too much 🥲

Did you find this page helpful?