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

Co-authored-by: Fabian-Lars <[email protected]>
This commit is contained in:
夏沫花火zzz
2025-02-24 13:56:35 +01:00
committed by GitHub
co-authored by Fabian-Lars
parent a1ba30b7c2
commit 563aed7bd1
3 changed files with 18 additions and 11 deletions
@@ -0,0 +1,5 @@
---
action: patch
---
Add support for Bun's text-based lockfile.
+10 -10
View File
File diff suppressed because one or more lines are too long
+3 -1
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(