@storm-software/git-tools 2.123.10 → 2.123.12

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.
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-2.123.8-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-2.123.10-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/bin/git.cjs CHANGED
@@ -4445,60 +4445,31 @@ function createProgram(config5) {
4445
4445
  }
4446
4446
  const program = new commander.Command("storm-git");
4447
4447
  program.version("1.0.0", "-v --version", "display CLI version");
4448
- const commitConfig = new commander.Option(
4449
- "--config <file>",
4450
- "The Commitizen config file path"
4451
- ).makeOptionMandatory(false);
4452
- const commitDryRun = new commander.Option(
4448
+ program.command("commit").description("Commit changes to git for the workspace.").option("--config <file>", "The Commitizen config file path").option(
4453
4449
  "--dry-run",
4454
4450
  "Should the commit be run in dry-run mode (no updates are made)"
4455
- );
4456
- program.command("commit").description("Commit changes to git for the workspace.").addOption(commitConfig).addOption(commitDryRun).action(commitAction);
4457
- const readmeTemplatePath = new commander.Option(
4451
+ ).action(commitAction);
4452
+ program.command("readme").description("Run the README.md generator using the templates provided.").option(
4458
4453
  "--templates <path>",
4459
- "The templates directory to use when generating the README.md files."
4460
- ).default("./tools/readme-templates");
4461
- const readmePackageName = new commander.Option(
4454
+ "The templates directory to use when generating the README.md files.",
4455
+ "./tools/readme-templates"
4456
+ ).option(
4462
4457
  "--project <project>",
4463
4458
  "The specific project to generate a README.md file for"
4464
- );
4465
- const readmeOutput = new commander.Option(
4466
- "--output <path>",
4467
- "Where to output the generated README.md file"
4468
- );
4469
- const readmeClean = new commander.Option(
4459
+ ).option("--output <path>", "Where to output the generated README.md file").option(
4470
4460
  "--clean",
4471
- "Should the output README.md file be cleaned before generation"
4472
- ).default(true);
4473
- const readmePrettier = new commander.Option(
4461
+ "Should the output README.md file be cleaned before generation",
4462
+ true
4463
+ ).option(
4474
4464
  "--prettier",
4475
- "Should the output README.md file have prettier applied to it"
4476
- ).default(true);
4477
- program.command("readme").description("Run the README.md generator using the templates provided.").addOption(readmeTemplatePath).addOption(readmePackageName).addOption(readmeOutput).addOption(readmeClean).addOption(readmePrettier).action(readmeAction);
4478
- const releasePackageName = new commander.Option(
4479
- "--project <project>",
4480
- "The specific project to run release for"
4481
- );
4482
- const releaseBase = new commander.Option("--base <base>", "Git base tag value");
4483
- const releaseHead = new commander.Option("--head <head>", "Git head tag value");
4484
- const releaseDryRun = new commander.Option(
4465
+ "Should the output README.md file have prettier applied to it",
4466
+ true
4467
+ ).action(readmeAction);
4468
+ program.command("release").description("Run release for a project in the workspace.").option("--project <project>", "The specific project to run release for").option("--base <base>", "Git base tag value").option("--head <head>", "Git head tag value").option(
4485
4469
  "--dry-run",
4486
4470
  "Should the release be run in dry-run mode (no updates are made)"
4487
- );
4488
- program.command("release").description("Run release for a project in the workspace.").addOption(releasePackageName).addOption(releaseBase).addOption(releaseHead).addOption(releaseDryRun).action(releaseAction);
4489
- const commitMessage = new commander.Option(
4490
- "--message <commit-message>",
4491
- "The commit message to lint"
4492
- ).makeOptionMandatory(false);
4493
- const commitFile = new commander.Option(
4494
- "--file <commit-file>",
4495
- "The commit message to lint"
4496
- ).makeOptionMandatory(false);
4497
- const commitlintConfig = new commander.Option(
4498
- "--config <file>",
4499
- "The CommitLint config file path"
4500
- ).makeOptionMandatory(false);
4501
- program.command("commitlint").description("Run commitlint for the workspace's commit message.").addOption(commitlintConfig).addOption(commitMessage).addOption(commitFile).action(commitLintAction);
4471
+ ).action(releaseAction);
4472
+ program.command("commitlint").description("Run commitlint for the workspace's commit message.").option("--config <file>", "The CommitLint config file path").option("--message <commit-message>", "The commit message to lint").option("--file <commit-file>", "The commit message to lint").action(commitLintAction);
4502
4473
  return program;
4503
4474
  }
