Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
b725690c7This file is pinned to the selected release. Download the original to open it in your design tool.
import fs from "node:fs";
import path from "node:path";
const buildTimeIso = new Date().toISOString();
const buildId = Date.now().toString();
const target = path.resolve(process.cwd(), "src", "buildInfo.ts");
const content = `export const BUILD_TIME_ISO = "${buildTimeIso}";\nexport const BUILD_ID = "${buildId}";\n`;
fs.writeFileSync(target, content, "utf8");
console.log(`Wrote build info: ${buildTimeIso} (${buildId})`);