This repository has been archived on 2024-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
p61-project/utils/version.ts

9 lines
189 B
TypeScript
Raw Permalink Normal View History

2024-05-20 15:05:34 +02:00
import { version } from "@/package.json"
export const getVersion = (): string => {
if (process.env["NODE_ENV"] === "development") {
return "0.0.0-development"
}
return version
}