(path: string)
| 3 | import { join } from 'path' |
| 4 | |
| 5 | const getDirectories = (path: string) => { |
| 6 | const packages = readdirSync(path).filter((any) => statSync(join(path, any)).isDirectory()) |
| 7 | const result = packages.map((pkg) => ({ |
| 8 | dirName: pkg, |
| 9 | path: join('..', path, pkg), |
| 10 | jsonPath: join('..', path, pkg, './package.json'), |
| 11 | })) |
| 12 | return result |
| 13 | } |
| 14 | |
| 15 | const getKeys = (obj: any, name) => { |
| 16 | if (obj && obj[name]) { |
no test coverage detected