Skip to content

Commit

Permalink
clear resources after export
Browse files Browse the repository at this point in the history
  • Loading branch information
Ala Hawash committed Mar 21, 2024
1 parent 4737747 commit 4543cd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/mdctl-cli/lib/env/export.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable max-len */
const { ExportSection } = require('@medable/mdctl-core/streams/section')
const { Transform } = require('stream')

const fs = require('fs'),
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 4543cd0

Please sign in to comment.