본문으로 건너뛰기
버전: 6.x

pnpm -r, --recursive

패키지의 모든 하위 디렉터리 또는 모든 사용 가능한 워크스페이스마다 pnpm 명령을 재귀적으로 실행합니다. 현재는 다음 명령만 재귀적으로 사용할 수 있습니다: add, exec, install, list, outdated, publish, rebuild, remove, run, test, unlink, update, why

별칭: m, multi, recursive, <명령어> -r

Usage example:

pnpm -r publish

옵션

  • 기본값: true
  • 유형: 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 npmrc for this setting, to enforce the same behaviour in all environments. This option exists solely so you may override that if necessary.

--workspace-concurrency

Added in: v2.13.0

  • 기본값: 4
  • 유형: Number

Set the maximum number of tasks to run simultaneously. For unlimited concurrency use Infinity.

v6.10.0부터 workspace-concurrency<= 0 로 설정할 수 있으며 호스트의 코어 수를 다음과 같이 사용합니다. max(1, (코어 수) - abs(workspace-concurrency))

--[no-]bail

Added in: v2.13.0

  • 기본값: true
  • 유형: Boolean

If true, stops when a task throws an error.

This config does not affect the exit code. Even if --no-bail is used, all tasks will finish but if any of the tasks fail, the command will exit with a non-zero code.

Example (run tests in every package, continue if tests fail in one of them):

pnpm -r --no-bail test

--[no-]sort

Added in: v2.14.0

  • 기본값: true
  • 유형: Boolean

When true, packages are sorted topologically (dependencies before dependents). Pass --no-sort to disable.

예시:

pnpm -r --no-sort test

--reverse

Added in: v5.17.1

  • 기본값: false
  • 유형: boolean

When true, the order of packages is reversed.

pnpm -r --reverse run clean

--filter <package_selector>

필터링에 대해 자세히 알아보세요.