( fs: FileSystem.FileSystem, path: Path.Path, packagesDir: string, dir: string )
| 65 | ); |
| 66 | |
| 67 | const readPackageIfExists = ( |
| 68 | fs: FileSystem.FileSystem, |
| 69 | path: Path.Path, |
| 70 | packagesDir: string, |
| 71 | dir: string |
| 72 | ) => { |
| 73 | const packagePath = path.join(packagesDir, dir, 'package.json'); |
| 74 | return pipe(packagePath, fs.exists, Effect.flatMap(checkAndReadPackage(fs, packagePath))); |
| 75 | }; |
| 76 | |
| 77 | const readPackage = |
| 78 | (fs: FileSystem.FileSystem, path: Path.Path, packagesDir: string) => (dir: string) => |
no test coverage detected