cli icon indicating copy to clipboard operation
cli copied to clipboard

fix(deps): replace `chalk` with smaller and faster `ansis`

Open serhalp opened this issue 9 months ago • 1 comments

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.

serhalp avatar Feb 24 '25 23:02 serhalp

📊 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

github-actions[bot] avatar Feb 24 '25 23:02 github-actions[bot]

PR is stale and full of conflicts, value is minimal, closing. keeping type fixes in https://github.com/netlify/cli/pull/7383.

serhalp avatar Jul 23 '25 17:07 serhalp