(mode: SetupMode, tool: MonorepoTool | null)
| 59 | } |
| 60 | |
| 61 | function toContext(mode: SetupMode, tool: MonorepoTool | null): ConfigContext { |
| 62 | if (mode === 'monorepo' && tool == null) { |
| 63 | logger.warn('No monorepo tool detected, falling back to standalone mode.'); |
| 64 | return { mode: 'standalone', tool: null }; |
| 65 | } |
| 66 | return { mode, tool }; |
| 67 | } |
| 68 | |
| 69 | export async function listProjects( |
| 70 | cwd: string, |