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:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nebula",
|
"name": "nebula",
|
||||||
"version": "0.4.0",
|
"version": "0.5.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Nebula – Dashboard fuer Vibe-Coding Projekte mit Git-Anbindung (GitHub, GitLab, Gitea)",
|
"description": "Nebula – Dashboard fuer Vibe-Coding Projekte mit Git-Anbindung (GitHub, GitLab, Gitea)",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
+6
-1
@@ -12,11 +12,16 @@ function trimmed(value: string | undefined): string | null {
|
|||||||
return result ? result : null;
|
return result ? result : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import packageJson from "../../package.json";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Version aus der package.json – eine einzige Quelle. Vorher stand sie
|
* Version aus der package.json – eine einzige Quelle. Vorher stand sie
|
||||||
* zusaetzlich in der Fusszeile und lief prompt auseinander.
|
* 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. */
|
/** Anzeigename der Instanz – Seitentitel, Kopfzeile, Passkey-Dialog. */
|
||||||
export const APP_NAME = trimmed(process.env.APP_NAME) ?? "Nebula";
|
export const APP_NAME = trimmed(process.env.APP_NAME) ?? "Nebula";
|
||||||
|
|||||||
Reference in New Issue
Block a user