Skip to content

[WIP] Support both bun.lock and bun.lockb lockfile formats #359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mattppal
Copy link

Why

Currently we're not treating bun.lock as a special file since the file was changed from bun.lockb in version 1.2. Additionally, we do not trigger bun on the build when deploying in the presence of a bun.lock file.

I made the updates in Replit Web here: https://github.com/replit/repl-it-web/pull/57665

This PR is to address that bun.lock is not recognized.

If bun.lockb is present and bun > 1.2 is present, UPM successfully upgrades bun.lockb to bun.lock and uses bun.

However, the builder does not use bun on deployment with version greater than 1.2 and bun.lock solely in the file system.

What changed

Describe what changed to a level of detail that someone with no context with your PR could be able to review it

Test plan

Describe what you did to test this change to a level of detail that allows your reviewer to test it

@mattppal mattppal requested a review from a team as a code owner July 29, 2025 18:17
@mattppal mattppal requested review from daweifeng-replit and removed request for a team July 29, 2025 18:17
@mattppal mattppal changed the title Support both bun.lock and bun.lockb lockfile formats [WIP] Support both bun.lock and bun.lockb lockfile formats Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants