@r5n/sisyphus 0.2.0-rc.2 → 0.2.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +1 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- var St=Object.create;var{getPrototypeOf:kt,defineProperty:Se,getOwnPropertyNames:Pt}=Object;var Mt=Object.prototype.hasOwnProperty;var M=(r,t,i)=>{i=r!=null?St(kt(r)):{};const n=t||!r||!r.__esModule?Se(i,"default",{value:r,enumerable:!0}):i;for(let o of Pt(r))if(!Mt.call(n,o))Se(n,o,{get:()=>r[o],enumerable:!0});return n};var Y=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var _=Y((Nr,le)=>{var ke=process.argv||[],Z=process.env,Rt=!(("NO_COLOR"in Z)||ke.includes("--no-color"))&&(("FORCE_COLOR"in Z)||ke.includes("--color")||process.platform==="win32"||import.meta.require!=null&&import.meta.require("tty").isatty(1)&&Z.TERM!=="dumb"||("CI"in Z)),jt=(r,t,i=r)=>(n)=>{let o=""+n,s=o.indexOf(t,r.length);return~s?r+Ot(o,t,i,s)+t:r+o+t},Ot=(r,t,i,n)=>{let o="",s=0;do o+=r.substring(s,n)+i,s=n+t.length,n=r.indexOf(t,s);while(~n);return o+r.substring(s)},Pe=(r=Rt)=>{let t=r?jt:()=>String;return{isColorSupported:r,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};le.exports=Pe();le.exports.createColors=Pe});var ge=Y((Lr,Re)=>{var f=`${"\x1B"}[`,me={to(r,t){if(!t)return`${f}${r+1}G`;return`${f}${t+1};${r+1}H`},move(r,t){let i="";if(r<0)i+=`${f}${-r}D`;else if(r>0)i+=`${f}${r}C`;if(t<0)i+=`${f}${-t}A`;else if(t>0)i+=`${f}${t}B`;return i},up:(r=1)=>`${f}${r}A`,down:(r=1)=>`${f}${r}B`,forward:(r=1)=>`${f}${r}C`,backward:(r=1)=>`${f}${r}D`,nextLine:(r=1)=>`${f}E`.repeat(r),prevLine:(r=1)=>`${f}F`.repeat(r),left:`${f}G`,hide:`${f}?25l`,show:`${f}?25h`,save:`${"\x1B"}7`,restore:`${"\x1B"}8`},_t={up:(r=1)=>`${f}S`.repeat(r),down:(r=1)=>`${f}T`.repeat(r)},At={screen:`${f}2J`,up:(r=1)=>`${f}1J`.repeat(r),down:(r=1)=>`${f}J`.repeat(r),line:`${f}2K`,lineEnd:`${f}K`,lineStart:`${f}1K`,lines(r){let t="";for(let i=0;i<r;i++)t+=this.line+(i<r-1?me.up():"");if(r)t+=me.left;return t}};Re.exports={cursor:me,scroll:_t,erase:At,beep:"\x07"}});var Be=Y((Ur,$e)=>{var je=process.argv||[],Q=process.env,Gt=!(("NO_COLOR"in Q)||je.includes("--no-color"))&&(("FORCE_COLOR"in Q)||je.includes("--color")||process.platform==="win32"||import.meta.require!=null&&import.meta.require("tty").isatty(1)&&Q.TERM!=="dumb"||("CI"in Q)),Et=(r,t,i=r)=>(n)=>{let o=""+n,s=o.indexOf(t,r.length);return~s?r+Nt(o,t,i,s)+t:r+o+t},Nt=(r,t,i,n)=>{let o="",s=0;do o+=r.substring(s,n)+i,s=n+t.length,n=r.indexOf(t,s);while(~n);return o+r.substring(s)},Oe=(r=Gt)=>{let t=r?Et:()=>String;return{isColorSupported:r,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m")}};$e.exports=Oe();$e.exports.createColors=Oe});var ze=Y((Yr,xe)=>{var Ye=process.argv||[],te=process.env,lr=!(("NO_COLOR"in te)||Ye.includes("--no-color"))&&(("FORCE_COLOR"in te)||Ye.includes("--color")||process.platform==="win32"||import.meta.require!=null&&import.meta.require("tty").isatty(1)&&te.TERM!=="dumb"||("CI"in te)),cr=(r,t,i=r)=>(n)=>{let o=""+n,s=o.indexOf(t,r.length);return~s?r+mr(o,t,i,s)+t:r+o+t},mr=(r,t,i,n)=>{let o="",s=0;do o+=r.substring(s,n)+i,s=n+t.length,n=r.indexOf(t,s);while(~n);return o+r.substring(s)},Ze=(r=lr)=>{let t=r?cr:()=>String;return{isColorSupported:r,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m")}};xe.exports=Ze();xe.exports.createColors=Ze});var c=M(_(),1);var Me="0.2.0-rc.2";function ce(r){let t=[];switch(r){case"init":t=[c.whiteBright(`Initialises Sisyphus with config, by creating ${c.italic(".sisyphus/config.json")} file in the root of the workspace.`),"",c.bold("Flags:"),S("--single",`Initialises config in a single package mode. Sisyphus will work for root ${c.dim(c.italic("package.json"))} file only`),S("--overwrite",["Overrides existing config.","It will remove existing one and creates new one with default values or given options"]),S("--tag","Initialises config with a specific tag"),S("--ignore",`Array of packages to ignore. Can be used as array: ${c.underline(c.italic("bunx @r5n/sisyphus init -i pkg1 -i pkg2"))}`),"",c.bold("Examples:"),P("Usual monorepo setup with multiple packages","init",""),P("Single package setup","init","--single"),P("Setup with a specific tag","init","--tag v1.0.0"),P("Setup with ignored packages","init","-i pkg1 -i pkg2")];break;case"version":{t=["Generates a stone from interactive mode. It will ask you about version bump, release message, changelog generation etc.","",c.bold("Flags:"),S("--bump",["Predefined semantic version of bump for selected packages.",`Available types: ${c.underline(c.italic("major, minor, patch"))}. ${c.bold(c.italic(`Can't be used with ${c.cyanBright("--snapshot")} option`))}`]),S("--tag","Version tag for release. Given string will be used as a tagged version for selected packages"),S("--filter","Sisyphus will only update packages that match the given filter"),S("--snapshot",[`Create a snapshot release with version of given tag and timestamp. ${c.bold(c.italic(`Can't be used with ${c.cyanBright("--bump")} option`))}`,"Useful for creating a release from a specific point in time for analysis, debugging or nightly builds"]),S("--yes","Sisyphus will not ask for confirmation before creating a stone"),"",c.bold("Examples:"),P("Base usage","version",""),P("Generate stone with predefined version bump","version","--bump major"),P("Generate stone with snapshot release","version","--snapshot"),P("Confirm stone creation automatically","version","--yes")];break}case"roll":{t=["Creates a release from a specific point in time. It's based on stones created by Sisyphus.","With proper flags it will publish to NPM, create a release on GitHub, generate a changelog and more.","",c.bold("Flags:"),S("--changelog","Creates a changelog from a specific point in time"),S(["-r","--changelogRoot"],"Creates a combined changelog for the monorepo. Useful for release notes."),S("--npm","Publishes packages to NPM"),S("--github","Creates a release on GitHub. Can be configured via `github` in config."),S(["-t","--withTags"],"Creates git tags for release"),S(["","--rootTag"],"Creates a tag of given string. Useful for creating a release from a specific point in time."),S(["","--npmToken"],["NPM token to use for publishing.",`By default it's read from ${c.bold(c.italic("NPM_TOKEN"))} environment variable`]),S(["","--githubToken"],["GitHub token to use for creating a release & tags.",`By default it's read from ${c.bold(c.italic("GITHUB_TOKEN"))} environment variable`]),S("--dryRun","Roll will not make any changes, it will only show what it would do"),"",c.bold("Examples:"),P("Base usage of roll command to generate tags, changelog and npm release","roll","-n -c -t"),P("Generate changelog on release","roll","--changelog"),P("Creates release and publish packages to NPM","roll","--npm"),P("Enables GitHub release creation","roll","--github"),P("Creates release with git tags per package","roll","--withTags"),P("Creates release with a specific tag","roll","--rootTag v1.0.0"),P("Roll with dry run to check for changes","roll","--dryRun")];break}default:t=["",c.italic(c.dim(`Run ${c.underline(c.italic("bunx @r5n/sisyphus <command> --help"))} for more info on command usage`)),"",c.bold("Commands:"),z("help","Show this help information"),z("init","Initialise Sisyphus config"),z("roll","Release packages, tags, changelogs etc. based on generated stones"),z("version","Create stone from interactive mode"),""]}console.info(`
2
+ var St=Object.create;var{getPrototypeOf:kt,defineProperty:Se,getOwnPropertyNames:Pt}=Object;var Mt=Object.prototype.hasOwnProperty;var M=(r,t,i)=>{i=r!=null?St(kt(r)):{};const n=t||!r||!r.__esModule?Se(i,"default",{value:r,enumerable:!0}):i;for(let o of Pt(r))if(!Mt.call(n,o))Se(n,o,{get:()=>r[o],enumerable:!0});return n};var Y=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var _=Y((Nr,le)=>{var ke=process.argv||[],Z=process.env,Rt=!(("NO_COLOR"in Z)||ke.includes("--no-color"))&&(("FORCE_COLOR"in Z)||ke.includes("--color")||process.platform==="win32"||import.meta.require!=null&&import.meta.require("tty").isatty(1)&&Z.TERM!=="dumb"||("CI"in Z)),jt=(r,t,i=r)=>(n)=>{let o=""+n,s=o.indexOf(t,r.length);return~s?r+Ot(o,t,i,s)+t:r+o+t},Ot=(r,t,i,n)=>{let o="",s=0;do o+=r.substring(s,n)+i,s=n+t.length,n=r.indexOf(t,s);while(~n);return o+r.substring(s)},Pe=(r=Rt)=>{let t=r?jt:()=>String;return{isColorSupported:r,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};le.exports=Pe();le.exports.createColors=Pe});var ge=Y((Lr,Re)=>{var f=`${"\x1B"}[`,me={to(r,t){if(!t)return`${f}${r+1}G`;return`${f}${t+1};${r+1}H`},move(r,t){let i="";if(r<0)i+=`${f}${-r}D`;else if(r>0)i+=`${f}${r}C`;if(t<0)i+=`${f}${-t}A`;else if(t>0)i+=`${f}${t}B`;return i},up:(r=1)=>`${f}${r}A`,down:(r=1)=>`${f}${r}B`,forward:(r=1)=>`${f}${r}C`,backward:(r=1)=>`${f}${r}D`,nextLine:(r=1)=>`${f}E`.repeat(r),prevLine:(r=1)=>`${f}F`.repeat(r),left:`${f}G`,hide:`${f}?25l`,show:`${f}?25h`,save:`${"\x1B"}7`,restore:`${"\x1B"}8`},_t={up:(r=1)=>`${f}S`.repeat(r),down:(r=1)=>`${f}T`.repeat(r)},At={screen:`${f}2J`,up:(r=1)=>`${f}1J`.repeat(r),down:(r=1)=>`${f}J`.repeat(r),line:`${f}2K`,lineEnd:`${f}K`,lineStart:`${f}1K`,lines(r){let t="";for(let i=0;i<r;i++)t+=this.line+(i<r-1?me.up():"");if(r)t+=me.left;return t}};Re.exports={cursor:me,scroll:_t,erase:At,beep:"\x07"}});var Be=Y((Ur,$e)=>{var je=process.argv||[],Q=process.env,Gt=!(("NO_COLOR"in Q)||je.includes("--no-color"))&&(("FORCE_COLOR"in Q)||je.includes("--color")||process.platform==="win32"||import.meta.require!=null&&import.meta.require("tty").isatty(1)&&Q.TERM!=="dumb"||("CI"in Q)),Et=(r,t,i=r)=>(n)=>{let o=""+n,s=o.indexOf(t,r.length);return~s?r+Nt(o,t,i,s)+t:r+o+t},Nt=(r,t,i,n)=>{let o="",s=0;do o+=r.substring(s,n)+i,s=n+t.length,n=r.indexOf(t,s);while(~n);return o+r.substring(s)},Oe=(r=Gt)=>{let t=r?Et:()=>String;return{isColorSupported:r,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m")}};$e.exports=Oe();$e.exports.createColors=Oe});var ze=Y((Yr,xe)=>{var Ye=process.argv||[],te=process.env,lr=!(("NO_COLOR"in te)||Ye.includes("--no-color"))&&(("FORCE_COLOR"in te)||Ye.includes("--color")||process.platform==="win32"||import.meta.require!=null&&import.meta.require("tty").isatty(1)&&te.TERM!=="dumb"||("CI"in te)),cr=(r,t,i=r)=>(n)=>{let o=""+n,s=o.indexOf(t,r.length);return~s?r+mr(o,t,i,s)+t:r+o+t},mr=(r,t,i,n)=>{let o="",s=0;do o+=r.substring(s,n)+i,s=n+t.length,n=r.indexOf(t,s);while(~n);return o+r.substring(s)},Ze=(r=lr)=>{let t=r?cr:()=>String;return{isColorSupported:r,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m")}};xe.exports=Ze();xe.exports.createColors=Ze});var c=M(_(),1);var Me="0.2.0-rc.3";function ce(r){let t=[];switch(r){case"init":t=[c.whiteBright(`Initialises Sisyphus with config, by creating ${c.italic(".sisyphus/config.json")} file in the root of the workspace.`),"",c.bold("Flags:"),S("--single",`Initialises config in a single package mode. Sisyphus will work for root ${c.dim(c.italic("package.json"))} file only`),S("--overwrite",["Overrides existing config.","It will remove existing one and creates new one with default values or given options"]),S("--tag","Initialises config with a specific tag"),S("--ignore",`Array of packages to ignore. Can be used as array: ${c.underline(c.italic("bunx @r5n/sisyphus init -i pkg1 -i pkg2"))}`),"",c.bold("Examples:"),P("Usual monorepo setup with multiple packages","init",""),P("Single package setup","init","--single"),P("Setup with a specific tag","init","--tag v1.0.0"),P("Setup with ignored packages","init","-i pkg1 -i pkg2")];break;case"version":{t=["Generates a stone from interactive mode. It will ask you about version bump, release message, changelog generation etc.","",c.bold("Flags:"),S("--bump",["Predefined semantic version of bump for selected packages.",`Available types: ${c.underline(c.italic("major, minor, patch"))}. ${c.bold(c.italic(`Can't be used with ${c.cyanBright("--snapshot")} option`))}`]),S("--tag","Version tag for release. Given string will be used as a tagged version for selected packages"),S("--filter","Sisyphus will only update packages that match the given filter"),S("--snapshot",[`Create a snapshot release with version of given tag and timestamp. ${c.bold(c.italic(`Can't be used with ${c.cyanBright("--bump")} option`))}`,"Useful for creating a release from a specific point in time for analysis, debugging or nightly builds"]),S("--yes","Sisyphus will not ask for confirmation before creating a stone"),"",c.bold("Examples:"),P("Base usage","version",""),P("Generate stone with predefined version bump","version","--bump major"),P("Generate stone with snapshot release","version","--snapshot"),P("Confirm stone creation automatically","version","--yes")];break}case"roll":{t=["Creates a release from a specific point in time. It's based on stones created by Sisyphus.","With proper flags it will publish to NPM, create a release on GitHub, generate a changelog and more.","",c.bold("Flags:"),S("--changelog","Creates a changelog from a specific point in time"),S(["-r","--changelogRoot"],"Creates a combined changelog for the monorepo. Useful for release notes."),S("--npm","Publishes packages to NPM"),S("--github","Creates a release on GitHub. Can be configured via `github` in config."),S(["-t","--withTags"],"Creates git tags for release"),S(["","--rootTag"],"Creates a tag of given string. Useful for creating a release from a specific point in time."),S(["","--npmToken"],["NPM token to use for publishing.",`By default it's read from ${c.bold(c.italic("NPM_TOKEN"))} environment variable`]),S(["","--githubToken"],["GitHub token to use for creating a release & tags.",`By default it's read from ${c.bold(c.italic("GITHUB_TOKEN"))} environment variable`]),S("--dryRun","Roll will not make any changes, it will only show what it would do"),"",c.bold("Examples:"),P("Base usage of roll command to generate tags, changelog and npm release","roll","-n -c -t"),P("Generate changelog on release","roll","--changelog"),P("Creates release and publish packages to NPM","roll","--npm"),P("Enables GitHub release creation","roll","--github"),P("Creates release with git tags per package","roll","--withTags"),P("Creates release with a specific tag","roll","--rootTag v1.0.0"),P("Roll with dry run to check for changes","roll","--dryRun")];break}default:t=["",c.italic(c.dim(`Run ${c.underline(c.italic("bunx @r5n/sisyphus <command> --help"))} for more info on command usage`)),"",c.bold("Commands:"),z("help","Show this help information"),z("init","Initialise Sisyphus config"),z("roll","Release packages, tags, changelogs etc. based on generated stones"),z("version","Create stone from interactive mode"),""]}console.info(`
3
3
  ${c.magenta(`${c.bold("Sisyphus ")}${c.underline(c.italic(`v${Me}`))}`)}
4
4
 
5
5
  Usage: bunx @r5n/sisyphus ${c.yellow(c.italic(r&&!r.includes("help")?`${r} ${c.cyanBright("[...flags]")}`:"<command>"))}
package/package.json CHANGED
@@ -29,5 +29,5 @@
29
29
  "type-check": "bun tsc --noEmit"
30
30
  },
31
31
  "types": "./cli.ts",
32
- "version": "0.2.0-rc.2"
32
+ "version": "0.2.0-rc.3"
33
33
  }