Merge pull request #236012 from The-Fiery-Fire/bun

`bun.lock` as package manager lockfile
pull/236685/head^2
Martin Aeschlimann 2024-12-20 11:05:57 +01:00 committed by GitHub
commit eb66332871
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -28,6 +28,10 @@ async function isBunPreferred(pkgPath: string): Promise<PreferredProperties> {
return { isPreferred: true, hasLockfile: true };
}
if (await pathExists(path.join(pkgPath, 'bun.lock'))) {
return { isPreferred: true, hasLockfile: true };
}
return { isPreferred: false, hasLockfile: false };
}

View File

@ -619,7 +619,7 @@ configurationRegistry.registerConfiguration({
'*.jsx': '${capture}.js',
'*.tsx': '${capture}.ts',
'tsconfig.json': 'tsconfig.*.json',
'package.json': 'package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb',
'package.json': 'package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb, bun.lock',
}
}
}