| 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 |