(dir: string)
| 308 | export const IGNORED_TEMPLATE_DIRECTORIES = [".git", "node_modules"]; |
| 309 | |
| 310 | export async function getDirectoryFilesRecursive(dir: string) { |
| 311 | return (await readdir(dir, { recursive: true })).filter((file) => { |
| 312 | let parts = file.split(path.sep); |
| 313 | |
| 314 | return ( |
| 315 | parts.length <= 1 || !IGNORED_TEMPLATE_DIRECTORIES.includes(parts[0]) |
| 316 | ); |
| 317 | }); |
| 318 | } |
no outgoing calls
no test coverage detected