MCPcopy
hub / github.com/triggerdotdev/trigger.dev / getVersionMismatches

Function getVersionMismatches

packages/cli-v3/src/commands/update.ts:84–96  ·  view source on GitHub ↗
(deps: Dependency[], targetVersion: string)

Source from the content-addressed store, hash-verified

82 const triggerDependencies = getTriggerDependencies(packageJson);
83
84 function getVersionMismatches(deps: Dependency[], targetVersion: string): Dependency[] {
85 const mismatches: Dependency[] = [];
86
87 for (const dep of deps) {
88 if (dep.version === targetVersion) {
89 continue;
90 }
91
92 mismatches.push(dep);
93 }
94
95 return mismatches;
96 }
97
98 const versionMismatches = getVersionMismatches(triggerDependencies, cliVersion);
99

Callers 1

updateTriggerPackagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…