( config: ReturnType<Config["loadConfigOrDefault"]>, workspaceId: string )
| 58 | } |
| 59 | |
| 60 | export function findWorkspaceEntry( |
| 61 | config: ReturnType<Config["loadConfigOrDefault"]>, |
| 62 | workspaceId: string |
| 63 | ): { projectPath: string; workspace: WorkspaceConfigEntry } | null { |
| 64 | for (const [projectPath, project] of config.projects) { |
| 65 | for (const workspace of project.workspaces) { |
| 66 | if (workspace.id === workspaceId) { |
| 67 | return { projectPath, workspace }; |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | return null; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Walk the parentWorkspaceId chain to compute task nesting depth. |
no outgoing calls
no test coverage detected