Repository navigation
feat: support bigger workspaces - #84
Merged
Merged
Conversation
versnic
force-pushed
the
feat/bigger-workspaces
branch
from
November 11, 2026 13:42
3710cbb to
c3c63f2
Compare
A package no longer repeats its monorepo folder (packages/api is shown as api, under ├ or └ tree lines); two packages with the same folder name keep their whole path. A package that is a Git repository of its own shows its branch.
# Conflicts: # ROADMAP.md # lib/args.js # lib/cli.js # lib/config.js # lib/list.js # lib/prompts.js # lib/ui.js # lib/workspace.js
# Conflicts: # README.md
|
🎉 This PR is included in version 0.11.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
What and why
The "Bigger workspaces" milestone: the CLI now handles workspaces with nested folders, monorepos and more than one workspace.
--set-depth 1|2|3(saved as"depth") looks inside folders without apackage.json, soclients/acme/webis found and named by its path. Direct mode also matches the last part of the name (web).workspaces(npm, Yarn, Bun) or apnpm-workspace.yamlexpand in the project list into arootentry for their own scripts, then their packages. Packages open and run like projects, with the monorepo's package manager. The search covers every package. Scripts that only work with arguments (yarn workspaces foreach --all, …) are taggedneeds arguments: the menu asks for them first, and direct mode refuses to run them without-- args."workspaces"in the config). Folders added from ⚙ Workspace are asked for a name.--workspacetakes a name or a path,--list-workspacesand--remove-workspacemanage them, and the header starts with the workspace's name.Bugs fixed on the way (only the first one was ever released; the others were in this pull request's own features):
loaddroppeddetailEnd(since 0.9.x).dws sho dev) matched its packages too and was refused as ambiguous.pnpm-workspace.yaml: packages listed without indentation, a comment after a quoted package, and a[...]list over several lines were not read.!**/test/**exclusion kept thetestfolder itself.The roadmap labels the milestone as released in 0.11.0 (latest tag v0.10.0,
feat→ minor).Closes #36
Closes #37
Closes #38
Release notes
dws --set-depth 2(or3) also searches folders without apackage.json, soclients/acme/webis listed, anddws web devfinds it by its last part (Add an optional search depth for nested projects #37).--workspacetakes a name or a path,--list-workspacesand--remove-workspacemanage them, and the header shows the workspace's name (Support multiple named workspaces #38).rootentry for its own scripts, followed by its packages (Detect monorepos and list their packages #36).yarn workspaces foreach --all, are taggedneeds arguments: the menu asks for them first, anddws <project> <script>needs them after--(Detect monorepos and list their packages #36).api, or the whole path when two share a name), and a package that is a Git repository of its own shows its branch (Detect monorepos and list their packages #36).dws sho dev) finds the monorepo, not also its packages.pnpm-workspace.yamlare found.pnpm-workspace.yamlis left out of its pattern.pnpm-workspace.yamlpackages list in[...]spread over several lines is read./**, such as!**/test/**, also leaves out the folder itself.AI use
I set the scope and the design decisions, and reviewed and approved every change. Claude Code helped me implement them, write the tests and update the README, roadmap and CONTRIBUTING.md.
Checklist
feat:,fix:,docs:, …) and is lowercaseDEV_WORKSPACE_CONFIG), if the change affects what the CLI shows or does🤖 Generated with Claude Code