cli
cli copied to clipboard
fix(deps): replace `chalk` with smaller and faster `ansis`
Summary
Replace chalk with ansis: https://github.com/webdiscus/ansis?tab=readme-ov-file#how-to-switch-to-ansis-1.
Honestly, I did this before realizing the savings are absolutely tiny (44 KB → 6 KB), but I fixed a few types along the way so we might as well ship it.
📊 Benchmark results
Comparing with 33b60ba6c007cf8b5689011fbfa09951a936bfc0
- Dependency count: 1,238 ⬆️ 0.08% increase vs. 33b60ba6c007cf8b5689011fbfa09951a936bfc0
- Package size: 311 MB ⬆️ 0.01% increase vs. 33b60ba6c007cf8b5689011fbfa09951a936bfc0
- Number of ts-expect-error directives: 415 ⬇️ 1.69% decrease vs. 33b60ba6c007cf8b5689011fbfa09951a936bfc0
PR is stale and full of conflicts, value is minimal, closing. keeping type fixes in https://github.com/netlify/cli/pull/7383.