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

Function cascadeFromRules

packages/bumpy/src/core/release-plan.ts:474–485  ·  view source on GitHub ↗

* Consumer-side cascade rules for a package: explicit `cascadeFrom` entries, plus the * `releaseTriggeringDevDeps` sugar. * * `releaseTriggeringDevDeps` lists `devDependencies` that are release-relevant — typically * because they're bundled into this package's published output (inlined by a buil

(pkg: WorkspacePackage)

Source from the content-addressed store, hash-verified

472 const cascadeBump = rule.bumpAs === 'match' ? sourceType : rule.bumpAs;
473 for (const [targetName] of packages) {
474 if (!matchGlob(targetName, pattern)) continue;
475 if (applyBump(planned, targetName, cascadeBump, false, true, sourceName)) {
476 changed = true;
477 }
478 }
479 }
480 return changed;
481}
482
483/**
484 * Apply consumer-side cascadeFrom rules.
485 * Scans all packages for cascadeFrom entries where the pattern matches the bumped source.
486 * Returns true if any bump was applied.
487 */
488function applyCascadeFrom(

Callers 1

applyCascadeFromFunction · 0.85

Calls 1

normalizeCascadeConfigFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…