cross-release-cli 0.2.0 → 0.2.1

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/app.js +3 -2
  2. package/package.json +4 -4
package/dist/app.js CHANGED
@@ -150,13 +150,13 @@ const cliOptions = z.object({
150
150
 
151
151
  //#endregion
152
152
  //#region package.json
153
- var version = "0.1.0";
153
+ var version = "0.2.0";
154
154
 
155
155
  //#endregion
156
156
  //#region src/cli.ts
157
157
  const debug$3 = createDebug("cli");
158
158
  function createCliProgram(argv) {
159
- const cli = cac("cross-release").usage("A release tool that support multi programming language").version(version).usage("[version] [options]").option("-c, --config [file]", "Config file (auto detect by default)").option("-D, --dry", "Dry run").option("-d, --debug", "Enable debug mode").option("-e, --exclude [dir...]", "Folders to exclude from search").option("-m, --main [lang]", "Base project language [e.g. java, rust, javascript]").option("-r, --recursive", "Run the command for each project in the workspace").option("-x, --execute [command...]", "Execute the command").option("-y, --yes", "Answer yes to all prompts").option("--cwd [dir]", "Set working directory").option("--commit", "Committing changes").option("--commit.signoff", "Pushing Commit with signoff").option("--commit.stageAll", "Stage all changes before pushing").option("--commit.template <template>", "Template for commit message").option("--commit.verify", "Verify commit message").option("--push", "Pushing Commit to remote").option("--push.followTags", "Pushing with follow tags").option("--push.branch <branch>", "Branch name to push").option("--push.followTags", "pushing with follow tags").option("--tag", "Tagging for release").option("--tag.template <template>", "Template for tag message").option("-h, --help", "Display this message").help();
159
+ const cli = cac("cross-release").usage("A release tool that support multi programming language").version(version).usage("[version] [options]").option("-c, --config [file]", "Config file (auto detect by default)").option("-D, --dry", "Dry run").option("-d, --debug", "Enable debug mode").option("-e, --exclude [dir...]", "Folders to exclude from search").option("-m, --main [lang]", "Base project language [e.g. java, rust, javascript]").option("-r, --recursive", "Run the command for each project in the workspace").option("-x, --execute [command...]", "Execute the command").option("-y, --yes", "Answer yes to all prompts").option("--cwd [dir]", "Set working directory").option("--commit", "Committing changes").option("--commit.signoff", "Pushing Commit with signoff").option("--commit.stageAll", "Stage all changes before pushing").option("--commit.template <template>", "Template for commit message").option("--commit.verify", "Verify commit message").option("--push", "Pushing Commit to remote").option("--push.followTags", "Pushing with follow tags").option("--push.branch <branch>", "Branch name to push").option("--push.followTags", "pushing with follow tags").option("--tag", "Tagging for release").option("--tag.template <template>", "Template for tag message").help();
160
160
  return cli.parse(argv);
161
161
  }
162
162
  function argvToReleaseOptions(cli) {
@@ -456,6 +456,7 @@ var App = class {
456
456
  _taskStatus = "pending";
457
457
  constructor(argv = process.argv) {
458
458
  const cli = createCliProgram(argv);
459
+ if (cli.options.help) process.exit(ExitCode.Success);
459
460
  const opts = resolveAppOptions(cli);
460
461
  this._options = opts;
461
462
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cross-release-cli",
3
3
  "type": "module",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "description": "command line app for cross language bump utility",
6
6
  "author": {
7
7
  "name": "rainbowatcher",
@@ -36,9 +36,9 @@
36
36
  "execa": "^9.5.2",
37
37
  "is-unicode-supported": "^2.1.0",
38
38
  "picocolors": "^1.1.1",
39
- "unconfig": "^7.3.1",
40
- "zod": "^3.24.3",
41
- "cross-bump": "0.2.0"
39
+ "unconfig": "^7.3.2",
40
+ "zod": "^3.24.4",
41
+ "cross-bump": "0.2.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@rainbowatcher/maybe": "^0.7.0"