diff --git a/lib/Deployer.js b/lib/Deployer.js index 03b960556..1173f7d1a 100644 --- a/lib/Deployer.js +++ b/lib/Deployer.js @@ -333,7 +333,13 @@ class Deployer { const folderMetadata = {}; const allowedDeFolderContentTypes = ['dataextension', 'shared_dataextension']; for (const metadataType of metadataTypeArr) { - if (!MetadataTypeInfo[metadataType].definition.dependencies.includes('folder')) { + // check if folder or folder-like metadata type is in dependencies + if ( + !MetadataTypeInfo[metadataType].definition.dependencies.includes('folder') && + !MetadataTypeInfo[metadataType].definition.dependencies.some((dep) => + dep.startsWith('folder-') + ) + ) { Util.logger.debug(` ☇ skipping ${metadataType} folders: folder not a dependency`); continue; }