(root: string, files: Files)
| 168 | } |
| 169 | |
| 170 | function write(root: string, files: Files): void { |
| 171 | for (const [file, text] of Object.entries(files)) { |
| 172 | fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true }); |
| 173 | fs.writeFileSync(path.join(root, file), text); |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | async function index(root: string): Promise<CodeGraph> { |
| 178 | const graph = await CodeGraph.init(root, { index: true }); |
no test coverage detected