mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-18 12:38:24 +02:00
fix: just continue if file doesnt exist
This commit is contained in:
parent
3ab03f774e
commit
7d417e1d34
1 changed files with 4 additions and 1 deletions
|
@ -47,7 +47,10 @@ export function readVersionFromFile(
|
||||||
const path = join(cwd, file);
|
const path = join(cwd, file);
|
||||||
const base = basename(file);
|
const base = basename(file);
|
||||||
|
|
||||||
if (!existsSync(path)) return;
|
if (!existsSync(path)) {
|
||||||
|
warning(`File ${path} not found`);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
const reader = FILE_VERSION_READERS[base] ?? (() => undefined);
|
const reader = FILE_VERSION_READERS[base] ?? (() => undefined);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue