(dir: string)
| 329 | generator.stop() |
| 330 | |
| 331 | function allFiles(dir: string): string[] { |
| 332 | let results: string[] = [] |
| 333 | for (const file of fs.readdirSync(dir)) { |
| 334 | const fullPath = path.join(dir, file) |
| 335 | if (fs.statSync(fullPath)?.isDirectory()) { |
| 336 | results = results.concat(allFiles(fullPath)) |
| 337 | } else { |
| 338 | results.push(fullPath) |
| 339 | } |
| 340 | } |
| 341 | return results |
| 342 | } |
| 343 | |
| 344 | // Check if the adapter property has been generated. |
| 345 | // The adapter property is now part of a union type, so it can be either required or optional (never) |
no test coverage detected
searching dependent graphs…