import * as fs from 'node:fs'; import * as path from 'node:path'; import { fileURLToPath } from 'node:url'; /** Package version (src/ and dist/ both sit one level below package.json) */ export const VERSION: string = JSON.parse( fs.readFileSync(path.join(path.dirname(fileURLToPath(import.meta.url)), '..', 'package.json'), 'utf-8'), ).version;