chore(versioning): Versionsnummer automatisch in package.json, appVersion.js und package-lock.json synchronisiert

This commit is contained in:
ISA
2025-06-12 11:46:30 +02:00
parent a9a44f275f
commit 5b8bf5cf07
4 changed files with 12 additions and 5 deletions

View File

@@ -1,2 +1,2 @@
// /config/appVersion // /config/appVersion
export const APP_VERSION = "1.1.259"; export const APP_VERSION = "1.1.260";

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "nodemap", "name": "nodemap",
"version": "1.1.256", "version": "1.1.259",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "nodemap", "name": "nodemap",
"version": "1.1.256", "version": "1.1.259",
"dependencies": { "dependencies": {
"@emotion/react": "^11.13.3", "@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0", "@emotion/styled": "^11.13.0",

View File

@@ -1,6 +1,6 @@
{ {
"name": "nodemap", "name": "nodemap",
"version": "1.1.256", "version": "1.1.259",
"dependencies": { "dependencies": {
"@emotion/react": "^11.13.3", "@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0", "@emotion/styled": "^11.13.0",
@@ -59,4 +59,4 @@
"node-mocks-http": "^1.16.2", "node-mocks-http": "^1.16.2",
"raw-loader": "^4.0.2" "raw-loader": "^4.0.2"
} }
} }

View File

@@ -37,3 +37,10 @@ fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2), "utf8");
if (process.env.NEXT_PUBLIC_DEBUG_LOG === "true") { if (process.env.NEXT_PUBLIC_DEBUG_LOG === "true") {
console.log(`✅ Version erhöht auf: ${newVersion}`); console.log(`✅ Version erhöht auf: ${newVersion}`);
} }
const { execSync } = require("child_process");
try {
execSync("npm install --package-lock-only", { stdio: "inherit" });
} catch (error) {
console.error("❌ Fehler beim Aktualisieren der package-lock.json:", error);
}