UNPKG

@ycmd/commands

Version:

LSK.js CLI Creds is the easiest way to manage GitHub / Gitlab secrets and credentials

7 lines (5 loc) 1.6 kB
import { createCommand, shellParallel, getCwdInfo, findBin, shell } from 'ycmd'; var e={watch:{alias:"w",describe:"monitor files for changes",type:"boolean",default:!1},prod:{alias:"p",describe:"enable code optimization for production",type:"boolean",default:!1},silent:{alias:["s","q","quiet"],describe:"run in silent mode, show errors only",type:"boolean",default:!1},exec:{alias:"e",describe:"executes after compilation",type:["boolean","string"],default:!1},dry:{alias:["d","dry-run","without-publish"],describe:"run in dry mode, without publishing",type:"boolean",default:!1},dist:{describe:"specify the output directory",type:"string"},force:{alias:["f"],describe:"force to run",type:"boolean",default:!1},dts:{describe:"generate dts files",type:"boolean",default:!0},yes:{alias:["y"],describe:"automatically say yes to all prompts",type:"boolean",default:!1},bail:{alias:"b",describe:"stop running after the first failure",type:"boolean",default:!1},clean:{alias:"c",describe:"clean the output directory before building",type:"boolean",default:!1}};var g=createCommand({command:"build:nest [-w]",describe:"build NestJS project",builder:t=>t.options({watch:e.watch,prod:e.prod,silent:e.silent}),async main({isRoot:t,ctx:a,cwd:s,argv:i}){if(t){await shellParallel("ycmd build:nest",{ctx:a,argv:i});return}let{watch:l=!1}=i,{isApp:n}=await getCwdInfo({cwd:s});if(n&&l){let r=`${findBin("nest")} start --watch --debug`;await shell(r,{ctx:a});}else await shell("ycmd build:ts",{ctx:a,argv:i});}}); export { g as default }; //# sourceMappingURL=out.js.map //# sourceMappingURL=build-nest.js.map