(cwd: string, ...args: string[])
| 13 | const BIN = path.resolve(__dirname, '../dist/bin/codegraph.js'); |
| 14 | |
| 15 | function run(cwd: string, ...args: string[]) { |
| 16 | const res = spawnSync(process.execPath, [BIN, 'cycles', cwd, ...args], { |
| 17 | encoding: 'utf-8', |
| 18 | env: { ...process.env, CODEGRAPH_NO_DAEMON: '1', CODEGRAPH_WASM_RELAUNCHED: '1' }, |
| 19 | }); |
| 20 | return { status: res.status, stdout: res.stdout, stderr: res.stderr }; |
| 21 | } |
| 22 | |
| 23 | async function indexProject(dir: string, files: Record<string, string>): Promise<void> { |
| 24 | for (const [rel, content] of Object.entries(files)) { |
no outgoing calls
no test coverage detected