// Builds the static site into dist/: the page, its stylesheet and the game's modules, as they are. import { cpSync, mkdirSync, rmSync } from "node:fs"; rmSync("dist", { recursive: true, force: true }); mkdirSync("dist"); for (const file of ["index.html", "style.css"]) cpSync(file, `dist/${file}`); cpSync("src", "dist/src", { recursive: true }); console.log("built dist/");