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

Function checkExistsAndRead

scripts/validate-publish.ts:61–66  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

59 );
60
61const checkExistsAndRead = (dir: string) => (packageJsonPath: string) =>
62 pipe(
63 packageJsonPath,
64 checkFileExists,
65 Effect.andThen(readPackageMetadataIfExists(packageJsonPath, dir))
66 );
67
68const readPackageMetadata = (packagesDir: string) => (dir: string) =>
69 pipe(joinToPath(packagesDir, dir, 'package.json'), Effect.andThen(checkExistsAndRead(dir)));

Callers 1

readPackageMetadataFunction · 0.85

Calls 1

Tested by

no test coverage detected