Skip to content

Commit

Permalink
feat: Support for Bun's new text-based lockfile (#1031)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian-Lars <[email protected]>
  • Loading branch information
Muska-Ami and FabianLars authored Feb 24, 2025
1 parent a1ba30b commit 563aed7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changes/bun-text-based-lockfile-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
action: patch
---

Add support for Bun's text-based lockfile.
20 changes: 10 additions & 10 deletions dist/index.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ export function usesPnpm(root: string): boolean {
}

export function usesBun(root: string): boolean {
return existsSync(join(root, 'bun.lockb'));
return (
existsSync(join(root, 'bun.lockb')) || existsSync(join(root, 'bun.lock'))
);
}

export async function execCommand(
Expand Down

0 comments on commit 563aed7

Please sign in to comment.