Add first-class Bun workspace manager support to workspace-tools#1113
Open
RafalFilipek wants to merge 7 commits into
Open
Add first-class Bun workspace manager support to workspace-tools#1113RafalFilipek wants to merge 7 commits into
RafalFilipek wants to merge 7 commits into
Conversation
Agent-Logs-Url: https://github.com/RafalFilipek/lage/sessions/39cec0ca-a9e9-41f4-8f1b-984c06efbb2d Co-authored-by: RafalFilipek <80960+RafalFilipek@users.noreply.github.com>
Agent-Logs-Url: https://github.com/RafalFilipek/lage/sessions/39cec0ca-a9e9-41f4-8f1b-984c06efbb2d Co-authored-by: RafalFilipek <80960+RafalFilipek@users.noreply.github.com>
Agent-Logs-Url: https://github.com/RafalFilipek/lage/sessions/39cec0ca-a9e9-41f4-8f1b-984c06efbb2d Co-authored-by: RafalFilipek <80960+RafalFilipek@users.noreply.github.com>
…EADME.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Agent-Logs-Url: https://github.com/RafalFilipek/lage/sessions/b81e1d79-1a38-41b4-bc3b-d9b148a333cf Co-authored-by: RafalFilipek <80960+RafalFilipek@users.noreply.github.com>
…manager Add first-class Bun workspace manager support to workspace-tools
There was a problem hiding this comment.
Pull request overview
Adds first-class Bun workspace manager support to workspace-tools, so Bun monorepos can be detected and have workspace patterns resolved reliably (instead of treating Bun as npm implicitly).
Changes:
- Extend the public
WorkspaceManagertype and utilities wiring to support"bun". - Update manager-root detection to recognize both
bun.lockandbun.lockb(including multi-marker manager lookup). - Add Bun test coverage and a new Bun monorepo fixture; update docs + API report accordingly.
Reviewed changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/workspace-tools/src/workspaces/implementations/getWorkspaceUtilities.ts | Adds lazy-loaded Bun utilities path in the manager switch. |
| packages/workspace-tools/src/workspaces/implementations/getWorkspaceManagerAndRoot.ts | Adds Bun lockfile markers and updates detection logic to support managers with multiple marker files. |
| packages/workspace-tools/src/workspaces/implementations/bun.ts | Introduces Bun-specific utilities (workspace patterns via package.json#workspaces). |
| packages/workspace-tools/src/types/WorkspaceManager.ts | Extends the exported WorkspaceManager union with "bun". |
| packages/workspace-tools/src/tests/workspaces/getWorkspaces.test.ts | Adds Bun scenario to workspace info tests. |
| packages/workspace-tools/src/tests/workspaces/getWorkspaceManagerAndRoot.test.ts | Adds Bun detection scenario + explicit bun.lockb detection test. |
| packages/workspace-tools/src/tests/setupFixture.ts | Registers the new Bun fixture name in the fixture typing. |
| packages/workspace-tools/src/fixtures/monorepo-basic-bun/package.json | Adds Bun monorepo root fixture with workspaces config. |
| packages/workspace-tools/src/fixtures/monorepo-basic-bun/bun.lock | Adds Bun lockfile marker fixture. |
| packages/workspace-tools/src/fixtures/monorepo-basic-bun/README.md | Documents the Bun fixture intent and expected structure. |
| packages/workspace-tools/src/fixtures/monorepo-basic-bun/packages/package-a/package.json | Fixture workspace package A (deps to mirror other monorepo-basic fixtures). |
| packages/workspace-tools/src/fixtures/monorepo-basic-bun/packages/package-b/package.json | Fixture workspace package B. |
| packages/workspace-tools/src/fixtures/monorepo-basic-bun/individual/package.json | Fixture for a non-nested workspace package. |
| packages/workspace-tools/etc/workspace-tools.api.md | Updates API report to reflect the new WorkspaceManager union member. |
| packages/workspace-tools/README.md | Updates supported managers + PREFERRED_WORKSPACE_MANAGER docs to include Bun. |
| change/change-bun-workspace-tools.json | Adds a patch change entry for releasing workspace-tools with Bun support. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Author
|
@microsoft-github-policy-service agree |
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.
workspace-toolscould not reliably recognize Bun monorepos and the local patch approach (case "bun"mapped to npm) was incomplete. This change adds explicit Bun support across manager detection, utility resolution, and test fixtures.Workspace manager model
WorkspaceManagerunion with"bun".Manager detection
getWorkspaceManagerAndRootwith support for both:bun.lockbun.lockbWorkspace utilities wiring
workspaces/implementations/bun.ts.getWorkspaceUtilitiesas a dedicated manager path.package.json#workspacessemantics (same workspace-shape behavior as npm).Coverage and fixtures
monorepo-basic-bunfixture.Docs and API surface
workspace-toolsREADME supported managers +PREFERRED_WORKSPACE_MANAGERvalues.WorkspaceManagertype.