4504
4475
  async function commitAction({
package/bin/git.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { run } from './chunk-S5PS23TL.js';
3
3
  import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, defu, isVerbose, writeWarning, writeTrace, STORM_DEFAULT_RELEASE_BANNER, __require } from './chunk-K3LWFM6S.js';
4
4
  import TOML from '@ltd/j-toml';
5
- import { Command, Option } from 'commander';
5
+ import { Command } from 'commander';
6
6
  import { select, confirm, input } from '@inquirer/prompts';
7
7
  import shellescape from 'any-shell-escape';
8
8
  import chalkTemplate from 'chalk-template';
@@ -4427,60 +4427,31 @@ function createProgram(config5) {
4427
4427
  }
4428
4428
  const program = new Command("storm-git");
4429
4429
  program.version("1.0.0", "-v --version", "display CLI version");
4430
- const commitConfig = new Option(
4431
- "--config <file>",
4432
- "The Commitizen config file path"
4433
- ).makeOptionMandatory(false);
4434
- const commitDryRun = new Option(
4430
+ program.command("commit").description("Commit changes to git for the workspace.").option("--config <file>", "The Commitizen config file path").option(
4435
4431
  "--dry-run",
4436
4432
  "Should the commit be run in dry-run mode (no updates are made)"
4437
- );
4438
- program.command("commit").description("Commit changes to git for the workspace.").addOption(commitConfig).addOption(commitDryRun).action(commitAction);
4439
- const readmeTemplatePath = new Option(
4433
+ ).action(commitAction);
4434
+ program.command("readme").description("Run the README.md generator using the templates provided.").option(
4440
4435
  "--templates <path>",
4441
- "The templates directory to use when generating the README.md files."
4442
- ).default("./tools/readme-templates");
4443
- const readmePackageName = new Option(
4436
+ "The templates directory to use when generating the README.md files.",
4437
+ "./tools/readme-templates"
4438
+ ).option(
4444
4439
  "--project <project>",
4445
4440
  "The specific project to generate a README.md file for"
4446
- );
4447
- const readmeOutput = new Option(
4448
- "--output <path>",
4449
- "Where to output the generated README.md file"
4450
- );
4451
- const readmeClean = new Option(
4441
+ ).option("--output <path>", "Where to output the generated README.md file").option(
4452
4442
  "--clean",
4453
- "Should the output README.md file be cleaned before generation"
4454
- ).default(true);
4455
- const readmePrettier = new Option(
4443
+ "Should the output README.md file be cleaned before generation",
4444
+ true
4445
+ ).option(
4456
4446
  "--prettier",
4457
- "Should the output README.md file have prettier applied to it"
4458
- ).default(true);
4459
- program.command("readme").description("Run the README.md generator using the templates provided.").addOption(readmeTemplatePath).addOption(readmePackageName).addOption(readmeOutput).addOption(readmeClean).addOption(readmePrettier).action(readmeAction);
4460
- const releasePackageName = new Option(
4461
- "--project <project>",
4462
- "The specific project to run release for"
4463
- );
4464
- const releaseBase = new Option("--base <base>", "Git base tag value");
4465
- const releaseHead = new Option("--head <head>", "Git head tag value");
4466
- const releaseDryRun = new Option(
4447
+ "Should the output README.md file have prettier applied to it",
4448
+ true
4449
+ ).action(readmeAction);
4450
+ program.command("release").description("Run release for a project in the workspace.").option("--project <project>", "The specific project to run release for").option("--base <base>", "Git base tag value").option("--head <head>", "Git head tag value").option(
4467
4451
  "--dry-run",
4468
4452
  "Should the release be run in dry-run mode (no updates are made)"
4469
- );
4470
- program.command("release").description("Run release for a project in the workspace.").addOption(releasePackageName).addOption(releaseBase).addOption(releaseHead).addOption(releaseDryRun).action(releaseAction);
4471
- const commitMessage = new Option(
4472
- "--message <commit-message>",
4473
- "The commit message to lint"
4474
- ).makeOptionMandatory(false);
4475
- const commitFile = new Option(
4476
- "--file <commit-file>",
4477
- "The commit message to lint"
4478
- ).makeOptionMandatory(false);
4479
- const commitlintConfig = new Option(
4480
- "--config <file>",
4481
- "The CommitLint config file path"
4482
- ).makeOptionMandatory(false);
4483
- program.command("commitlint").description("Run commitlint for the workspace's commit message.").addOption(commitlintConfig).addOption(commitMessage).addOption(commitFile).action(commitLintAction);
4453
+ ).action(releaseAction);
4454
+ program.command("commitlint").description("Run commitlint for the workspace's commit message.").option("--config <file>", "The CommitLint config file path").option("--message <commit-message>", "The commit message to lint").option("--file <commit-file>", "The commit message to lint").action(commitLintAction);
4484
4455
  return program;
4485
4456
  }
4486
4457
  async function commitAction({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.123.10",
3
+ "version": "2.123.12",
4
4
  "type": "module",
5
5
  "description": "Tools for managing Git repositories within a Nx workspace.",
6
6
  "repository": {
@@ -185,8 +185,8 @@
185
185
  "@inquirer/prompts": "7.2.1",
186
186
  "@nx/devkit": "^21.4.1",
187
187
  "@nx/js": "^21.4.1",
188
- "@storm-software/config": "^1.134.10",
189
- "@storm-software/config-tools": "^1.188.10",
188
+ "@storm-software/config": "^1.134.12",
189
+ "@storm-software/config-tools": "^1.188.12",
190
190
  "@textlint/ast-node-types": "14.4.2",
191
191
  "@textlint/markdown-to-ast": "14.4.2",
192
192
  "anchor-markdown-header": "0.7.0",
@@ -194,7 +194,7 @@
194
194
  "axios": "1.8.2",
195
195
  "chalk": "^4.1.2",
196
196
  "chalk-template": "1.1.0",
197
- "conventional-changelog-storm-software": "^0.3.10",
197
+ "conventional-changelog-storm-software": "^0.3.12",
198
198
  "htmlparser2": "10.0.0",
199
199
  "jsonc-parser": "3.2.1",
200
200
  "nx": "^21.4.1",
@@ -216,5 +216,5 @@
216
216
  "tsup": "8.4.0"
217
217
  },
218
218
  "publishConfig": { "access": "public" },
219
- "gitHead": "1b898cb7ca97636d6865fdc0356f6b50b901e378"
219
+ "gitHead": "f8f8eb9bb43ef672370e0dfcba1cf80f7e009934"
220
220
  }