(dirPath: string, filePattern: string)
| 330 | * @return A promise that resolves to an array of file paths relative to `dirPath`. |
| 331 | */ |
| 332 | export async function detectFiles(dirPath: string, filePattern: string): Promise<string[]> { |
| 333 | const options = { |
| 334 | cwd: dirPath, |
| 335 | ignore: [ |
| 336 | "**/dataconnect*/**", |
| 337 | "**/node_modules/**", // Standard dependency directory |
| 338 | "**/dist/**", // Common build output |
| 339 | "**/build/**", // Common build output |
| 340 | "**/out/**", // Another common build output |
| 341 | "**/.next/**", // Next.js build directory |
| 342 | "**/coverage/**", // Test coverage reports |
| 343 | ], |
| 344 | absolute: false, |
| 345 | maxDepth: 4, |
| 346 | }; |
| 347 | return glob(`**/${filePattern}`, options); |
| 348 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…