Bun install or Skip NPM install for Workers
Hello, I am trying to deploy from a monorepo that uses
Bun
. That means we have workspace dependencies.
I noticed the env SKIP_DEPENDENCY_INSTALL
for Cloudflare Pages, is there something similar ― or does someone have some insights into the way to go about this?3 Replies
The goal here, is to skip the NPM install, so that I can use the build command to do
bun install
prior to the build.
I've added "packageManager": "[email protected]"
to the root package.json
of the monorepo as well as the subfolder containing the project, in hopes, that maybe Cloudflare could work out to use Bun ― with no luck.
Despite bun.lock
I figured I should try adding bun.lockb
to the root, and it seems that, that made Cloudflare detect a Bun environment. I guess Workers build just needs to update that🤷🏿♂️Can confirm
Btw you made sure to use latest bun by setting BUN_VERSION env var right (otherwise it's prob not using lockfile as it's on some old thing)
Ah maybe package manager field adds it, not sure