Skip to content

Commit

Permalink
feat: detect bun lockfiles (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 26, 2022
1 parent 7dae2f1 commit 7619c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Expand Up @@ -49,7 +49,7 @@ export async function resolveTSConfig (id: string = process.cwd(), opts: Resolve
return findNearestFile('tsconfig.json', { startingFrom: resolvedPath, ...opts })
}

const lockFiles = ['yarn.lock', 'package-lock.json', 'pnpm-lock.yaml', 'npm-shrinkwrap.json']
const lockFiles = ['yarn.lock', 'package-lock.json', 'pnpm-lock.yaml', 'npm-shrinkwrap.json', 'bun.lockb']

export async function resolveLockfile (id: string = process.cwd(), opts: ResolveOptions = {}): Promise<string> {
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, opts)
Expand Down

0 comments on commit 7619c79

Please sign in to comment.