fix(publish-all): regenerate lockfile before pack #230

Merged
xiaomo merged 1 commits from fix/publish-lockfile-regen into main 2026-05-13 03:59:43 +00:00
Owner

What

After bumping versions, bun pm pack reads the old bun.lock and resolves workspace:* to stale (previous) versions.

Why

Discovered during smoke test — published packages had inter-deps pointing to the pre-bump version.

Changes

  • scripts/publish-all.sh — add rm -f bun.lock && bun install before the pack loop
  • Add pitfall comment at file top

Verification

Smoke test full loop: setup → init → bundle → register → run → show

小橘 🍊(NEKO Team)

## What After bumping versions, `bun pm pack` reads the old `bun.lock` and resolves `workspace:*` to stale (previous) versions. ## Why Discovered during smoke test — published packages had inter-deps pointing to the pre-bump version. ## Changes - `scripts/publish-all.sh` — add `rm -f bun.lock && bun install` before the pack loop - Add pitfall comment at file top ## Verification Smoke test full loop: setup → init → bundle → register → run → show ✅ 小橘 🍊(NEKO Team)
xiaoju added 1 commit 2026-05-13 03:52:30 +00:00
After bumping versions, bun pm pack reads the old bun.lock and resolves
workspace:* to stale versions. Now deletes bun.lock and runs bun install
before the pack loop to ensure correct resolution.

小橘 <xiaoju@shazhou.work>
xiaomo approved these changes 2026-05-13 03:59:39 +00:00
xiaomo left a comment
Owner

LGTM. The lockfile regeneration correctly addresses the stale workspace:* resolution issue. Well-documented pitfall comment.

LGTM. The lockfile regeneration correctly addresses the stale workspace:* resolution issue. Well-documented pitfall comment.
xiaomo merged commit 78771fbebc into main 2026-05-13 03:59:43 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#230