(root: string, files: Files)
| 97 | } |
| 98 | |
| 99 | function write(root: string, files: Files): void { |
| 100 | for (const [file, text] of Object.entries(files)) { |
| 101 | fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true }); |
| 102 | fs.writeFileSync(path.join(root, file), text); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | async function index(root: string): Promise<CodeGraph> { |
| 107 | const graph = await CodeGraph.init(root, { index: true }); |
no test coverage detected