pnpm -r, --recursive
别名:m
, multi
, recursive
, <command> -r
与以下命令一起使用时,在工作区的每个项目中运行命令:
install
list
outdated
publish
pack
rebuild
remove
unlink
update
why
与以下命令一起使用时,会在工作区的每个项目中运行命令,但不包括根项目:
exec
run
test
add
If you want the root project be included even when running scripts, set the includeWorkspaceRoot setting to true
.
用法示例:
pnpm -r publish