From b0f2306c5046cb17d3ad462f8445b39bc6253c05 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 5 Jul 2023 16:43:23 +0200 Subject: [PATCH] Fix types --- packages/backend-core/src/environment.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend-core/src/environment.ts b/packages/backend-core/src/environment.ts index 0563556160..971c5941ff 100644 --- a/packages/backend-core/src/environment.ts +++ b/packages/backend-core/src/environment.ts @@ -48,8 +48,8 @@ function httpLogging() { } function getPackageJsonFields(): { - VERSION: string | undefined - SERVICE_NAME: string | undefined + VERSION: string + SERVICE_NAME: string } { function findFileInAncestors( fileName: string, @@ -79,7 +79,7 @@ function getPackageJsonFields(): { } } catch { // throwing an error here is confusing/causes backend-core to be hard to import - return { VERSION: undefined, SERVICE_NAME: undefined } + return { VERSION: "", SERVICE_NAME: "" } } }