mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-11 09:56:29 +00:00
* refactor(scripts): migrate JavaScript tools to TypeScript * fix(ci): keep changed-scope preflight zero-install * fix(ci): preserve zero-install script owners * fix(ci): complete script migration follow-through * fix(release): keep stable closeout zero-install * fix(scripts): preserve standalone execution boundaries * fix(scripts): repair standalone loader boundaries * fix(scripts): normalize gateway observation ids * fix(scripts): keep Docker packager standalone * test(scripts): preserve rebase cleanup helpers * test(sessions): use tracked temp directory
17 lines
511 B
TypeScript
17 lines
511 B
TypeScript
#!/usr/bin/env node
|
|
|
|
// Writes the local build stamp and re-exports build metadata helpers.
|
|
import process from "node:process";
|
|
import { pathToFileURL } from "node:url";
|
|
import { writeBuildStamp } from "./lib/local-build-metadata.mts";
|
|
|
|
export { BUILD_STAMP_FILE, resolveGitHead, writeBuildStamp } from "./lib/local-build-metadata.mts";
|
|
|
|
if (import.meta.url === pathToFileURL(process.argv[1] ?? "").href) {
|
|
try {
|
|
writeBuildStamp();
|
|
} catch (error) {
|
|
console.error(error);
|
|
process.exit(1);
|
|
}
|
|
}
|