(files: Record<string, string>)
| 38 | }); |
| 39 | |
| 40 | function write(files: Record<string, string>): void { |
| 41 | for (const [file, content] of Object.entries(files)) { |
| 42 | const full = path.join(dir, file); |
| 43 | fs.mkdirSync(path.dirname(full), { recursive: true }); |
| 44 | fs.writeFileSync(full, content); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | async function indexed(files: Record<string, string>): Promise<CodeGraph> { |
| 49 | write(files); |
no test coverage detected