mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-04 20:41:30 +01:00
9 lines
252 B
TypeScript
9 lines
252 B
TypeScript
|
export const getVersion = async (): Promise<string> => {
|
||
|
if (process.env.NODE_ENV === "development") {
|
||
|
return "0.0.0-development"
|
||
|
}
|
||
|
const { readPackage } = await import("read-pkg")
|
||
|
const { version } = await readPackage()
|
||
|
return version
|
||
|
}
|