(fs: FileSystem.FileSystem, packagePath: string)
| 56 | pipe(packagePath, fs.readFileString, Effect.map(parsePackageJsonContent(packagePath))); |
| 57 | |
| 58 | const checkAndReadPackage = (fs: FileSystem.FileSystem, packagePath: string) => (exists: boolean) => |
| 59 | pipe( |
| 60 | exists, |
| 61 | Match.value, |
| 62 | Match.when(true, () => readPackageJson(fs, packagePath)), |
| 63 | Match.when(false, () => Effect.succeedNone), |
| 64 | Match.exhaustive |
| 65 | ); |
| 66 | |
| 67 | const readPackageIfExists = ( |
| 68 | fs: FileSystem.FileSystem, |
no test coverage detected