Skip to content

Commit 71d737c

Browse files
cuquovicb
andauthored
feat: support new bun lock file (#710)
* feat: support new bun lock file * revision changes * Update packages/open-next/src/build/helper.ts Co-authored-by: Victor Berchet <[email protected]> --------- Co-authored-by: Victor Berchet <[email protected]>
1 parent 621f414 commit 71d737c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/open-next/src/build/helper.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ function findMonorepoRoot(appPath: string) {
6969
let currentPath = appPath;
7070
while (currentPath !== "/") {
7171
const found = [
72+
// bun can generate yaml lock files (`bun install --yarn`) so bun should be before yarn
73+
{ file: "bun.lockb", packager: "bun" as const },
74+
{ file: "bun.lock", packager: "bun" as const },
7275
{ file: "package-lock.json", packager: "npm" as const },
7376
{ file: "yarn.lock", packager: "yarn" as const },
7477
{ file: "pnpm-lock.yaml", packager: "pnpm" as const },
75-
{ file: "bun.lockb", packager: "bun" as const },
7678
].find((f) => fs.existsSync(path.join(currentPath, f.file)));
7779

7880
if (found) {

0 commit comments

Comments
 (0)