(projectRoot)
| 13 | } |
| 14 | |
| 15 | function readPackageScripts(projectRoot) { |
| 16 | try { |
| 17 | const packagePath = path.join(projectRoot, 'package.json'); |
| 18 | const raw = fs.readFileSync(packagePath, 'utf8').replace(/^\uFEFF/, ''); |
| 19 | const parsed = JSON.parse(raw); |
| 20 | return parsed.scripts || {}; |
| 21 | } catch { |
| 22 | return {}; |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | function runGit(projectRoot, args) { |
| 27 | const result = spawnSync('git', args, { |
no outgoing calls
no test coverage detected