Adds some more polish

This commit is contained in:
Michel Fedde 2025-06-26 21:38:03 +02:00
parent b3d0b3a90c
commit 11bd836ec3
18 changed files with 272 additions and 29 deletions

View file

@ -0,0 +1,12 @@
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";
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))