Skip to content

fix(diff-filter): add Bun lockfiles (bun.lock, bun.lockb) to LOCKFILE_NAMES (#144)#145

Open
aagear wants to merge 2 commits into
Ghbounty:mainfrom
aagear:fix/diff-filter-bun-lockfiles
Open

fix(diff-filter): add Bun lockfiles (bun.lock, bun.lockb) to LOCKFILE_NAMES (#144)#145
aagear wants to merge 2 commits into
Ghbounty:mainfrom
aagear:fix/diff-filter-bun-lockfiles

Conversation

@aagear

@aagear aagear commented Jul 16, 2026

Copy link
Copy Markdown

Summary

Adds "bun.lock" and "bun.lockb" to LOCKFILE_NAMES in packages/diff-filter/src/patterns.ts.

Buns lockfiles are auto-generated and can add thousands of lines of diff noise. They should be filtered alongside pnpm-lock.yaml, package-lock.json, yarn.lock, etc.

  • bun.lock — Bun v1.1+ text-based lockfile
  • bun.lockb — Bun v1.0.x binary lockfile

Fixes #144

Changes

  • packages/diff-filter/src/patterns.ts: added "bun.lock" and "bun.lockb" to LOCKFILE_NAMES
  • packages/diff-filter/tests/classify.test.ts: added both filenames to the lockfile test.each cases

Test plan

  • bun.lock and bun.lockb are in LOCKFILE_NAMES
  • Test cases added to classify.test.tsclassifyPath("bun.lock") returns { ignore: true, reason: "lockfile" }
  • CI passes (same shape as existing lockfile entries, no new deps)

@aagear
aagear requested a review from tomazzi14 as a code owner July 16, 2026 10:21
@vercel

vercel Bot commented Jul 16, 2026

Copy link
Copy Markdown

@aagear is attempting to deploy a commit to the weareghbounty-6269's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

diff-filter: add Bun lockfiles (bun.lock, bun.lockb) to LOCKFILE_NAMES

1 participant