UNPKG

@ycmd/commands

Version:

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

7 lines (5 loc) 1.43 kB
import { createCommand, shell } from 'ycmd'; var o={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 b=createCommand({command:"publish [-d]",describe:"publish the package",builder:e=>e.options({dry:o.dry}),async main({isRoot:e,ctx:a,argv:t}){if(e){await shell("pnpm -r publish .release",{ctx:a,argv:t});return}let{dry:l}=t,i="pnpm publish .release --no-git-checks";l&&(i+=" --dry-run"),await shell(i,{ctx:a});}}); export { b as default }; //# sourceMappingURL=out.js.map //# sourceMappingURL=publish.js.map