()
| 29 | }); |
| 30 | |
| 31 | function tempRoot(): string { |
| 32 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-memo-lifetime-')); |
| 33 | roots.push(root); |
| 34 | return root; |
| 35 | } |
| 36 | |
| 37 | function write(root: string, files: Files): void { |
| 38 | for (const [file, text] of Object.entries(files)) { |