feat(core): add bun as supported package manager#4264
Open
Ch-Valentine wants to merge 7 commits intolerna:mainfrom
Open
feat(core): add bun as supported package manager#4264Ch-Valentine wants to merge 7 commits intolerna:mainfrom
Ch-Valentine wants to merge 7 commits intolerna:mainfrom
Conversation
Add Bun as fourth supported package manager with lockfile detection, bunx execution, version command support, E2E tests, and documentation. Implementation verified against Nx v19.5+ Bun support.
Bun v1.2+ changed the default lockfile format from binary bun.lockb to text-based bun.lock. This fix ensures backward compatibility by detecting both formats. Changes: - Update init command to check for both bun.lockb and bun.lock - Update version command to update whichever format exists - Update fixture detection to recognize both formats - Manual testing confirmed detection works with current Bun v1.3.6 This ensures Lerna works with both legacy Bun installations (bun.lockb) and current versions (bun.lock).
Author
|
@JamesHenry Hey! Can you take a look on the PR and review it, please ? |
|
@JamesHenry Hey, any updates regarding this PR ? We'd like to use the bun with the lerna in our company ? |
Removed comments regarding version updates and cleanup in the publish-bun.spec.ts test file.
Removed comments about adding a script and Bun's environment variable behavior.
Refactor tests for bun.lockb updates during versioning.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds Bun as a supported package manager to Lerna, enabling users to leverage Bun's native performance for monorepo management.
Motivation and Context
Bun has gained significant adoption for its speed. This PR enables Lerna to work seamlessly with Bun workspaces alongside npm/yarn/pnpm.
Key Changes:
bun.lockbdetectionbunxandbun runsupportHow Has This Been Tested?
Types of changes
Checklist