From 7d417e1d343567f34a5e191db1a4f68981caf9ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Tue, 7 May 2024 20:24:20 +0200 Subject: [PATCH] fix: just continue if file doesnt exist --- src/utils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index b5e21db..ab24c10 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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);