Skip to content

Commit 70610d9

Browse files
committed
feat: clean up distribution directory before sending to frontend
1 parent 16c6f2d commit 70610d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/paradoc/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def _setup(self, create_dirs, clean_build_dir):
161161

162162
def send_to_frontend(self, metadata_file=None):
163163
from paradoc.io.ast.exporter import ASTExporter
164-
164+
shutil.rmtree(self.dist_dir, ignore_errors=True)
165165
self._prep_compilation(metadata_file=metadata_file)
166166
self._perform_variable_substitution(False)
167167
html = ASTExporter(self)

0 commit comments

Comments
 (0)