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

Function validateWithRootPackage

scripts/validate-changesets.ts:960–971  ·  view source on GitHub ↗
(
  packages: readonly PackageInternal[],
  changesets: readonly ChangesetInfoInternal[],
  changedFiles: readonly string[],
  fs: FileSystem.FileSystem,
  path: Path.Path,
  rootDir: string
)

Source from the content-addressed store, hash-verified

958 );
959
960const validateWithRootPackage = (
961 packages: readonly PackageInternal[],
962 changesets: readonly ChangesetInfoInternal[],
963 changedFiles: readonly string[],
964 fs: FileSystem.FileSystem,
965 path: Path.Path,
966 rootDir: string
967) =>
968 pipe(
969 readRootPackageJson(fs, path, rootDir),
970 Effect.flatMap(validateChangesetLogic(packages, changesets, changedFiles, rootDir))
971 );
972
973const runValidationLogic = ([packages, changesets, changedFiles, [fs, path, rootDir]]: readonly [
974 readonly PackageInternal[],

Callers 1

runValidationLogicFunction · 0.85

Calls 2

readRootPackageJsonFunction · 0.85
validateChangesetLogicFunction · 0.85

Tested by

no test coverage detected