From d5079125cbfdbc4a5f2632959601ab770b555d91 Mon Sep 17 00:00:00 2001 From: claude-bot Date: Tue, 12 May 2026 19:51:33 +0900 Subject: [PATCH] fix(installer-rp): type archiver warning handler explicitly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit archive.on('warning', ...) 콜백의 err 파라미터에 implicit any 가 떠서 strict tsc 빌드가 깨졌다. Error & { code?: string } 로 명시. Co-Authored-By: Claude Opus 4.7 --- src/installer-rp/pack.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/installer-rp/pack.ts b/src/installer-rp/pack.ts index 47aa8b4..01ea052 100644 --- a/src/installer-rp/pack.ts +++ b/src/installer-rp/pack.ts @@ -99,9 +99,9 @@ function zipDirectory(srcDir: string, outZipPath: string): Promise { const archive = archiver('zip', { zlib: { level: 9 } }) output.on('close', () => resolve()) output.on('error', reject) - archive.on('warning', (err) => { + archive.on('warning', (err: Error & { code?: string }) => { // ENOENT 정도면 무시, 그 외는 reject. - if ((err as NodeJS.ErrnoException).code === 'ENOENT') return + if (err.code === 'ENOENT') return reject(err) }) archive.on('error', reject)