pnpm -r, --recursive
별칭: m, multi, recursive, <command> -r
다음 명령과 함께 사용할 때 작업 공간의 모든 프로젝트에서 명령을 실행합니다.
installlistoutdatedpublishpackrebuildremoveunlinkupdatewhy
다음 명령과 함께 사용되는 경우 루트 프로젝트 를 제외하고 워크스페이스의 모든 프로젝트에서 명령을 실행합니다.
execruntestadd
스크립트를 실행할 때에도 루트 프로젝트를 포함하려면 includeWorkspaceRoot 설정을 true로 설정하세요.
사용 예:
pnpm -r publish
By default, recursive run, exec, and test execute projects in
topological order: dependencies run before their dependents. Use --no-sort
to disable graph ordering, or --parallel to start tasks without waiting for
dependencies.
옵션#
To link workspace packages, set linkWorkspacePackages or pass --link-workspace-packages to the install.
--workspace-concurrency#
- Default: the smaller of 4 and the number of available CPU cores
- 유형: Number
동시에 실행할 최대 작업 수를 설정합니다. 동시성을 무제한으로 하려면 Infinity를 사용하세요.
In a container with a CPU quota, such as a Kubernetes CPU limit, the quota is the number of available CPU cores when it is smaller than the number of CPUs the container may run on. A fractional quota is rounded down, to at least 1.
A value of 0 or less means the number of available CPU cores minus its absolute value, and at least 1. The matching setting is workspaceConcurrency.
--[no-]bail#
- 기본값: true
- 유형: Boolean
true인 경우, 작업에 오류가 발생하면 중지됩니다. The tasks that are still running
are stopped too. On Unix they receive SIGTERM, and those still running two
seconds later receive SIGKILL. On Windows they are ended at once, together
with every process they started.
--no-bail is accepted only by run, exec, test, start, stop, rebuild, install-test, and the pnpm <script> shorthand. Other commands reject it.
With --no-bail, tasks that depend on a failed task are skipped and independent tasks keep running.
This config does not affect the exit code: if any task fails, the command exits with a non-zero code.
See --no-bail.
예제 (모든 패키지에서 테스트 실행, 테스트가 이 중 하나에서 실패하는 경우 계속됨):
pnpm -r --no-bail test
--[no-]sort#
- 기본값: true
- 유형: Boolean
When true, commands follow the workspace dependency graph. Recursive run
also applies relationships from the tasks setting. Pass --no-sort to
remove graph ordering. This also makes tasks, --reverse, and --resume-from
inapplicable.
예시:
pnpm -r --no-sort test
--reverse#
- 기본값: false
- 유형: boolean
When true, dependency edges are reversed. For recursive run, this reverses
the resolved task graph, including relationships declared with dependsOn.
pnpm -r --reverse run clean
--parallel#
See pnpm run --parallel.
--resume-from <package_name>#
--stream#
See pnpm run --stream.
--aggregate-output#
See pnpm run --aggregate-output.
--report-summary#
See pnpm run --report-summary.
-w, --workspace-root#
See --workspace-root.
--filter <package_selector>#
--filter-prod <package_selector>#
See --filter-prod.