feat: support .bunrc
This commit is contained in:
parent
f56f779f9c
commit
90f3195457
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user