diff --git a/website/scripts/list-blueprint-schemas.mjs b/website/scripts/list-blueprint-schemas.mjs index 04b3fff7e7..ae5e49ee49 100644 --- a/website/scripts/list-blueprint-schemas.mjs +++ b/website/scripts/list-blueprint-schemas.mjs @@ -1,6 +1,6 @@ import { execSync } from "child_process"; import { fileURLToPath } from "url"; -import { readFileSync } from "fs"; +import { readFileSync, writeFileSync } from "fs"; import path from "path"; const __dirname = fileURLToPath(new URL(".", import.meta.url)); @@ -61,7 +61,8 @@ const structurefile = readFileSync(structureFilePath, "utf-8"); const schemablock = /.*?<\/Collapse>/m; -console.log( +writeFileSync( + structureFilePath, structurefile.replace( schemablock, `