Skip to content

feat: support bigger workspaces - #84

Merged
versnic merged 19 commits into
mainfrom
feat/bigger-workspaces
Nov 12, 2026
Merged

versnic merged 19 commits into
mainfrom
feat/bigger-workspaces

Conversation

@versnic

@versnic versnic commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

What and why

The "Bigger workspaces" milestone: the CLI now handles workspaces with nested folders, monorepos and more than one workspace.

  • Search depth (Add an optional search depth for nested projects #37): --set-depth 1|2|3 (saved as "depth") looks inside folders without a package.json, so clients/acme/web is found and named by its path. Direct mode also matches the last part of the name (web).
  • Monorepos (Detect monorepos and list their packages #36): projects with workspaces (npm, Yarn, Bun) or a pnpm-workspace.yaml expand in the project list into a root entry 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 tagged needs arguments: the menu asks for them first, and direct mode refuses to run them without -- args.
  • Named workspaces (Support multiple named workspaces #38): every workspace is saved under a name ("workspaces" in the config). Folders added from ⚙ Workspace are asked for a name. --workspace takes a name or a path, --list-workspaces and --remove-workspace manage 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):

  • The Git branch never showed in the project list: the list's load dropped detailEnd (since 0.9.x).
  • A recently used monorepo lost its packages in the list.
  • A prefix of a monorepo's name (dws sho dev) matched its packages too and was refused as ambiguous.
  • A monorepo's packages were read once per session, so a package added meanwhile only showed after a restart.
  • pnpm-workspace.yaml: packages listed without indentation, a comment after a quoted package, and a [...] list over several lines were not read.
  • A !**/test/** exclusion kept the test folder 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

  • Projects in nested folders: dws --set-depth 2 (or 3) also searches folders without a package.json, so clients/acme/web is listed, and dws web dev finds it by its last part (Add an optional search depth for nested projects #37).
  • The packages of npm, Yarn, pnpm and Bun monorepos are listed with their monorepo, found by the search, and run with the monorepo's package manager (Detect monorepos and list their packages #36).
  • Several named workspaces: folders added from ⚙ Workspace are asked for a name, --workspace takes a name or a path, --list-workspaces and --remove-workspace manage them, and the header shows the workspace's name (Support multiple named workspaces #38).
  • Opening a monorepo expands it into a root entry for its own scripts, followed by its packages (Detect monorepos and list their packages #36).
  • Scripts that only work with more arguments, such as yarn workspaces foreach --all, are tagged needs arguments: the menu asks for them first, and dws <project> <script> needs them after -- (Detect monorepos and list their packages #36).
  • Packages are shown as a tree under their monorepo, by folder name (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).
  • fix: The Git branch of each project shows in the project list again.
  • fix: A recently used monorepo keeps its packages in the list.
  • fix: A prefix of a monorepo's name (dws sho dev) finds the monorepo, not also its packages.
  • fix: Packages listed without indentation in pnpm-workspace.yaml are found.
  • fix: A comment after a quoted package in pnpm-workspace.yaml is left out of its pattern.
  • fix: A pnpm-workspace.yaml packages list in [...] spread over several lines is read.
  • fix: A monorepo's packages are read again after opening it or one of its packages, so new packages show without a restart.
  • fix: An exclusion ending in /**, such as !**/test/**, also leaves out the folder itself.

AI use

  • No AI tool was used
  • AI tools were used, as described here:

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

  • The title follows Conventional Commits (feat:, fix:, docs:, …) and is lowercase
  • Tests cover the change, or it needs none
  • The README describes the change
  • The roadmap is updated if this completes a roadmap item
  • Tested in a real terminal with a temporary configuration (DEV_WORKSPACE_CONFIG), if the change affects what the CLI shows or does
  • The README, roadmap and guides are up to date with the change

🤖 Generated with Claude Code

@versnic versnic self-assigned this Nov 11, 2026
@github-actions github-actions Bot added enhancement New feature or improvement release: minor Merging publishes a minor release (feat:) labels Nov 11, 2026
@versnic
versnic force-pushed the feat/bigger-workspaces branch from 3710cbb to c3c63f2 Compare November 11, 2026 13:42
@versnic
versnic marked this pull request as ready for review November 12, 2026 12:08
@versnic
versnic merged commit b4e2138 into main Nov 12, 2026
20 checks passed
@versnic
versnic deleted the feat/bigger-workspaces branch November 12, 2026 12:10
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions Bot added the released Included in a published release (added by semantic-release) label Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement release: minor Merging publishes a minor release (feat:) released Included in a published release (added by semantic-release)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support multiple named workspaces Add an optional search depth for nested projects Detect monorepos and list their packages

1 participant