feat: Support for Bun's new text-based lockfile (#1031)

Co-authored-by: Fabian-Lars <github@fabianlars.de>
This commit is contained in:
夏沫花火zzz
2025-02-24 20:56:35 +08:00
committed by GitHub
parent a1ba30b7c2
commit 563aed7bd1
3 changed files with 18 additions and 11 deletions

View File

@@ -0,0 +1,5 @@
---
action: patch
---
Add support for Bun's text-based lockfile.

20
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -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(