@@ -239,10 +239,10 @@ const program = cli({
239
239
default : codeGenBaseConfig . sortRoutes ,
240
240
} ,
241
241
{
242
- flags : " --custom-config <string>" ,
243
- description : " custom config: primitiveTypeConstructs, hooks, ... " ,
242
+ flags : ' --custom-config <string>' ,
243
+ description : ' custom config: primitiveTypeConstructs, hooks, ... ' ,
244
244
default : '' ,
245
- }
245
+ } ,
246
246
] ,
247
247
} ) ;
248
248
@@ -297,14 +297,16 @@ program.addCommand({
297
297
const main = async ( ) => {
298
298
const { command, options } = await program . execute ( { args : process . argv } ) ;
299
299
300
- let customConfig = null
300
+ let customConfig = null ;
301
301
302
302
if ( options . customConfig ) {
303
303
try {
304
- const customConfigPath = resolve ( process . cwd ( ) , options . customConfig )
305
- console . log ( `✨ found custom config at: ${ customConfigPath } ` )
306
- customConfig = require ( customConfigPath )
307
- } catch ( e ) { }
304
+ const customConfigPath = resolve ( process . cwd ( ) , options . customConfig ) ;
305
+ console . log ( `✨ found custom config at: ${ customConfigPath } ` ) ;
306
+ customConfig = require ( customConfigPath ) ;
307
+ } catch ( e ) {
308
+ /* empty */
309
+ }
308
310
}
309
311
310
312
try {
@@ -317,7 +319,6 @@ const main = async () => {
317
319
generateRouteTypes : options . routeTypes ,
318
320
generateClient : ! ! ( options . axios || options . client ) ,
319
321
httpClientType : options . axios ? HTTP_CLIENT . AXIOS : HTTP_CLIENT . FETCH ,
320
- url : options . path ,
321
322
input : resolve ( process . cwd ( ) , options . path ) ,
322
323
output : resolve ( process . cwd ( ) , options . output || '.' ) ,
323
324
...customConfig ,
0 commit comments