#!/usr/bin/env node const fs = require('fs'); const path = require('path'); const pkgPath = path.join(__dirname, '..', 'package.json'); const versionPath = path.join(__dirname, '..', 'src', 'lib', 'version.ts'); const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8')); const version = pkg.version; const content = `export const APP_VERSION = '${version}';\n\nexport const WHATS_NEW_BRIEF: string[] = [\n 'Redesign: unified dark theme and gradients',\n 'Icons: lucide-react across headings and nav',\n 'Cleanup: removed legacy email routes and pages',\n 'UX: Pray For suggestions in compose tab'\n];\n`; fs.writeFileSync(versionPath, content, 'utf8'); console.log('Synced version to src/lib/version.ts:', version);