Files
pnpm/cli/parse-cli-args
Zoltan Kochan 80306c4043 fix: honor --prefix when resolving workspace dir (#11550)
The `--prefix` option (renamed to `dir`) was applied to options after
`getWorkspaceDir` had already run, so workspace detection fell back to
`process.cwd()` and missed the manifest at the prefix dir. As a result,
running pnpm from outside the project (e.g. `pnpm --prefix=child install`
from the parent dir) silently skipped settings declared in
`child/pnpm-workspace.yaml`.

Backport of #11549 to release/10. Closes #11535.
2026-05-12 10:15:59 +02:00
..
2026-03-24 17:15:56 +01:00
2026-03-24 17:15:56 +01:00

@pnpm/parse-cli-args

Parses the CLI args passed to pnpm

npm version

Installation

pnpm add @pnpm/parse-cli-args

License

MIT