We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94855bf commit 62f399fCopy full SHA for 62f399f
index.js
@@ -296,14 +296,18 @@ const main = async () => {
296
const { command, options } = await program.execute({ args: process.argv });
297
298
let customConfig = null;
299
+ let customConfigPath;
300
301
if (options.customConfig) {
302
try {
- const customConfigPath = resolve(process.cwd(), options.customConfig);
303
- console.log(`✨ found custom config at: ${customConfigPath}`);
+ customConfigPath = resolve(process.cwd(), options.customConfig);
304
customConfig = await import(customConfigPath);
305
+ customConfig = customConfig.default || customConfig;
306
} catch (e) {
- /* empty */
307
+ console.error('Error loading custom config', e);
308
+ }
309
+ if (customConfig) {
310
+ console.log(`✨ found custom config at: ${customConfigPath}`);
311
}
312
313
0 commit comments