MCPcopy Index your code
hub / github.com/angular/angular-cli / getPackageManager

Function getPackageManager

packages/angular/cli/src/utilities/config.ts:320–329  ·  view source on GitHub ↗
(source: json.JsonValue | undefined)

Source from the content-addressed store, hash-verified

318
319export 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');

Callers 1

Calls 1

isJsonObjectFunction · 0.70

Tested by

no test coverage detected