(stagingDir: string)
| 293 | } |
| 294 | |
| 295 | function walkStagedFiles(stagingDir: string): string[] { |
| 296 | const results: string[] = []; |
| 297 | const recurse = (dir: string): void => { |
| 298 | const entries = readdirSync(dir, { withFileTypes: true }); |
| 299 | for (const entry of entries) { |
| 300 | const full = join(dir, entry.name); |
| 301 | if (entry.isDirectory()) { |
| 302 | recurse(full); |
| 303 | } else if (entry.isFile()) { |
| 304 | results.push(full); |
| 305 | } |
| 306 | } |
| 307 | }; |
| 308 | recurse(stagingDir); |
| 309 | return results.sort(); |
| 310 | } |
| 311 | |
| 312 | const LINE_COUNTED_EXTENSIONS = new Set(['.jsonl']); |
| 313 |
no test coverage detected