@@ -239,10 +239,10 @@ const program = cli({
239239 default : codeGenBaseConfig . sortRoutes ,
240240 } ,
241241 {
242- flags : " --custom-config <string>" ,
243- description : " custom config: primitiveTypeConstructs, hooks, ... " ,
242+ flags : ' --custom-config <string>' ,
243+ description : ' custom config: primitiveTypeConstructs, hooks, ... ' ,
244244 default : '' ,
245- }
245+ } ,
246246 ] ,
247247} ) ;
248248
@@ -297,14 +297,16 @@ program.addCommand({
297297const main = async ( ) => {
298298 const { command, options } = await program . execute ( { args : process . argv } ) ;
299299
300- let customConfig = null
300+ let customConfig = null ;
301301
302302 if ( options . customConfig ) {
303303 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+ }
308310 }
309311
310312 try {
@@ -317,7 +319,6 @@ const main = async () => {
317319 generateRouteTypes : options . routeTypes ,
318320 generateClient : ! ! ( options . axios || options . client ) ,
319321 httpClientType : options . axios ? HTTP_CLIENT . AXIOS : HTTP_CLIENT . FETCH ,
320- url : options . path ,
321322 input : resolve ( process . cwd ( ) , options . path ) ,
322323 output : resolve ( process . cwd ( ) , options . output || '.' ) ,
323324 ...customConfig ,
0 commit comments