diff --git a/packages/mdctl-cli/lib/env/export.js b/packages/mdctl-cli/lib/env/export.js index be747f5d..9572bef2 100644 --- a/packages/mdctl-cli/lib/env/export.js +++ b/packages/mdctl-cli/lib/env/export.js @@ -1,4 +1,5 @@ /* eslint-disable max-len */ +const { ExportSection } = require('@medable/mdctl-core/streams/section') const { Transform } = require('stream') const fs = require('fs'), @@ -180,6 +181,8 @@ const fs = require('fs'), return reject(new Error('Export not complete!')) } + ExportSection.clearSectionsWithResources() + if (options.docs) { console.log('Documenting env') return Docs.generateDocumentation({