(filePath)
| 69 | } |
| 70 | } |
| 71 | |
| 72 | function readJson(filePath) { |
| 73 | const raw = readText(filePath); |
| 74 | if (!raw) return null; |
| 75 | try { |
| 76 | return JSON.parse(raw); |
| 77 | } catch { |
| 78 | return null; |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | function listFiles(dir, predicate = () => true) { |
no test coverage detected