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

Function findExclusiveConflicts

packages/cli/src/cli.ts:433–446  ·  view source on GitHub ↗
(
    addOns: Options['chosenAddOns'],
  )

Source from the content-addressed store, hash-verified

431 }
432
433 function findExclusiveConflicts(
434 addOns: Options['chosenAddOns'],
435 ): Array<{ category: string; names: Array<string> }> {
436 const buckets: Record<string, Array<string>> = {}
437 for (const addOn of addOns) {
438 for (const exclusive of addOn.exclusive || []) {
439 buckets[exclusive] ??= []
440 buckets[exclusive].push(addOn.name)
441 }
442 }
443 return Object.entries(buckets)
444 .filter(([_, names]) => names.length > 1)
445 .map(([category, names]) => ({ category, names }))
446 }
447
448 const availableFrameworks = getFrameworks().map((f) => f.name)
449

Callers 1

confirmCreateOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected