Add automatic build version generation from git

Implement a script to automatically generate build version information from git commit hash and date, updating version.json and creating latest.json.
This commit is contained in:
Riyadh
2026-05-17 15:16:02 +00:00
parent 8a5bd5db51
commit cb894f7baa
5 changed files with 61 additions and 1 deletions
+2
View File
@@ -4,6 +4,8 @@
"license": "MIT",
"scripts": {
"preinstall": "sh -c 'rm -f package-lock.json yarn.lock; case \"$npm_config_user_agent\" in pnpm/*) ;; *) echo \"Use pnpm instead\" >&2; exit 1 ;; esac'",
"update-version": "node scripts/update-version.mjs",
"prebuild": "pnpm run update-version",
"build": "pnpm run typecheck && pnpm -r --if-present run build",
"typecheck:libs": "tsc --build",
"typecheck": "pnpm run typecheck:libs && pnpm -r --filter \"./artifacts/**\" --filter \"./scripts\" --if-present run typecheck",