diff --git a/package.json b/package.json index e199d40..88ae46d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nebula", - "version": "0.4.0", + "version": "0.5.0", "private": true, "description": "Nebula – Dashboard fuer Vibe-Coding Projekte mit Git-Anbindung (GitHub, GitLab, Gitea)", "scripts": { diff --git a/src/lib/config.ts b/src/lib/config.ts index 2ba13a4..61cce2f 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -12,11 +12,16 @@ function trimmed(value: string | undefined): string | null { return result ? result : null; } +import packageJson from "../../package.json"; + /** * Version aus der package.json – eine einzige Quelle. Vorher stand sie * zusaetzlich in der Fusszeile und lief prompt auseinander. + * + * Bewusst als Standardimport: ein benannter Import aus einer JSON-Datei + * loest in Webpack eine Warnung aus. */ -export { version as APP_VERSION } from "../../package.json"; +export const APP_VERSION: string = packageJson.version; /** Anzeigename der Instanz – Seitentitel, Kopfzeile, Passkey-Dialog. */ export const APP_NAME = trimmed(process.env.APP_NAME) ?? "Nebula";