fix: just continue if file doesnt exist

This commit is contained in:
Jozef Steinhübl 2024-05-07 20:24:20 +02:00
parent 3ab03f774e
commit 7d417e1d34
No known key found for this signature in database
GPG key ID: E6BC90C91973B08F

View file

@ -47,7 +47,10 @@ export function readVersionFromFile(
const path = join(cwd, 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);