(workspace: AngularWorkspace)
| 303 | } |
| 304 | |
| 305 | export function getProjectByCwd(workspace: AngularWorkspace): string | null { |
| 306 | if (workspace.projects.size === 1) { |
| 307 | // If there is only one project, return that one. |
| 308 | return Array.from(workspace.projects.keys())[0]; |
| 309 | } |
| 310 | |
| 311 | const project = findProjectByPath(workspace, process.cwd()); |
| 312 | if (project) { |
| 313 | return project; |
| 314 | } |
| 315 | |
| 316 | return null; |
| 317 | } |
| 318 | |
| 319 | export async function getConfiguredPackageManager(): Promise<PackageManager | null> { |
| 320 | const getPackageManager = (source: json.JsonValue | undefined): PackageManager | null => { |
no test coverage detected