(root: string, files: Record<string, string>)
| 33 | } |
| 34 | |
| 35 | function write(root: string, files: Record<string, string>): void { |
| 36 | for (const [rel, content] of Object.entries(files)) { |
| 37 | fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true }); |
| 38 | fs.writeFileSync(path.join(root, rel), content); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | async function opened(root: string): Promise<CodeGraph> { |
| 43 | const cg = await CodeGraph.init(root, { index: true }); |
no test coverage detected