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

Function buildPackageMetadata

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

Source from the content-addressed store, hash-verified

42};
43
44const buildPackageMetadata = (dir: string) => (content: string) => {
45 const pkgData = parsePackageJson(content);
46 return [{ name: pkgData.name, directory: dir }];
47};
48
49const readAndBuildMetadata = (packageJsonPath: string, dir: string) =>
50 pipe(packageJsonPath, readFileAsString, Effect.map(buildPackageMetadata(dir)));

Callers 1

readAndBuildMetadataFunction · 0.85

Calls 1

parsePackageJsonFunction · 0.70

Tested by

no test coverage detected