in src/base-exported-backend.ts [79:101]
protected transformTemplateFile(cfnIncludeProps: CfnIncludeProps, exportPath: string) : CfnIncludeProps {
if(!cfnIncludeProps.loadNestedStacks){
return cfnIncludeProps;
}
const newProps: CfnIncludeProps = {
...cfnIncludeProps,
templateFile: path.join(exportPath, cfnIncludeProps.templateFile),
loadNestedStacks: cfnIncludeProps.loadNestedStacks ?
Object.keys(cfnIncludeProps.loadNestedStacks).reduce((obj: any, key: string) => {
if(cfnIncludeProps.loadNestedStacks && key in cfnIncludeProps.loadNestedStacks) {
obj[key] = this.transformTemplateFile(cfnIncludeProps.loadNestedStacks[key], exportPath);
}
return obj;
}, {}) :
cfnIncludeProps.loadNestedStacks
};
return newProps;
}