File size: 339 Bytes
63e0fa3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/usr/bin/env node
import process from "node:process";
import { pathToFileURL } from "node:url";
import { 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);
}
}
|