(patterns: string[] | undefined)
| 1 | import { globSync } from 'glob'; |
| 2 | |
| 3 | export function expandFilePatterns(patterns: string[] | undefined): string[] | undefined { |
| 4 | if (!patterns) { |
| 5 | return undefined; |
| 6 | } |
| 7 | |
| 8 | return patterns.flatMap(pattern => |
| 9 | globSync(pattern, { |
| 10 | nodir: true |
| 11 | }) |
| 12 | ); |
| 13 | } |
no outgoing calls
no test coverage detected