(repoRoot: string)
| 14482 | } |
| 14483 | |
| 14484 | function readRepoPackageScripts(repoRoot: string): string[] { |
| 14485 | const packageJsonPath = path.join(repoRoot, 'package.json'); |
| 14486 | if (!fs.existsSync(packageJsonPath)) { |
| 14487 | return []; |
| 14488 | } |
| 14489 | try { |
| 14490 | const parsed = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')) as { scripts?: Record<string, string> }; |
| 14491 | return parsed?.scripts && typeof parsed.scripts === 'object' |
| 14492 | ? Object.keys(parsed.scripts) |
| 14493 | : []; |
| 14494 | } catch { |
| 14495 | return []; |
| 14496 | } |
| 14497 | } |
| 14498 | |
| 14499 | function listRepoTopLevelEntries(repoRoot: string): string[] { |
| 14500 | try { |
no outgoing calls
no test coverage detected