diff --git a/src/lib/versionInfo.ts b/src/lib/versionInfo.ts index 5434255..afc91d8 100644 --- a/src/lib/versionInfo.ts +++ b/src/lib/versionInfo.ts @@ -5,5 +5,7 @@ export interface VersionInfo { commitHash: string | null; commitDate: string | null; commitSubject: string | null; + lastUpdated: string | null; + commitMessage: string | null; buildTime: string | null; } \ No newline at end of file diff --git a/src/scripts/generateVersionInfo.ts b/src/scripts/generateVersionInfo.ts index 9a271b7..7472e5e 100644 --- a/src/scripts/generateVersionInfo.ts +++ b/src/scripts/generateVersionInfo.ts @@ -72,6 +72,8 @@ function main(): void { commitHash, commitDate, commitSubject, + lastUpdated: commitDate ?? buildTime, + commitMessage: commitSubject, buildTime, }; @@ -89,4 +91,4 @@ function main(): void { console.log(`[version-info] wrote src/generated/versionInfo.json (${label})`); } -main(); \ No newline at end of file +main();