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

Function mergeOptions

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

Source from the content-addressed store, hash-verified

354): Promise<{}> {
355 const result = {};
356 const mergeOptions = (source: json.JsonValue | undefined): void => {
357 if (isJsonObject(source)) {
358 // Merge options from the qualified name
359 Object.assign(result, source[`${collection}:${schematic}`]);
360
361 // Merge options from nested collection schematics
362 const collectionOptions = source[collection];
363 if (isJsonObject(collectionOptions)) {
364 Object.assign(result, collectionOptions[schematic]);
365 }
366 }
367 };
368
369 // Global level schematic options
370 const globalOptions = await getWorkspace('global');

Callers 1

getSchematicDefaultsFunction · 0.70

Calls 1

isJsonObjectFunction · 0.70

Tested by

no test coverage detected