process . on ( "unhandledRejection" , ( err ) => { throw err ; } ) ; void ( async ( ) => { switch ( process . argv [ 2 ] ) { case "start" : { process . env . NODE_ENV = "development" ; await import ( "./config/env" ) ; return import ( "./start/index" ) ; } case "build" : { process . env . NODE_ENV = "production" ; await import ( "./config/env" ) ; return import ( "./build/index" ) ; } default : { if ( process . argv . includes ( "--help" ) ) { console . log ( "Help" ) ; } else { throw new Error ( `${ process . argv [ 2 ] } is not recognized` ) ; } } } } ) ( ) ;