import { readFileSync, existsSync } from "node:fs"; import assert from "node:assert/strict"; for (const path of [ "index.html", "styles.css", "app.js", "personal.js", "workspace.mjs", "case-study.mjs", "favicon.svg", "og.png", ]) { assert.ok(existsSync(new URL("../build/" + path, import.meta.url)), "Missing " + path); } const hosting = JSON.parse( readFileSync(new URL("../.openai/hosting.json", import.meta.url), "utf8"), ); assert.equal(hosting.static.directory, "build"); assert.ok( !readFileSync(new URL("../build/styles.css", import.meta.url), "utf8").includes("@import"), ); console.log("Self-contained static release validated.");