Support bun new text-based lockfile
Since bun version 1.1.39, it supports new text-based lock file inplace of old binary lockfile.
- https://bun.sh/blog/bun-v1.1.39#bun-lock-is-bun-s-new-text-based-lockfile
- https://bun.sh/blog/bun-lock-text-lockfile
In my repo, I replaced
bun.lockb file with bun.lock
But Cloudflare Pages can't detect that bun install --frozen-lockfile should be issued.
Current workaround is to include a bun.lockb file in repo.
The file can be empty.
It's used to make Cloudflare Pages know that we're using bun as package managerBun
Bun's new text-based lockfile
We're introducing a new text-based lockfile format for bun install. It's GitHub & git-friendly, and makes it easier for teams to migrate from npm, yarn, and pnpm to bun install
4 Replies
cc @aniniflare
may I know if this is supported yet?
any progress?
As listed in this page, the tools of v2 build system still don't update the default version of Bun. It's still
1.1.33.
https://developers.cloudflare.com/pages/configuration/build-image/
So I think it's not supported yet.Cloudflare Docs
Build image · Cloudflare Pages docs
Cloudflare Pages' build environment has broad support for a variety of languages, such as Ruby, Node.js, Python, PHP, and Go.
yeah - my method is to create empty
bun.lock file and set BUN_VERSION to latest version of 1.2.10