(run)
| 27 | } |
| 28 | |
| 29 | function withTempProject(run) { |
| 30 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-doc-sync-')); |
| 31 | try { |
| 32 | run(dir); |
| 33 | } finally { |
| 34 | fs.rmSync(dir, { recursive: true, force: true }); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | withTempProject((projectRoot) => { |
| 39 | const now = '2026-06-05T12:00:00.000Z'; |