mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
Fixes #20477 When packing a workspace package that depends on another workspace package, `bun pm pack` now reads the version from the workspace dependency's package.json instead of using the cached version in bun.lock. This ensures that if a workspace package version is updated without running `bun install`, the pack command will use the current version from package.json. Changes: - Modified editRootPackageJSON to read workspace package.json files directly - Added detailed error messages for read/parse errors and missing version fields - Added test to verify correct behavior when workspace versions are updated 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>