(ref: string, pathFromRepoRoot: string)
| 72 | const REPO_ROOT = run("git rev-parse --show-toplevel", { cwd: currentDocsWorkspace }); |
| 73 | |
| 74 | function refHasPath(ref: string, pathFromRepoRoot: string): boolean { |
| 75 | const p = pathFromRepoRoot.replace(/^\/+/, "").replace(/\/+$/, ""); |
| 76 | try { |
| 77 | run(`git -C "${REPO_ROOT}" rev-parse --verify --quiet "${ref}:${p}"`); |
| 78 | return true; |
| 79 | } catch { return false; } |
| 80 | } |
| 81 | |
| 82 | function buildDocs(sourceDir: string, outDir: string) { |
| 83 | if (!existsSync(sourceDir)) throw new Error(`Docs workspace not found: ${sourceDir}`); |
no test coverage detected
searching dependent graphs…