Skip to content

Commit 49e0401

Browse files
committedFeb 26, 2025
refactor: use consola for colors
1 parent b665de6 commit 49e0401

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed
 

‎package.json

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
},
3232
"dependencies": {
3333
"c12": "3.0.1",
34-
"colorette": "^2.0.20",
3534
"consola": "^3.4.0",
3635
"convert-gitmoji": "^0.1.5",
3736
"mri": "^1.2.0",

‎pnpm-lock.yaml

-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/commands/github.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { promises as fsp } from "node:fs";
22
import type { Argv } from "mri";
33
import { resolve } from "pathe";
44
import consola from "consola";
5-
import { underline, cyan } from "colorette";
5+
import { colors } from "consola/utils";
66
import {
77
getGithubChangelog,
88
resolveGithubToken,
@@ -115,13 +115,13 @@ export async function githubRelease(
115115
.catch(() => {
116116
consola.info(
117117
`Open this link to manually create a release: \n` +
118-
underline(cyan(result.url)) +
118+
colors.underline(colors.cyan(result.url)) +
119119
"\n"
120120
);
121121
});
122122
} else {
123123
consola.success(
124-
`Synced ${cyan(`v${release.version}`)} to Github releases!`
124+
`Synced ${colors.cyan(`v${release.version}`)} to Github releases!`
125125
);
126126
}
127127
}

0 commit comments

Comments
 (0)
Please sign in to comment.