[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay
5

Configure Feed

Select the types of activity you want to include in your feed.

feat: add npm size measurement script

Nate Moore (Jun 2, 2026, 8:57 PM -0500) 4b5a8520 ebaf397f

+18
+18
tasks/measure-size.ts
··· 1 + import { gzipSync } from "node:zlib"; 2 + 3 + const dir = "build/npm/esm"; 4 + const results: Array<{ file: string; raw: number; gzip: number }> = []; 5 + 6 + for await (const entry of Deno.readDir(dir)) { 7 + if (!entry.isFile) continue; 8 + const path = `${dir}/${entry.name}`; 9 + const data = await Deno.readFile(path); 10 + results.push({ 11 + file: entry.name, 12 + raw: data.byteLength, 13 + gzip: gzipSync(data).byteLength, 14 + }); 15 + } 16 + 17 + results.sort((a, b) => a.file.localeCompare(b.file)); 18 + console.log(JSON.stringify(results));