(dirs: string[], dirPath: string)
| 51 | } |
| 52 | |
| 53 | function pushIfExistingDir(dirs: string[], dirPath: string): void { |
| 54 | try { |
| 55 | statSync(dirPath) |
| 56 | if (!dirs.includes(dirPath)) { |
| 57 | dirs.push(dirPath) |
| 58 | } |
| 59 | } catch (e: unknown) { |
| 60 | if (!isFsInaccessible(e)) throw e |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | export function getExistingProjectOrManagedDirs( |
| 65 | root: string, |
no test coverage detected