Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/open-next/src/build/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ function findMonorepoRoot(appPath: string) {
let currentPath = appPath;
while (currentPath !== "/") {
const found = [
// bun can generate yaml lock files (`bun install --yarn`) so bun should be before yarn
{ file: "bun.lockb", packager: "bun" as const },
{ file: "bun.lock", packager: "bun" as const },
{ file: "package-lock.json", packager: "npm" as const },
{ file: "yarn.lock", packager: "yarn" as const },
{ file: "pnpm-lock.yaml", packager: "pnpm" as const },
{ file: "bun.lockb", packager: "bun" as const },
].find((f) => fs.existsSync(path.join(currentPath, f.file)));

if (found) {
Expand Down
Loading