File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -296,14 +296,18 @@ const main = async () => {
296
296
const { command, options } = await program . execute ( { args : process . argv } ) ;
297
297
298
298
let customConfig = null ;
299
+ let customConfigPath ;
299
300
300
301
if ( options . customConfig ) {
301
302
try {
302
- const customConfigPath = resolve ( process . cwd ( ) , options . customConfig ) ;
303
- console . log ( `✨ found custom config at: ${ customConfigPath } ` ) ;
303
+ customConfigPath = resolve ( process . cwd ( ) , options . customConfig ) ;
304
304
customConfig = await import ( customConfigPath ) ;
305
+ customConfig = customConfig . default || customConfig ;
305
306
} catch ( e ) {
306
- /* empty */
307
+ console . error ( 'Error loading custom config' , e ) ;
308
+ }
309
+ if ( customConfig ) {
310
+ console . log ( `✨ found custom config at: ${ customConfigPath } ` ) ;
307
311
}
308
312
}
309
313
You can’t perform that action at this time.
0 commit comments