( dirname: string, includeDotfiles: boolean, altExts?: string[], )
| 45 | } |
| 46 | |
| 47 | export function readdirForCompilable( |
| 48 | dirname: string, |
| 49 | includeDotfiles: boolean, |
| 50 | altExts?: string[], |
| 51 | ): string[] { |
| 52 | return readdir(dirname, includeDotfiles, function (filename) { |
| 53 | return isCompilableExtension(filename, altExts); |
| 54 | }); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Test if a filename ends with a compilable extension. |
nothing calls this directly
no test coverage detected