UNPKG

infrastructure-components

Version:

Infrastructure-Components configure the infrastructure of your React-App as part of your React-Components.

26 lines 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.forwardChildPostBuilds = (childConfigs) => (childConfigs.reduce((result, config) => result.concat(config.postBuilds), [])); /** * provide all client configs in a flat list */ exports.forwardChildWebpackConfigs = (childConfigs) => { return childConfigs.reduce((result, config) => result.concat(...config.webpackConfigs), []); }; /** * provide all client configs in a flat list */ exports.forwardChildIamRoleStatements = (childConfigs) => { return childConfigs.reduce((result, config) => { //console.log("reduce iam: ", config.iamRoleStatements); const statements = (config.iamRoleStatements !== undefined && Array.isArray(config.iamRoleStatements)) ? config.iamRoleStatements : []; //console.log("iam result: ", statements) return result.concat(statements); }, []); }; /* export const mergeIamRoleStatements = (statements: Array<any>) => { return deepmerge.all(statements); };*/ //# sourceMappingURL=plugin.js.map