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

Function getAllAddOns

packages/create/src/add-ons.ts:5–14  ·  view source on GitHub ↗
(framework: Framework, mode: string)

Source from the content-addressed store, hash-verified

3import type { AddOn, Framework } from './types.js'
4
5export function getAllAddOns(framework: Framework, mode: string): Array<AddOn> {
6 return framework
7 .getAddOns()
8 .filter((a) => a.modes.includes(mode))
9 .sort((a, b) => {
10 const aPriority = a.priority ?? 0
11 const bPriority = b.priority ?? 0
12 return bPriority - aPriority // Higher priority first
13 })
14}
15
16// Turn the list of chosen add-on IDs into a final list of add-ons by resolving dependencies
17export async function finalizeAddOns(

Callers 5

selectAddOnsFunction · 0.90
handleCreateFunction · 0.90
finalizeAddOnsFunction · 0.70
add-ons.test.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected