// scripts/lstDocCopy.mjs import fs from "fs"; import path from "path"; const src = path.resolve("lstDocs/build"); const dest = path.resolve("dist/docs"); // Delete old docs if they exist if (fs.existsSync(dest)) { fs.rmSync(dest, { recursive: true, force: true }); } // Copy everything (not just assets) fs.cpSync(src, dest, { recursive: true }); console.log(`📄 Copied docs from ${src} → ${dest}`);