11import { $fetch } from 'ofetch'
2+ import { cyan , green , red , yellow } from 'kolorist'
23import qs from 'qs'
3- import { vipColor } from '@142vip/utils'
44import type {
55 AuthorInfo ,
66 ChangelogOptions ,
@@ -36,7 +36,7 @@ export async function sendRelease(
3636 prerelease : options . prerelease ,
3737 tag_name : options . to ,
3838 }
39- console . log ( vipColor . cyan ( method === 'POST'
39+ console . log ( cyan ( method === 'POST'
4040 ? 'Creating release notes...'
4141 : 'Updating release notes...' ) ,
4242 )
@@ -45,7 +45,7 @@ export async function sendRelease(
4545 body : JSON . stringify ( body ) ,
4646 headers,
4747 } )
48- console . log ( vipColor . green ( `Released on ${ res . html_url } ` ) )
48+ console . log ( green ( `Released on ${ res . html_url } ` ) )
4949}
5050
5151function getHeaders ( options : ChangelogOptions ) {
@@ -172,9 +172,9 @@ export function generateWebUrl(config: any, markdown: string) {
172172 */
173173export function printUrl ( webUrl : string , success : boolean = true ) {
174174 if ( success ) {
175- console . error ( `\n${ vipColor . yellow ( '使用以下链接手动发布新的版本:' ) } \n${ vipColor . yellow ( webUrl ) } \n` )
175+ console . error ( `\n${ yellow ( '使用以下链接手动发布新的版本:' ) } \n${ yellow ( webUrl ) } \n` )
176176 }
177177 else {
178- console . error ( `\n${ vipColor . red ( '无法创建发布。使用以下链接手动创建:' ) } \n${ vipColor . yellow ( webUrl ) } \n` )
178+ console . error ( `\n${ red ( '无法创建发布。使用以下链接手动创建:' ) } \n${ yellow ( webUrl ) } \n` )
179179 }
180180}
0 commit comments