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

Function appliesTo

packages/create/src/attribution.ts:97–107  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

95 const injections: Array<Injection> = []
96
97 const appliesTo = (path: string) => {
98 if (int.type === 'vite-plugin') return path.includes('vite.config')
99 if (
100 int.type === 'provider' ||
101 int.type === 'root-provider' ||
102 int.type === 'devtools'
103 ) {
104 return path.includes('__root') || path.includes('root.tsx')
105 }
106 return false
107 }
108
109 if (int.import) {
110 const prefix = int.import.split(' from ')[0]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected