Make `dir` look indexed (isInitialized needs `.codegraph/codegraph.db`).
(dir: string)
| 16 | |
| 17 | /** Make `dir` look indexed (isInitialized needs `.codegraph/codegraph.db`). */ |
| 18 | function mkIndexed(dir: string): string { |
| 19 | fs.mkdirSync(path.join(dir, '.codegraph'), { recursive: true }); |
| 20 | fs.writeFileSync(path.join(dir, '.codegraph', 'codegraph.db'), ''); |
| 21 | return dir; |
| 22 | } |
| 23 | /** A workspace-root manifest so the down-scan gate (looksLikeProjectRoot) passes. */ |
| 24 | function mkWorkspaceRoot(dir: string): string { |
| 25 | fs.mkdirSync(dir, { recursive: true }); |
no test coverage detected