()
| 49 | }); |
| 50 | |
| 51 | function tempRoot(): string { |
| 52 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-sync-default-')); |
| 53 | roots.push(root); |
| 54 | return root; |
| 55 | } |
| 56 | |
| 57 | function write(root: string, files: Files): void { |
| 58 | for (const [file, text] of Object.entries(files)) { |