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

Function getPackageJsonDiff

scripts/validate-changesets.ts:407–414  ·  view source on GitHub ↗
(filePath: string, baseBranch: string)

Source from the content-addressed store, hash-verified

405 );
406
407const getPackageJsonDiff = (filePath: string, baseBranch: string) =>
408 pipe(
409 Command.make('git', 'show', `${baseBranch}:${filePath}`),
410 Command.string,
411 Effect.map(parseJsonSafely),
412 Effect.catchAll(() => Effect.succeed(null)),
413 Effect.flatMap((beforeContent) => fetchAfterPackageJson(beforeContent, filePath))
414 );
415
416const isDependencyOnlyPackageJsonChange = (file: string, baseBranch: string) =>
417 pipe(

Callers 1

Calls 1

fetchAfterPackageJsonFunction · 0.85

Tested by

no test coverage detected