(root: string, files: Files)
| 110 | } |
| 111 | |
| 112 | function write(root: string, files: Files): void { |
| 113 | for (const [file, text] of Object.entries(files)) { |
| 114 | fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true }); |
| 115 | fs.writeFileSync(path.join(root, file), text); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | async function index(root: string): Promise<CodeGraph> { |
| 120 | const graph = await CodeGraph.init(root, { index: true }); |
no test coverage detected