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> {
106106 } ) ,
107107 ) ;
108108 } catch ( e ) {
109- const error = new Error ( `${ logPrefixApiExtractor } ${ e } ` ) ;
109+ const error = new Error (
110+ `${ logPrefixApiExtractor } ${ e } ${ color . gray ( `(${ name } )` ) } ` ,
111+ ) ;
110112 // do not log the stack trace, it is not helpful for users
111113 error . stack = '' ;
112114 throw error ;
Original file line number Diff line number Diff line change @@ -240,7 +240,11 @@ export async function generateDts(data: DtsGenOptions): Promise<void> {
240240
241241 const onComplete = async ( isSuccess : boolean ) => {
242242 if ( isSuccess ) {
243- await bundleDtsIfNeeded ( ) ;
243+ try {
244+ await bundleDtsIfNeeded ( ) ;
245+ } catch ( e ) {
246+ logger . error ( e ) ;
247+ }
244248 }
245249 } ;
246250
You can’t perform that action at this time.
0 commit comments