import * as os from "node:os"; import * as child_process from "node:child_process"; import {json} from "node:stream/consumers"; import * as fs from "node:fs"; export function createBuildFile() { const buildContext = { target: process.env.BUILD_TARGET ?? 'LOCAL', commitHash: child_process.execSync("git rev-parse HEAD").toString(), label: process.env.BUILD_LABEL ?? 'development', } fs.writeFileSync("./dist/deploy.json", JSON.stringify(buildContext)) }