(dir: string)
| 202 | } |
| 203 | |
| 204 | function safeReadDir(dir: string): readonly Dirent[] { |
| 205 | try { |
| 206 | return readdirSync(dir, { withFileTypes: true }); |
| 207 | } catch { |
| 208 | return Object.freeze([]); |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | function collectWatchDirectories(root: string): readonly string[] { |
| 213 | const out: string[] = []; |
no outgoing calls
no test coverage detected