(source: json.JsonValue | undefined)
| 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'); |
no test coverage detected