mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-11 02:29:48 -04:00
* 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.