From 7619c793af5e965616ba97639917accb839eeefc Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 26 Oct 2022 16:12:52 +0200 Subject: [PATCH] feat: detect bun lockfiles (#57) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5366eff..0a95e5c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 { const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, opts)