MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / formatPlanRelease

Function formatPlanRelease

packages/bumpy/src/commands/ci.ts:478–503  ·  view source on GitHub ↗
(
  r: {
    name: string;
    type: string;
    oldVersion: string;
    newVersion: string;
    bumpFiles: string[];
    isDependencyBump: boolean;
    isCascadeBump: boolean;
  },
  packages: Map<string, { relativeDir: string; private: boolean; bumpy?: PackageConfig }>,
  config: BumpyConfig,
)

Source from the content-addressed store, hash-verified

476}
477
478function formatPlanRelease(
479 r: {
480 name: string;
481 type: string;
482 oldVersion: string;
483 newVersion: string;
484 bumpFiles: string[];
485 isDependencyBump: boolean;
486 isCascadeBump: boolean;
487 },
488 packages: Map<string, { relativeDir: string; private: boolean; bumpy?: PackageConfig }>,
489 config: BumpyConfig,
490): PlanRelease {
491 const pkg = packages.get(r.name);
492 return {
493 name: r.name,
494 type: r.type,
495 oldVersion: r.oldVersion,
496 newVersion: r.newVersion,
497 dir: pkg?.relativeDir,
498 bumpFiles: r.bumpFiles,
499 isDependencyBump: r.isDependencyBump,
500 isCascadeBump: r.isCascadeBump,
501 publishTargets: getPublishTargets(pkg, config),
502 };
503}
504
505function getPublishTargets(
506 pkg: { private: boolean; bumpy?: PackageConfig } | undefined,

Callers 2

ciPlanCommandFunction · 0.85
ciChannelPlanFunction · 0.85

Calls 1

getPublishTargetsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…