constargv=parseArgs(process.argv.slice(2),{alias:{h:'help',p:'port'},boolean:['h'],default:{p:3000}})constdir=resolve(argv._[0]||'.')build(dir).then(async()=>{constsrv=newServer({dir,dev:true})awaitsrv.start(argv.port)console.log('> Ready on http://localhost:%d',argv.port);}).catch((err)=>{console.error(err)exit(1)})