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

Function getAllAddOns

packages/create/src/edge-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
13 })
14}
15
16export async function finalizeAddOns(
17 framework: Framework,

Callers 1

finalizeAddOnsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected