(source: json.JsonValue | undefined)
| 318 | |
| 319 | export async function getConfiguredPackageManager(): Promise<PackageManager | null> { |
| 320 | const getPackageManager = (source: json.JsonValue | undefined): PackageManager | null => { |
| 321 | if (isJsonObject(source)) { |
| 322 | const value = source['packageManager']; |
| 323 | if (value && typeof value === 'string') { |
| 324 | return value as PackageManager; |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | return null; |
| 329 | }; |
| 330 | |
| 331 | let result: PackageManager | null = null; |
| 332 | const workspace = await getWorkspace('local'); |
no test coverage detected