()
| 9 | const REPO_HASH_LEN = 12; |
| 10 | |
| 11 | export function getDbPath(): string { |
| 12 | const dir = ensureRepoDir(readRepoRoot()); |
| 13 | return path.join(dir, DB_FILE); |
| 14 | } |
| 15 | |
| 16 | function ensureRepoDir(repoRoot: string): string { |
| 17 | const hash = createHash("sha256").update(repoRoot.trim()).digest("hex").slice(0, REPO_HASH_LEN); |
no test coverage detected