MCPcopy Create free account
hub / github.com/TanStack/cli / dependencyInjection

Function dependencyInjection

packages/create/src/attribution.ts:131–137  ·  view source on GitHub ↗
(dep: DependencyAttribution)

Source from the content-addressed store, hash-verified

129
130// Build injection pattern from a dependency (for package.json)
131function dependencyInjection(dep: DependencyAttribution): Injection {
132 return {
133 matches: (line) => line.includes(`"${dep.name}"`),
134 appliesTo: (path) => path.endsWith('package.json'),
135 source: { sourceId: dep.sourceId, sourceName: dep.sourceName },
136 }
137}
138
139export async function computeAttribution(
140 input: AttributionInput,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected