(dir: string)
| 523 | } |
| 524 | |
| 525 | function walkSize(dir: string): number { |
| 526 | let total = 0; |
| 527 | for (const entry of readdirSync(dir, { withFileTypes: true })) { |
| 528 | const full = join(dir, entry.name); |
| 529 | if (entry.isDirectory()) total += walkSize(full); |
| 530 | else if (entry.isFile()) total += statSync(full).size; |
| 531 | } |
| 532 | return total; |
| 533 | } |
| 534 | |
| 535 | void main().catch((err) => { |
| 536 | console.error("[build-zip] failed:", err instanceof Error ? err.message : String(err)); |
no outgoing calls
no test coverage detected