Introduce -w
global flag for running commands in workspaces
#180
Labels
enhancement
New feature or request
-w
global flag for running commands in workspaces
#180
Clear and concise description of the problem
All package managers support some form of setting a workspace/package for running commands. It would be convenient to have this as a unified
-w
/--workspace
flag, rather than having to figure out what package manager a workspace is using in order to run commands for specific workspaces.If there is interest in this, I'd be willing to attempt a PR at implementing it.
Suggested solution
Introduce a global
-w
flag that lets you run commands based on a workspace name.e.g. ni would be translated as:
There's probably some more considerations and complexity beyond the basic use case to figure out, such as:
-w packageA -w packageB
)-w @package/*
)-w *
)-w
diverges from the npm implementation (likely will), we'd probably want a different flag. Maybe just uppercase-W
Alternative
Continue just using the per-package way of doing things. They're not super standard between packages (especially bun), so maybe it does make sense to leave as is.
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: