From e6e9c1ada17ed738f82fe2d914ac0cddb4f07f28 Mon Sep 17 00:00:00 2001 From: lvwmwm Date: Thu, 27 Aug 2026 12:47:14 -0300 Subject: [PATCH] fix: shard unnamed modules into __unmapped/NNxxx to avoid GitHub 1000-file truncation --- src/update/tasks/code.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/update/tasks/code.ts b/src/update/tasks/code.ts index 9936c872432..5ea6c552266 100644 --- a/src/update/tasks/code.ts +++ b/src/update/tasks/code.ts @@ -56,8 +56,10 @@ export default async function code(progress: Progress, _code: string[]) { if (id !== undefined) { const sourcePath = modulePaths.get(id); if (sourcePath) return sanitizePath(sourcePath); + const bucket = Math.floor(id / 1000); + return `__unmapped/${String(bucket).padStart(2, "0")}xxx/${relativePath}`; } - return relativePath; + return `__unmapped/${relativePath}`; } const files = new Map();