File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,9 @@ export async function bundleDts(options: BundleOptions): Promise<void> {
106
106
} ) ,
107
107
) ;
108
108
} catch ( e ) {
109
- const error = new Error ( `${ logPrefixApiExtractor } ${ e } ` ) ;
109
+ const error = new Error (
110
+ `${ logPrefixApiExtractor } ${ e } ${ color . gray ( `(${ name } )` ) } ` ,
111
+ ) ;
110
112
// do not log the stack trace, it is not helpful for users
111
113
error . stack = '' ;
112
114
throw error ;
Original file line number Diff line number Diff line change @@ -240,7 +240,11 @@ export async function generateDts(data: DtsGenOptions): Promise<void> {
240
240
241
241
const onComplete = async ( isSuccess : boolean ) => {
242
242
if ( isSuccess ) {
243
- await bundleDtsIfNeeded ( ) ;
243
+ try {
244
+ await bundleDtsIfNeeded ( ) ;
245
+ } catch ( e ) {
246
+ logger . error ( e ) ;
247
+ }
244
248
}
245
249
} ;
246
250
You can’t perform that action at this time.
0 commit comments