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

Function processPackageDirectories

scripts/validate-publish.ts:71–77  ·  view source on GitHub ↗
(packagesDir: string)

Source from the content-addressed store, hash-verified

69 pipe(joinToPath(packagesDir, dir, 'package.json'), Effect.andThen(checkExistsAndRead(dir)));
70
71const processPackageDirectories = (packagesDir: string) => (dirs: ReadonlyArray<string>) =>
72 pipe(
73 Effect.forEach(dirs, readPackageMetadata(packagesDir), {
74 concurrency: 'unbounded',
75 }),
76 Effect.map((results) => results.flat())
77 );
78
79const readAndProcessPackages = (packagesDir: string) =>
80 pipe(packagesDir, readDirectoryContents, Effect.andThen(processPackageDirectories(packagesDir)));

Callers 1

readAndProcessPackagesFunction · 0.85

Calls 1

readPackageMetadataFunction · 0.85

Tested by

no test coverage detected