@type {() => Promise }
()
| 73 | |
| 74 | /** @type {() => Promise<void>} */ |
| 75 | async function writeHash() { |
| 76 | const hash = await currentHash(); |
| 77 | |
| 78 | fs.writeFileSync(hashFile, hash); |
| 79 | } |
| 80 | |
| 81 | /** @type {(reason: "initial build" | "hash changed") => Promise<void>} */ |
| 82 | async function build(reason) { |