(path)
| 255 | } |
| 256 | |
| 257 | function existsAndHasContent(path) { |
| 258 | try { |
| 259 | const stats = statSync(path); |
| 260 | if (stats.isDirectory()) { |
| 261 | return readdirSync(path).length > 0; |
| 262 | } |
| 263 | return stats.size > 0; |
| 264 | } catch { |
| 265 | return false; |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | function repoRoot() { |
| 270 | const result = spawnSync("git", ["rev-parse", "--show-toplevel"], { |
no outgoing calls
no test coverage detected