// Execute only on the authorized ces-control runner. Source exports work without a local build. import { mkdir, writeFile, copyFile } from 'node:fs/promises'; import { themes, palette } from '../src/tokens.mjs'; const root = new URL('../', import.meta.url); await mkdir(new URL('dist/', root), { recursive: true }); for (const name of ['themes.css', 'tailwind.css']) await copyFile(new URL(`src/${name}`, root), new URL(`dist/${name}`, root)); await writeFile(new URL('dist/tokens.json', root), JSON.stringify({ palette, themes }, null, 2) + '\n'); console.log('Brand CSS and resolved JSON exported to dist/.');