(files: Record<string, string>)
| 26 | const lines = (...l: string[]): string => [...l, ''].join('\n'); |
| 27 | |
| 28 | function project(files: Record<string, string>): string { |
| 29 | const root = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-cpp-template-')); |
| 30 | roots.push(root); |
| 31 | write(root, files); |
| 32 | return root; |
| 33 | } |
| 34 | |
| 35 | function write(root: string, files: Record<string, string>): void { |
| 36 | for (const [rel, content] of Object.entries(files)) { |