(dir: string, files: Files)
| 31 | }); |
| 32 | |
| 33 | function write(dir: string, files: Files): void { |
| 34 | for (const [rel, content] of Object.entries(files)) { |
| 35 | fs.mkdirSync(path.dirname(path.join(dir, rel)), { recursive: true }); |
| 36 | fs.writeFileSync(path.join(dir, rel), content); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | async function index(files: Files): Promise<CodeGraph> { |
| 41 | root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-php-web-root-')); |
no test coverage detected