mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 04:28:28 +02:00
feat: support .bunrc
This commit is contained in:
parent
f56f779f9c
commit
90f3195457
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,8 @@ const FILE_VERSION_READERS = {
|
|||
JSON.parse(content).packageManager?.split("bun@")?.[1],
|
||||
".tool-versions": (content: string) =>
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue