Skip to content

fix: support both bun.lock and bun.lockb for Bun detection#57

Closed
kuishou68 wants to merge 1 commit intomattpocock:mainfrom
kuishou68:fix/bun-lockfile-detection
Closed

fix: support both bun.lock and bun.lockb for Bun detection#57
kuishou68 wants to merge 1 commit intomattpocock:mainfrom
kuishou68:fix/bun-lockfile-detection

Conversation

@kuishou68
Copy link
Copy Markdown

Problem

The setup-pre-commit skill currently only checks for bun.lockb to detect Bun as the package manager. However, since Bun v1.1.35, the default lockfile format changed from the binary bun.lockb to the text-based bun.lock.

As a result, the skill will fail to identify Bun in modern projects that only have a bun.lock file.

Fix

Update the package manager detection line to check for both bun.lock (new, text format) and bun.lockb (old, binary format), so the skill works correctly regardless of which Bun version the project uses.

Changes

  • setup-pre-commit/SKILL.md: Updated package manager detection to list both bun.lock and bun.lockb as valid Bun lockfile names

Closes #14

Signed-off-by: cocoon 54054995+kuishou68@users.noreply.github.com

…ttpocock#14)

Bun v1.1.35+ uses bun.lock (text format) as the default lockfile,
while older versions used bun.lockb (binary format). The skill should
check for both to correctly detect Bun as the package manager in
modern projects.

Signed-off-by: cocoon <54054995+kuishou68@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants