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

Function getLegacyTemplateValue

packages/cli/src/command-line.ts:30–44  ·  view source on GitHub ↗
(templateValue?: string)

Source from the content-addressed store, hash-verified

28const LEGACY_TEMPLATE_ALIASES = new Set(['javascript', 'js', 'jsx'])
29
30function getLegacyTemplateValue(templateValue?: string) {
31 if (!templateValue) {
32 return undefined
33 }
34
35 const normalized = templateValue.toLowerCase().trim()
36 if (
37 SUPPORTED_LEGACY_TEMPLATES.has(normalized) ||
38 LEGACY_TEMPLATE_ALIASES.has(normalized)
39 ) {
40 return normalized
41 }
42
43 return undefined
44}
45
46function slugifyStarterName(value: string) {
47 return value

Callers 2

normalizeOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected