fix(installer-rp): type archiver warning handler explicitly
archive.on('warning', ...) 콜백의 err 파라미터에 implicit any 가 떠서
strict tsc 빌드가 깨졌다. Error & { code?: string } 로 명시.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -99,9 +99,9 @@ function zipDirectory(srcDir: string, outZipPath: string): Promise<void> {
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user