From 4543cd0e546bffed04bbd2d96564d72cdeb05306 Mon Sep 17 00:00:00 2001 From: Ala Hawash Date: Thu, 21 Mar 2024 20:16:45 +0200 Subject: [PATCH] clear resources after export --- packages/mdctl-cli/lib/env/export.js | 3 +++ 1 file changed, 3 insertions(+) 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({