File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gabble" ,
3
- "version" : " 2.1.0 " ,
3
+ "version" : " 2.1.1 " ,
4
4
"main" : " dist/index.js" ,
5
5
"type" : " module" ,
6
6
"author" :
" Jeswin Kumar<[email protected] >" ,
Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ const argv = yargs(process.argv.slice(2))
45
45
describe : "Ignore compilation errors and move to the next page." ,
46
46
default : false ,
47
47
} ,
48
+ debug : {
49
+ type : "boolean" ,
50
+ describe : "Print detailed stack trace for errors." ,
51
+ default : false ,
52
+ } ,
48
53
} )
49
54
. parseSync ( ) ;
50
55
@@ -157,7 +162,11 @@ async function run() {
157
162
) ;
158
163
}
159
164
} catch ( ex : any ) {
160
- console . log ( ex . toString ( ) ) ;
165
+ if ( argv . debug ) {
166
+ console . error ( ex . stack ) ;
167
+ } else {
168
+ console . log ( ex . toString ( ) ) ;
169
+ }
161
170
console . log ( `Skipped ${ file } .` ) ;
162
171
}
163
172
}
You can’t perform that action at this time.
0 commit comments