Husky Installation

This commit is contained in:
ISA
2025-03-04 14:29:42 +01:00
parent 0c51b8db79
commit 8f832562f9
3 changed files with 12 additions and 4 deletions

View File

@@ -1,4 +1,12 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run lint
# Husky v9 braucht KEINEN _/husky.sh mehr!
# Falls du Linting willst:
# npm run lint
# Falls du einfach nur die Version bumpen willst:
npm run bump-version
# Version-Datei direkt ins Commit aufnehmen
git add ./config/appVersion.js

View File

@@ -1,2 +1,2 @@
// /config/appVersion
APP_VERSION = "1.1.3";
export const APP_VERSION = "1.1.103";

View File

@@ -25,7 +25,7 @@ patch++;
const newVersion = `${major}.${minor}.${patch}`;
// Dateiinhalt ersetzen
const newContent = content.replace(versionRegex, `APP_VERSION = "${newVersion}"`);
const newContent = content.replace(versionRegex, `export const APP_VERSION = "${newVersion}"`);
// Datei speichern
fs.writeFileSync(versionFilePath, newContent, "utf8");