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

Function readPackagesDir

scripts/validate-changesets.ts:104–114  ·  view source on GitHub ↗
(
  directoryName: string,
  [fs, path, rootDir]: readonly [FileSystem.FileSystem, Path.Path, string]
)

Source from the content-addressed store, hash-verified

102 });
103
104const readPackagesDir = (
105 directoryName: string,
106 [fs, path, rootDir]: readonly [FileSystem.FileSystem, Path.Path, string]
107) => {
108 const packagesDir = path.join(rootDir, directoryName);
109 return pipe(
110 packagesDir,
111 fs.exists,
112 Effect.flatMap(readPackagesWhenExists(fs, path, packagesDir))
113 );
114};
115
116const combinePackageArrays = ([packages, examples]: readonly [
117 readonly PackageInternal[],

Callers 1

readAllWorkspacePackagesFunction · 0.70

Calls 1

readPackagesWhenExistsFunction · 0.85

Tested by

no test coverage detected