Commit b0f79fd
committed
feat: 2x faster scanning, interactive search, sort modes, project restructuring, and npm build support
- Add interactive search filtering (press /) for loaded results
- Add explicit sort modes: largest first, newest first, oldest first, name, path
- Rewrite interactive UI to use path-based selection instead of index-based
- Move CLI entrypoint from root index.ts to src/cli.ts
- Extract shared types into src/types.ts (NodeModule, ScanOptions, ScanResult, DeleteResult)
- Move deleteModules() to cross-platform fs.rm with Bun fallback
- Remove obsolete benchmark scripts (v1-vs-v2, comprehensive, run-benchmark)
- Update installed-vs-local benchmark to compare bundled dist vs source cli
- Add npm build support (bun build --target bun -> dist/cli.js)
- Add prepublishOnly script for automated check + build before npm publish
- Add @types/node for proper editor IntelliSense
- Add runCli() export in src/cli.ts for root index.ts shim
- Clean up comments, remove unused scanner exports (formatSize, formatElapsed)
- Update guide.md and BENCHMARK.md to reflect current architecture
- Clean .gitignore (remove benchmark dir ignore, remove old zig artifacts)
- Fix progress phase accuracy during overlapped sizing pipeline
- Fix empty-filter edge cases in interactive mode (cursor, delete confirmation)
- Performance: scan is 2x faster than installed bunkill (local source cli ~24s vs installed ~53s on /Users/himanshum)
- Overlapped discovery + metadata + size calculation pipeline for non-blocking end-of-scan UX
- Lazy git status loading for visible rows only keeps scan speed intact1 parent a19eb19 commit b0f79fd
13 files changed
Lines changed: 2403 additions & 1580 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
0 commit comments