We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4736a79 commit a1729edCopy full SHA for a1729ed
publish.py
@@ -1143,7 +1143,10 @@ def package_ui(self):
1143
1144
with zipfile.ZipFile(zipfile_path, "w", zipfile.ZIP_DEFLATED) as zipf:
1145
ui_dir = "src/ui"
1146
+ exclude_dirs = {"node_modules", "build"}
1147
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]
1150
for file in files:
1151
file_path = os.path.join(root, file)
1152
arcname = os.path.relpath(file_path, ui_dir)
0 commit comments