Skip to content

fix: Add support for additional workspace formats in package.json files (Bun)#41908

Open
JarekToro wants to merge 2 commits intorenovatebot:mainfrom
JarekToro:nest-bun-workspaces
Open

fix: Add support for additional workspace formats in package.json files (Bun)#41908
JarekToro wants to merge 2 commits intorenovatebot:mainfrom
JarekToro:nest-bun-workspaces

Conversation

@JarekToro
Copy link

Changes

Add additional format of workspaces definitions in package.json when using bun.

Previous format (already worked}

{
    "workspaces" : ["pkgs/*", "apps/*"]
}

Additional Format (this PR adds support for)

{
    "workspaces" : { 
        "packages" : ["pkgs/*", "apps/*"]
     }
}

Why add this format?

It is defined here.
https://bun.com/docs/pm/catalogs#1-define-catalogs-in-root-package-json
Bun uses it when catalogs are also defined within the workspaces property

While catalogs for bun are not yet supported this would be a stepping stone to getting there. And the logic is simple enough I felt motivated in making a PR

Context

Please select one of the following:

  • This closes an existing Issue, Closes: #
  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

Please select one option and, if yes, briefly describe how AI was used (e.g., code, tests, docs) and which tool(s) you used.

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe): AI was used in creating a test case to help follow the existing testing patterns. The Test code was slightly adjusted. No AI was used in the implementation of the solution.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests, but ran on a real repository, or
  • Both unit tests + ran on a real repository

Ran Unit Test within a github codespace

@github-actions github-actions bot requested a review from viceice March 13, 2026 17:11
@JarekToro JarekToro changed the title Nest bun workspaces Add support for additional workspace formats in package.json files (Bun) Mar 13, 2026
@JarekToro JarekToro changed the title Add support for additional workspace formats in package.json files (Bun) fix: Add support for additional workspace formats in package.json files (Bun) Mar 13, 2026
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.

1 participant