mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
## Summary - Fixes `bun pm pack` not respecting changes to `package.json` made by prepack/prepare scripts - Tracks whether lifecycle scripts (prepublishOnly, prepack, prepare) ran - If scripts ran, invalidates the cached package.json and re-reads from disk before creating the tarball Closes #24314 ## Test plan - Added regression test `test/regression/issue/24314.test.ts` that verifies package.json modifications from prepack/prepare scripts are included in the tarball - All existing pack tests pass (69 tests) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
3.6 KiB
3.6 KiB