Spaces:
Running
Running
File size: 662 Bytes
5156ab2 4965925 5156ab2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 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.");
|