// Single source of truth for the running version: package.json, read once at start. import { readFileSync } from 'node:fs'; import { fileURLToPath } from 'node:url'; import { dirname, join } from 'node:path'; const here = dirname(fileURLToPath(import.meta.url)); export const VERSION = JSON.parse(readFileSync(join(here, '..', 'package.json'), 'utf8')).version;