Skip to content

Commit 56d9bd8

Browse files
committed
fix: strip cp-algo prefix when writing minified bundled files
The bundled directory already contains the cp-algo/ structure, so we need to strip this prefix to avoid paths like cp-algo/min-bundled/cp-algo/...
1 parent 6f0f3c2 commit 56d9bd8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.verify-helper/scripts/generate_minified.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ def main():
209209
# Calculate relative path within bundled
210210
rel_path = bundled_file.relative_to(bundled_dir)
211211

212+
# Strip the 'cp-algo/' prefix if present (bundled dir already has full structure)
213+
# so we don't get cp-algo/min-bundled/cp-algo/...
214+
if rel_path.parts[0] == 'cp-algo':
215+
rel_path = Path(*rel_path.parts[1:])
216+
212217
# Output paths for minified bundled
213218
minified_bundled_ci_file = minified_bundled_ci_dir / rel_path
214219
minified_bundled_committed_file = minified_bundled_committed_dir / rel_path

0 commit comments

Comments
 (0)