Skip to content

Commit e51e7a8

Browse files
authoredJun 11, 2024··
fix(deps): chalk to ansis (#841)
1 parent 052bf0a commit e51e7a8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dependencies": {
77
"@inquirer/select": "^2.3.5",
88
"@oclif/core": "^4",
9-
"chalk": "^5",
9+
"ansis": "^3.2.0",
1010
"debug": "^4.3.5",
1111
"filesize": "^6.1.0",
1212
"got": "^13",

‎src/update.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Config, Interfaces, ux} from '@oclif/core'
2-
import chalk from 'chalk'
2+
import {green, yellow} from 'ansis'
33
import makeDebug from 'debug'
44
import fileSize from 'filesize'
55
import {got} from 'got'
@@ -226,8 +226,8 @@ ${binPathEnvVar}="\$DIR/${bin}" ${redirectedEnvVar}=1 "$DIR/../${version}/bin/${
226226
channel: string,
227227
) {
228228
ux.action.start(
229-
`${this.config.name}: Updating CLI from ${chalk.green(current)} to ${chalk.green(updated)}${
230-
channel === 'stable' ? '' : ' (' + chalk.yellow(channel) + ')'
229+
`${this.config.name}: Updating CLI from ${green(current)} to ${green(updated)}${
230+
channel === 'stable' ? '' : ' (' + yellow(channel) + ')'
231231
}`,
232232
)
233233

@@ -242,7 +242,7 @@ ${binPathEnvVar}="\$DIR/${bin}" ${redirectedEnvVar}=1 "$DIR/../${version}/bin/${
242242
}
243243

244244
private async updateToExistingVersion(current: string, updated: string): Promise<void> {
245-
ux.action.start(`${this.config.name}: Updating CLI from ${chalk.green(current)} to ${chalk.green(updated)}`)
245+
ux.action.start(`${this.config.name}: Updating CLI from ${green(current)} to ${green(updated)}`)
246246
await ensureClientDir(this.clientRoot)
247247
await this.refreshConfig(updated)
248248
await this.createBin(updated)

‎yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -2735,7 +2735,7 @@ chalk@^4, chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2:
27352735
ansi-styles "^4.1.0"
27362736
supports-color "^7.1.0"
27372737

2738-
chalk@^5, chalk@^5.3.0, chalk@~5.3.0:
2738+
chalk@^5.3.0, chalk@~5.3.0:
27392739
version "5.3.0"
27402740
resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385"
27412741
integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==

0 commit comments

Comments
 (0)
Please sign in to comment.