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 includeWorkspaceRoot setting to true
.
Usage example:
pnpm -r publish
Parametreler
--link-workspace-packages
- Varsayılan: false
- Type: true, false, deep
Link locally available packages in workspaces of a monorepo into node_modules
instead of re-downloading them from the registry. This emulates functionality similar to yarn workspaces
.
When this is set to deep, local packages can also be linked to subdependencies.
Be advised that it is encouraged instead to use pnpm-workspace.yaml
for this setting, to enforce the same behaviour in all environments. This option exists solely so you may override that if necessary.