Skip to content

Commit 9786226

Browse files
authored
chore: externalize fast-string-width & fast-wrap-ansi (#481)
1 parent 56edf97 commit 9786226

4 files changed

Lines changed: 17 additions & 11 deletions

File tree

.changeset/afraid-donkeys-sin.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@clack/prompts": minor
3+
"@clack/core": minor
4+
---
5+
6+
Externalize `fast-string-width` and `fast-wrap-ansi` to avoid double dependencies

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
"test": "vitest run"
5454
},
5555
"dependencies": {
56+
"fast-wrap-ansi": "^0.1.3",
5657
"sisteransi": "^1.0.5"
5758
},
5859
"devDependencies": {
59-
"vitest": "^3.2.4",
60-
"fast-wrap-ansi": "^0.1.3"
60+
"vitest": "^3.2.4"
6161
}
6262
}

packages/prompts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@
5454
},
5555
"dependencies": {
5656
"@clack/core": "workspace:*",
57+
"fast-string-width": "^1.1.0",
58+
"fast-wrap-ansi": "^0.1.3",
5759
"sisteransi": "^1.0.5"
5860
},
5961
"devDependencies": {
60-
"fast-string-width": "^1.1.0",
61-
"fast-wrap-ansi": "^0.1.3",
6262
"is-unicode-supported": "^1.3.0",
6363
"memfs": "^4.17.2",
6464
"vitest": "^3.2.4",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)