From 486042aaa588e0d1ebaa824b4fa46b7cf3831801 Mon Sep 17 00:00:00 2001 From: riz Date: Wed, 19 Nov 2025 22:58:09 +0000 Subject: [PATCH] Add filename debugging to find metadata.json matching issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add quotes around filenames to see exact content - Add directory skipping debug output - Add success message when metadata.json entry is found - Debug why filename comparison is failing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- pkgs/utils/deploy.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/utils/deploy.ts b/pkgs/utils/deploy.ts index 9a6d45e..9917167 100644 --- a/pkgs/utils/deploy.ts +++ b/pkgs/utils/deploy.ts @@ -260,19 +260,21 @@ export const deploy = { let loadedFiles = 0; // Process each entry in the ZIP + console.log(`[DEBUG] Processing ${zipEntries.length} ZIP entries...`); for (const entry of zipEntries) { if (entry.filename.endsWith('/')) { - // Skip directory entries + console.log(`[DEBUG] Skipping directory: ${entry.filename}`); continue; } try { - console.log(`[DEBUG] Processing file: ${entry.filename} (${entry.compressedSize} -> ${entry.uncompressedSize} bytes)`); + console.log(`[DEBUG] Processing file: "${entry.filename}" (${entry.compressedSize} -> ${entry.uncompressedSize} bytes)`); // Extract file data from ZIP buffer const fileContent = await this.extractFileFromZip(zipBuffer, entry); if (entry.filename === 'metadata.json') { + console.log(`[DEBUG] ✓ Found metadata.json entry!`); console.log(`[DEBUG] Found metadata.json, parsing content...`); console.log(`[DEBUG] metadata.json file size: ${fileContent.length} bytes`);