MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / readDirectoryPackages

Function readDirectoryPackages

scripts/validate-changesets.ts:90–95  ·  view source on GitHub ↗
(fs: FileSystem.FileSystem, path: Path.Path, packagesDir: string)

Source from the content-addressed store, hash-verified

88 );
89
90const readDirectoryPackages = (fs: FileSystem.FileSystem, path: Path.Path, packagesDir: string) =>
91 pipe(
92 packagesDir,
93 fs.readDirectory,
94 Effect.flatMap(readAllPackageDirectories(fs, path, packagesDir))
95 );
96
97const readPackagesWhenExists =
98 (fs: FileSystem.FileSystem, path: Path.Path, packagesDir: string) => (exists: boolean) =>

Callers 1

readPackagesWhenExistsFunction · 0.85

Calls 1

Tested by

no test coverage detected