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

Function readPackageJson

scripts/validate-changesets.ts:55–56  ·  view source on GitHub ↗
(fs: FileSystem.FileSystem, packagePath: string)

Source from the content-addressed store, hash-verified

53};
54
55const readPackageJson = (fs: FileSystem.FileSystem, packagePath: string) =>
56 pipe(packagePath, fs.readFileString, Effect.map(parsePackageJsonContent(packagePath)));
57
58const checkAndReadPackage = (fs: FileSystem.FileSystem, packagePath: string) => (exists: boolean) =>
59 pipe(

Callers 1

checkAndReadPackageFunction · 0.70

Calls 1

parsePackageJsonContentFunction · 0.85

Tested by

no test coverage detected