// Copies the generated parameter gallery (without the raw signal cache) into the built site. import { cpSync, existsSync, mkdirSync } from "node:fs"; const src = "docs/gallery"; const dst = "dist/docs/gallery"; if (existsSync(src)) { mkdirSync(dst, { recursive: true }); cpSync(src, dst, { recursive: true, filter: (p) => !p.includes("/raw") }); console.log(`copied ${src} -> ${dst}`); }