Skip to content

Commit 553736a

Browse files
committed
perf: use ast-string-width
1 parent 068f519 commit 553736a

File tree

4 files changed

+20
-17
lines changed

4 files changed

+20
-17
lines changed

packages/plugin-help/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"dependencies": {
3939
"@clerc/utils": "workspace:*",
4040
"@uttr/tint": "catalog:cli",
41-
"string-width": "catalog:cli",
41+
"fast-string-width": "catalog:cli",
4242
"text-table": "catalog:cli"
4343
},
4444
"devDependencies": {

packages/plugin-help/src/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
toArray,
2121
} from "@clerc/utils";
2222
import * as tint from "@uttr/tint";
23-
import stringWidth from "string-width";
23+
import stringWidth from "fast-string-width";
2424
import textTable from "text-table";
2525

2626
import type { Formatters, GroupsOptions } from "./types";

pnpm-lock.yaml

Lines changed: 17 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ catalogs:
1818
"@types/yargs-parser": "^21.0.3"
1919
"@uttr/tint": "^0.1.3"
2020
args-tokens: "^0.23.0"
21+
fast-string-width: "^3.0.2"
2122
fastest-levenshtein: "^1.0.16"
2223
is-platform: "^1.0.0"
2324
kons: "^0.7.1"
2425
lite-emit: ^4.0.0
2526
minimist: "^1.2.8"
2627
mri: "^1.2.0"
2728
nopt: "^9.0.0"
28-
string-width: "^8.1.0"
2929
text-table: "^0.2.0"
3030
type-flag: "^4.0.3"
3131
update-notifier: "^7.3.1"

0 commit comments

Comments
 (0)