fix(lockfile): honor bun workspace-scoped direct deps#489
Conversation
Greptile SummaryFixes Bun workspace direct-dependency resolution to prefer the workspace-name-scoped key ( Confidence Score: 5/5Safe to merge — logic is correct, well-tested, and the PR's own end-to-end validation confirms the target scenario works. No P0 or P1 findings. The No files require special attention. Important Files Changed
Reviews (5): Last reviewed commit: "refactor: share lexical path normalizati..." | Re-trigger Greptile |
Benchmark changesVersions:
Public ratios: warm installs vs Bun 7x -> 6x; warm installs vs pnpm 11x -> 10x.
42a2342 vs b3ec965 | aube/bun/pnpm | 3 scenarios | 3 runs | 500mbit/50ms | generated by Codex. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 76d3de3. Configure here.

Summary
<workspace package name>/<dep>before falling back to hoisted entriesz-app/tslibshape from https://github.com/johnpyp/aube-bun-lock-scoped-entry-reproValidation
aube install --disable-global-virtual-storelinkspackages/z-app/node_modules/tslibto../../../node_modules/.aube/tslib@2.4.0/node_modules/tslibNote
Medium Risk
Changes bun.lock parsing for workspace direct-dep resolution and rewrites certain workspace-scoped local paths, which can affect which package versions/paths are installed in monorepos.
Overview
Fixes bun workspace direct-dependency resolution to prefer workspace package name-scoped entries (e.g.
z-app/tslib) before falling back to workspace-path scoped (e.g.packages/z-app/tslib) and finally hoisted keys.Adds rebasing for bun workspace-scoped
file:/local entries that contain..so importer-relative paths are normalized back to project-root-relative form, and centralizes lexical path normalization inaube-util(reused by the resolver). New regression tests cover both the name-scoped workspace dep shape and the local tarball rebasing behavior.Reviewed by Cursor Bugbot for commit 42a2342. Bugbot is set up for automated code reviews on this repo. Configure here.