Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 225a3e4

Browse files
Fuzzymatimdeschryver
andauthored
fix(deps): replace chalk with picocolors (#1341)
* chore(deps): replace chalk with picocolors * chore: fix ci * chore: tryong to fix ci by using a working package-lock * Revert "chore: tryong to fix ci by using a working package-lock" This reverts commit 69e87ef. * chore: move typescript back to devDependencies * pin @babel/helper-compilation-targets --------- Co-authored-by: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com>
1 parent a86c54c commit 225a3e4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
"@babel/runtime": "^7.12.5",
6464
"@types/aria-query": "^5.0.1",
6565
"aria-query": "5.3.0",
66-
"chalk": "^4.1.0",
6766
"dom-accessibility-api": "^0.5.9",
6867
"lz-string": "^1.5.0",
68+
"picocolors": "1.1.1",
6969
"pretty-format": "^27.0.2"
7070
},
7171
"devDependencies": {
@@ -80,6 +80,7 @@
8080
"typescript": "^4.1.2"
8181
},
8282
"overrides": {
83+
"@babel/helper-compilation-targets": "7.24.7",
8384
"browserslist": "4.21.8",
8485
"caniuse-lite": "1.0.30001502"
8586
},

‎src/get-user-code-frame.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// We try to load node dependencies
2-
let chalk = null
2+
let picocolors = null
33
let readFileSync = null
44
let codeFrameColumns = null
55

@@ -11,7 +11,7 @@ try {
1111
module,
1212
'@babel/code-frame',
1313
).codeFrameColumns
14-
chalk = nodeRequire.call(module, 'chalk')
14+
picocolors = nodeRequire.call(module, 'picocolors')
1515
} catch {
1616
// We're in a browser environment
1717
}
@@ -46,7 +46,7 @@ function getCodeFrame(frame) {
4646
linesBelow: 0,
4747
},
4848
)
49-
return `${chalk.dim(frameLocation)}\n${codeFrame}\n`
49+
return `${picocolors.dim(frameLocation)}\n${codeFrame}\n`
5050
}
5151

5252
function getUserCodeFrame() {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /