File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ export const generateSpecs = async (
61
61
await generateSpec ( workspace , options , projectName ) ;
62
62
} catch ( e ) {
63
63
log ( chalk . red ( `🛑 ${ projectName ? `${ projectName } - ` : '' } ${ e } ` ) ) ;
64
+ process . exit ( 1 )
64
65
}
65
66
} else {
66
67
errorMessage ( 'Project not found' ) ;
@@ -69,18 +70,23 @@ export const generateSpecs = async (
69
70
return ;
70
71
}
71
72
72
- return asyncReduce (
73
+ let hasErrors : true | undefined
74
+ const accumulate = asyncReduce (
73
75
Object . entries ( config ) ,
74
76
async ( acc , [ projectName , options ] ) => {
75
77
try {
76
78
acc . push ( await generateSpec ( workspace , options , projectName ) ) ;
77
79
} catch ( e ) {
80
+ hasErrors = true
78
81
log ( chalk . red ( `🛑 ${ projectName ? `${ projectName } - ` : '' } ${ e } ` ) ) ;
79
82
}
80
83
return acc ;
81
84
} ,
82
85
[ ] as void [ ] ,
83
86
) ;
87
+
88
+ if ( hasErrors ) process . exit ( 1 )
89
+ return accumulate
84
90
} ;
85
91
86
92
export const generateConfig = async (
You can’t perform that action at this time.
1 commit comments
vercel[bot] commentedon Aug 15, 2023
Successfully deployed to the following URLs:
orval – ./
orval.vercel.app
orval-anymaniax.vercel.app
orval-git-master-anymaniax.vercel.app
orval.dev
www.orval.dev