(args: string[], cwd: string)
| 31 | } |
| 32 | |
| 33 | function runCodegraph(args: string[], cwd: string): string { |
| 34 | return execFileSync(process.execPath, [BIN, ...args], { |
| 35 | cwd, |
| 36 | encoding: 'utf-8', |
| 37 | env: { ...process.env, CODEGRAPH_NO_DAEMON: '1' }, |
| 38 | stdio: ['ignore', 'pipe', 'pipe'], |
| 39 | }); |
| 40 | } |
| 41 | |
| 42 | function graphCounts(dir: string): { nodes: number; edges: number } { |
| 43 | const cg = CodeGraph.openSync(dir); |