Workers Builds: How to set a package manager?

In my repository, I'm mainly using Bun as the package manager. However, I need to deploy a subdirectory which is using npm (because of irrelevant reasons). Unfortunately, it still detects bun and tries to install dependencies with bun instead of npm, causing the build to fail. I tried setting BUN_VERSION=0 which failed because it tried to install bun@0. I also tried setting "packageManager": "npm@..." in package.json, but it ignores it. Ended up skipping dependency installation using SKIP_DEPENDENCY_INSTALL=1 and then use npm install && npm run build as build command. This sometimes work, sometimes doesn't... Is there any way to force a package manager?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?