fix: just continue if file doesnt exist
This commit is contained in:
parent
3ab03f774e
commit
7d417e1d34
@ -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…
x
Reference in New Issue
Block a user