Fix types
This commit is contained in:
parent
2411b59709
commit
b0f2306c50
|
@ -48,8 +48,8 @@ function httpLogging() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPackageJsonFields(): {
|
function getPackageJsonFields(): {
|
||||||
VERSION: string | undefined
|
VERSION: string
|
||||||
SERVICE_NAME: string | undefined
|
SERVICE_NAME: string
|
||||||
} {
|
} {
|
||||||
function findFileInAncestors(
|
function findFileInAncestors(
|
||||||
fileName: string,
|
fileName: string,
|
||||||
|
@ -79,7 +79,7 @@ function getPackageJsonFields(): {
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
// throwing an error here is confusing/causes backend-core to be hard to import
|
// throwing an error here is confusing/causes backend-core to be hard to import
|
||||||
return { VERSION: undefined, SERVICE_NAME: undefined }
|
return { VERSION: "", SERVICE_NAME: "" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue