Files
pnpm/releasing/commands/test/version
Zoltan Kochan 9496b2c61b fix: remove --workspace flag from version command (#11115)
* fix: remove --workspace flag from version command, use only --recursive

The --workspace/--workspaces flags were incorrectly added as synonyms for
--recursive in the version command. In pnpm, --recursive (-r) is the
standard convention for applying commands across workspace packages.
Recursive versioning now only activates with the explicit -r flag.

* test: improve version command test coverage

Add tests for major/patch bumps, --json output, --allow-same-version,
invalid version handling, missing name/version, empty params, and
recursive mode with workspace packages including JSON output, skipping
unnamed packages, and verifying --recursive is required.

* test: use expect().rejects instead of try/catch in version tests

Avoids silent passes when the handler doesn't throw.
2026-03-27 19:02:24 +01:00
..