File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 38
38
"typecheck" : " tsc --noEmit"
39
39
},
40
40
"dependencies" : {
41
+ "@142vip/common" : " latest" ,
41
42
"@142vip/changelog" : " workspace:*" ,
42
43
"@jsdevtools/ez-spawn" : " ^3.0.4" ,
43
44
"c12" : " ^1.10.0" ,
Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ export async function main() {
71
71
options . progress = options . progress ? options . progress : progress
72
72
73
73
// 执行版本升级
74
- const result = await versionBump ( options )
75
-
76
- console . log ( 'result:' , result )
74
+ await versionBump ( options )
77
75
}
78
76
catch ( error ) {
79
77
errorHandler ( error as Error )
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import * as ezSpawn from '@jsdevtools/ez-spawn'
3
3
import symbols from 'log-symbols'
4
4
import prompts from 'prompts'
5
5
import { bold , cyan , green } from 'kolorist'
6
+ import { execShell } from '@142vip/common'
6
7
import type { VersionBumpOptions , VersionBumpResults } from '../types'
7
8
import { NpmScript } from '../types'
8
9
import { getNewVersion } from './get-new-version'
@@ -53,10 +54,12 @@ export async function versionBump(arg: (VersionBumpOptions) | string = {}): Prom
53
54
if ( operation . options . changelog ) {
54
55
console . log ( symbols . info , 'Generate CHANGELOG.md By @142vip/changelog' , operation . options . execute )
55
56
try {
56
- await ezSpawn . async ( `npx changelog --output CHANGELOG.md --name v${ operation . state . newVersion } `, { stdio : 'inherit' } )
57
+ await execShell ( ` changelog --output CHANGELOG.md --name v${ operation . state . newVersion } `)
57
58
}
58
59
catch ( e ) {
59
- console . log ( 333 , e )
60
+ console . log ( symbols . error , 'Happen Error In Generate CHANGELOG!!!' )
61
+ console . log ( e )
62
+ process . exit ( 1 )
60
63
}
61
64
62
65
console . log ( symbols . success , 'Generate CHANGELOG.md Finished' )
You can’t perform that action at this time.
0 commit comments