pnpm -r, --recursive
Aliases: m
, multi
, recursive
, <command> -r
Runs a command in every project of a workspace, when used with the following commands:
install
list
outdated
publish
rebuild
remove
unlink
update
why
Runs a command in every project of a workspace, excluding the root project, when used with the following commands:
exec
run
test
add
If you want the root project be included even when running scripts, set the include-workspace-root setting to true
.
Usage example:
pnpm -r publish