// showcase's run-once step — a `process` with run-once, run to completion at install. // // **What follows it is gated on it finishing.** A migration that did not happen must not be // followed by the thing that needed it, which is why a step is a mode rather than a daemon that // exits. import { mkdirSync, writeFileSync } from "node:fs"; const where = process.env.SHOWCASE_STATE ?? "/var/lib/showcase"; mkdirSync(where, { recursive: true }); writeFileSync(`${where}/installed`, `${new Date().toISOString()}\n`); console.log(`[showcase] step complete, wrote ${where}/installed`);