(root: string, files: Files)
| 38 | } |
| 39 | |
| 40 | function write(root: string, files: Files): void { |
| 41 | for (const [file, text] of Object.entries(files)) { |
| 42 | fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true }); |
| 43 | fs.writeFileSync(path.join(root, file), text); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | async function index(root: string): Promise<CodeGraph> { |
| 48 | const graph = await CodeGraph.init(root, { index: true }); |
no test coverage detected