Skip to content

feat: support built-in PM commands with -w flag#61

Open
hyldmo wants to merge 1 commit into
mainfrom
hyldmo/workspace-builtin-cmds
Open

feat: support built-in PM commands with -w flag#61
hyldmo wants to merge 1 commit into
mainfrom
hyldmo/workspace-builtin-cmds

Conversation

@hyldmo
Copy link
Copy Markdown
Owner

@hyldmo hyldmo commented Feb 28, 2026

Summary

  • -w install (or any built-in PM command like audit, update, outdated) now works across all workspaces
  • Detection is dynamic — probes the detected package manager at runtime via <pm> <command> --help exit code, no hardcoded command lists
  • Scripts still take priority: if any workspace has the command as a script, it uses <pm> run <command> for those workspaces only

Test plan

  • Built-in command (install) runs <pm> <command> in all workspaces with persistent: false
  • Script takes priority over built-in command (e.g. test script wins over npm test)
  • Unknown command throws with descriptive error mentioning both script and built-in lookup
  • All 502 existing tests pass
  • Typecheck and lint clean

🤖 Generated with Claude Code

When `-w <command>` doesn't match any workspace script, probe whether
it's a built-in package manager command (e.g. install, audit, update)
by running `<pm> <command> --help` and checking the exit code. If valid,
run `<pm> <command>` in all workspaces. Scripts still take priority.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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