@ycmd/commands
Version:
LSK.js CLI Creds is the easiest way to manage GitHub / Gitlab secrets and credentials
10 lines (7 loc) • 1.65 kB
JavaScript
'use strict';
var algos = require('@lsk4/algos');
var ycmd = require('ycmd');
var a={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 h=ycmd.createCommand({command:"release:prepare [-y][-p][-s][-d]",describe:"run release process",builder:e=>e.options({prod:a.prod,silent:a.silent,"skip-test":{type:"boolean",describe:"skip test",default:!1}}),async main({ctx:e,argv:i,isRoot:o,log:l}){let t=algos.pick(i,["prod","silent"]),{"skip-test":n}=i;if(o){l.warn("skip");return}await ycmd.shell("pnpm run build",{ctx:e,argv:t}),n||await ycmd.shell("pnpm run test",{ctx:e,argv:t}),await ycmd.shell("ycmd prepack",{ctx:e,argv:t});}});
module.exports = h;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=release-prepare.js.map