- Replace hardcoded version in 00_commitinfo_data.ts - Now dynamically imports deno.json and reads version - Version will auto-update when deno.json is changed - Fixes version showing 3.1.2 instead of 4.0.0 test: add Docker test scripts for v3→v4 migration - 01-setup-v3-container.sh: Creates systemd container with v3 - 02-test-v3-to-v4-migration.sh: Tests migration (now fixed) - 03-cleanup.sh: Removes test container - README.md: Complete documentation Tested: Version now correctly shows 4.0.0
11 lines
282 B
TypeScript
11 lines
282 B
TypeScript
/**
|
|
* commitinfo - reads version from deno.json
|
|
*/
|
|
import denoConfig from '../deno.json' with { type: 'json' };
|
|
|
|
export const commitinfo = {
|
|
name: denoConfig.name,
|
|
version: denoConfig.version,
|
|
description: 'Deno-powered UPS monitoring tool for SNMP-enabled UPS devices',
|
|
};
|