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

Function getPrivatePackagePaths

scripts/validate-changesets.ts:323–333  ·  view source on GitHub ↗
(
  packages: readonly PackageInternal[],
  rootDir: string
)

Source from the content-addressed store, hash-verified

321const getChangedFiles = pipe(Terminal.Terminal, Effect.flatMap(runGitDiff));
322
323const getPrivatePackagePaths = (
324 packages: readonly PackageInternal[],
325 rootDir: string
326): readonly string[] => {
327 return packages
328 .filter((pkg) => pkg.private === true)
329 .map((pkg) => {
330 const packageDir = pkg.path.replace(rootDir + '/', '').replace('/package.json', '');
331 return packageDir;
332 });
333};
334
335const filterOutPrivatePackageFiles = (
336 changedFiles: readonly string[],

Callers 2

hasCodeChangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected