import { readFile, writeFile } from 'node:fs/promises'; const root = new URL('../', import.meta.url); const [content, css, js] = await Promise.all(['content.html', 'landing.css', 'interactions.js'].map(file => readFile(new URL(`src/landing/${file}`, root), 'utf8'))); const html = ` SIRO — ابنِ ما يحرّك العالم${content}`; for (const file of ['public/landing.html', 'landing.html']) await writeFile(new URL(file, root), html); console.log('Generated both standalone landing pages from the shared source.');