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

Function resolveBuiltInDevWatchPath

packages/cli/src/cli.ts:450–463  ·  view source on GitHub ↗
(frameworkId: string)

Source from the content-addressed store, hash-verified

448 const availableFrameworks = getFrameworks().map((f) => f.name)
449
450 function resolveBuiltInDevWatchPath(frameworkId: string): string {
451 const candidates = [
452 resolve(process.cwd(), 'packages/create/src/frameworks', frameworkId),
453 resolve(process.cwd(), '../create/src/frameworks', frameworkId),
454 ]
455
456 for (const candidate of candidates) {
457 if (fs.existsSync(candidate)) {
458 return candidate
459 }
460 }
461
462 return candidates[0]
463 }
464
465 async function startDevWatchMode(projectName: string, options: CliOptions) {
466 // Validate dev watch options

Callers 1

cliFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected