Skip to content

Commit a1729ed

Browse files
author
Bob Strahan
committed
Exclude node_modules and build directories from UI zip packaging
1 parent 4736a79 commit a1729ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

publish.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,10 @@ def package_ui(self):
11431143

11441144
with zipfile.ZipFile(zipfile_path, "w", zipfile.ZIP_DEFLATED) as zipf:
11451145
ui_dir = "src/ui"
1146+
exclude_dirs = {"node_modules", "build"}
11461147
for root, dirs, files in os.walk(ui_dir):
1148+
# Exclude specified directories from zipping
1149+
dirs[:] = [d for d in dirs if d not in exclude_dirs]
11471150
for file in files:
11481151
file_path = os.path.join(root, file)
11491152
arcname = os.path.relpath(file_path, ui_dir)

0 commit comments

Comments
 (0)