Skip to content

Commit

Permalink
Add Bun lockfile to project root resolving heuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Mar 10, 2024
1 parent fff9ddc commit 77a0174
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/next/src/lib/find-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import { dirname } from 'path'
import findUp from 'next/dist/compiled/find-up'

export function findRootLockFile(cwd: string) {
return findUp.sync(['pnpm-lock.yaml', 'package-lock.json', 'yarn.lock'], {
cwd,
})
return findUp.sync(
['pnpm-lock.yaml', 'package-lock.json', 'yarn.lock', 'bun.lockb'],
{
cwd,
}
)
}

export function findRootDir(cwd: string) {
Expand Down

0 comments on commit 77a0174

Please sign in to comment.