"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const deepmerge = __importStar(require("deepmerge"));
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) => result.concat(...config.iamRoleStatements), []);
};
exports.mergeIamRoleStatements = (statements) => {
    return deepmerge.all(statements);
};
//# sourceMappingURL=plugin.js.map