9 lines
189 B
TypeScript
9 lines
189 B
TypeScript
|
import { version } from "@/package.json"
|
||
|
|
||
|
export const getVersion = (): string => {
|
||
|
if (process.env["NODE_ENV"] === "development") {
|
||
|
return "0.0.0-development"
|
||
|
}
|
||
|
return version
|
||
|
}
|