diff --git a/packages/build-info/src/runtime/bun.test.ts b/packages/build-info/src/runtime/bun.test.ts index 65e7d4e789..07f4e102a8 100644 --- a/packages/build-info/src/runtime/bun.test.ts +++ b/packages/build-info/src/runtime/bun.test.ts @@ -17,6 +17,15 @@ test('detects node when bunfig.toml is present', async ({ fs }) => { expect(detected[0].name).toBe('Bun') }) +test('detects node when bun.lock is present', async ({ fs }) => { + const cwd = mockFileSystem({ + 'bun.lock': '', + }) + + const detected = await new Project(fs, cwd).detectRuntime() + expect(detected[0].name).toBe('Bun') +}) + test('detects node when bun.lockb is present', async ({ fs }) => { const cwd = mockFileSystem({ 'bun.lockb': '', diff --git a/packages/build-info/src/runtime/bun.ts b/packages/build-info/src/runtime/bun.ts index 8b11e6f667..3112d4c7a3 100644 --- a/packages/build-info/src/runtime/bun.ts +++ b/packages/build-info/src/runtime/bun.ts @@ -3,5 +3,5 @@ import { LangRuntime } from './runtime.js' export class Bun extends LangRuntime { id = 'bun' name = 'Bun' - configFiles = ['bun.lockb', 'bunfig.toml'] + configFiles = ['bun.lock', 'bun.lockb', 'bunfig.toml'] }