fix: Warnung beim Einlesen der Versionsnummer beseitigen
Der benannte Import aus der package.json loeste in Webpack die Warnung "Should not import the named export 'version'" aus. Jetzt als Standardimport. Version auf 0.5.0 gehoben. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+6
-1
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user