feat: support .bunrc

This commit is contained in:
Jozef Steinhübl 2024-05-20 16:26:00 +02:00
parent f56f779f9c
commit 90f3195457
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F

View file

@ -32,7 +32,8 @@ const FILE_VERSION_READERS = {
JSON.parse(content).packageManager?.split("bun@")?.[1], JSON.parse(content).packageManager?.split("bun@")?.[1],
".tool-versions": (content: string) => ".tool-versions": (content: string) =>
content.match(/^bun\s?(?<version>.*?)$/m)?.groups?.version, content.match(/^bun\s?(?<version>.*?)$/m)?.groups?.version,
".bumrc": (content: string) => content, ".bumrc": (content: string) => content, // https://github.com/owenizedd/bum
".bunrc": (content: string) => content,
}; };
export function readVersionFromFile(file: string): string | undefined { export function readVersionFromFile(file: string): string | undefined {