mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-22 17:50:13 +08:00
fix: allow more spaces for .tool-versions (#94)
* update: allow more spaces for .tool-versions * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
4bc047ad25
commit
1e54087d4f
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -97,6 +97,10 @@ jobs:
|
||||
file: .tool-versions
|
||||
run: |
|
||||
echo "bun1.1.0" > .tool-versions
|
||||
- name: .tool-versions (bun 1.1.0)
|
||||
file: .tool-versions
|
||||
run: |
|
||||
echo "bun 1.1.0" > .tool-versions
|
||||
- name: .bumrc (1.1.0)
|
||||
file: .bumrc
|
||||
run: |
|
||||
|
2
dist/setup/index.js
generated
vendored
2
dist/setup/index.js
generated
vendored
File diff suppressed because one or more lines are too long
@ -31,7 +31,7 @@ const FILE_VERSION_READERS = {
|
||||
"package.json": (content: string) =>
|
||||
JSON.parse(content).packageManager?.split("bun@")?.[1],
|
||||
".tool-versions": (content: string) =>
|
||||
content.match(/^bun\s?(?<version>.*?)$/m)?.groups?.version,
|
||||
content.match(/^bun\s*(?<version>.*?)$/m)?.groups?.version,
|
||||
".bumrc": (content: string) => content, // https://github.com/owenizedd/bum
|
||||
".bun-version": (content: string) => content,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user