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

Function readAllPackageDirectories

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

Source from the content-addressed store, hash-verified

80
81const readAllPackageDirectories =
82 (fs: FileSystem.FileSystem, path: Path.Path, packagesDir: string) => (dirs: readonly string[]) =>
83 pipe(
84 dirs,
85 EffectArray.map(readPackage(fs, path, packagesDir)),
86 Effect.all,
87 Effect.map(EffectArray.getSomes)
88 );
89
90const readDirectoryPackages = (fs: FileSystem.FileSystem, path: Path.Path, packagesDir: string) =>
91 pipe(

Callers 1

readDirectoryPackagesFunction · 0.85

Calls 1

readPackageFunction · 0.70

Tested by

no test coverage detected