From 055fca94f17c2ba48e91e74006782dad47cfaf89 Mon Sep 17 00:00:00 2001 From: ISA Date: Tue, 4 Mar 2025 15:02:01 +0100 Subject: [PATCH] APP_VERSION = "1.1.2 --- scripts/bumpVersion.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/bumpVersion.js b/scripts/bumpVersion.js index 1d819da3f..4f6c99937 100644 --- a/scripts/bumpVersion.js +++ b/scripts/bumpVersion.js @@ -7,7 +7,7 @@ const versionFilePath = path.join(__dirname, "../config/appVersion.js"); // Datei einlesen let content = fs.readFileSync(versionFilePath, "utf8"); -// Version auslesen +// Version auslesen (wichtig: export const muss dabei sein wegen Next.js) const versionRegex = /export const APP_VERSION = "(\d+)\.(\d+)\.(\d+)"/; const match = content.match(versionRegex); @@ -16,9 +16,11 @@ if (!match) { process.exit(1); } -let [fullMatch, major, minor, patch] = match.map(Number); +let major = Number(match[1]); +let minor = Number(match[2]); +let patch = Number(match[3]); -// Dritte Stelle (Patch) erhöhen +// Patch erhöhen patch++; // Neue Version zusammenbauen