refactor: .bun-version instead .bunrc

This commit is contained in:
Jozef Steinhübl 2024-05-22 18:13:06 +02:00
parent 2953918876
commit b43e4d10ce
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F

View file

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