@storm-software/git-tools 2.131.89 → 2.131.90

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
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-2.131.87-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)
30
+ [![Version](https://img.shields.io/badge/version-2.131.88-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)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
package/bin/git.cjs CHANGED
@@ -35,7 +35,6 @@ require('stream');
35
35
  var util = require('util');
36
36
  var wrap = require('word-wrap');
37
37
  var Path = require('path');
38
- var projectGraph_js = require('nx/src/project-graph/project-graph.js');
39
38
  var prettier = require('prettier');
40
39
  var markdownToAst = require('@textlint/markdown-to-ast');
41
40
  var anchor = require('anchor-markdown-header');
@@ -50,13 +49,11 @@ var yaml = require('yaml');
50
49
  var printChanges = require('nx/src/command-line/release/utils/print-changes');
51
50
  var shared = require('nx/src/command-line/release/utils/shared');
52
51
  var utils = require('nx/src/tasks-runner/utils');
53
- var execCommand_js = require('nx/src/command-line/release/utils/exec-command.js');
52
+ var execCommand = require('nx/src/command-line/release/utils/exec-command');
54
53
  var git = require('nx/src/command-line/release/utils/git');
55
- var utils_js = require('nx/src/tasks-runner/utils.js');
56
54
  var semver = require('semver');
57
55
  var release = require('nx/release');
58
56
  var versionPlans = require('nx/src/command-line/release/config/version-plans');
59
- var printChanges_js = require('nx/src/command-line/release/utils/print-changes.js');
60
57
  var versionPlanUtils = require('nx/src/command-line/release/utils/version-plan-utils');
61
58
  var tree = require('nx/src/generators/tree');
62
59
  var fileMapUtils = require('nx/src/project-graph/file-map-utils');
@@ -74,11 +71,9 @@ var versionActions = require('nx/src/command-line/release/version/version-action
74
71
  var affectedProjectGraph = require('nx/src/project-graph/affected/affected-project-graph');
75
72
  var fileUtils = require('nx/src/project-graph/file-utils');
76
73
  var gte2 = require('semver/functions/gte');
77
- var config_js = require('nx/src/command-line/release/config/config.js');
78
74
  var deriveSpecifierFromConventionalCommits = require('nx/src/command-line/release/version/derive-specifier-from-conventional-commits');
79
75
  var deriverSpecifierFromVersionPlans = require('nx/src/command-line/release/version/deriver-specifier-from-version-plans');
80
76
  var releaseGroupProcessor = require('nx/src/command-line/release/version/release-group-processor');
81
- var versionActions_js = require('nx/src/command-line/release/version/version-actions.js');
82
77
 
83
78
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
84
79
 
@@ -2039,10 +2034,10 @@ var runReadme = async ({
2039
2034
  prettier: prettier2 = true,
2040
2035
  workspace = false
2041
2036
  }) => {
2042
- const projectGraph = await projectGraph_js.createProjectGraphAsync({
2037
+ const projectGraph$1 = await projectGraph.createProjectGraphAsync({
2043
2038
  exitOnError: true
2044
2039
  });
2045
- const projectConfigs = projectGraph_js.readProjectsConfigurationFromProjectGraph(projectGraph);
2040
+ const projectConfigs = projectGraph.readProjectsConfigurationFromProjectGraph(projectGraph$1);
2046
2041
  const workspaceRoot = chunkEOUDKHXD_cjs.findWorkspaceRootSafe(process.cwd());
2047
2042
  if (!workspaceRoot) {
2048
2043
  throw new Error(
@@ -2085,10 +2080,10 @@ var runReadme = async ({
2085
2080
  }
2086
2081
  };
2087
2082
  var runProjectReadme = async (projectName, { templates, output: output3, clean = true, prettier: prettier2 = true }) => {
2088
- const projectGraph = await projectGraph_js.createProjectGraphAsync({
2083
+ const projectGraph$1 = await projectGraph.createProjectGraphAsync({
2089
2084
  exitOnError: true
2090
2085
  });
2091
- const projectConfigs = projectGraph_js.readProjectsConfigurationFromProjectGraph(projectGraph);
2086
+ const projectConfigs = projectGraph.readProjectsConfigurationFromProjectGraph(projectGraph$1);
2092
2087
  const project = projectConfigs.projects[projectName];
2093
2088
  const inputFile = Path.join(project?.root ?? "./", "README.md");
2094
2089
  if (fs$1.existsSync(inputFile)) {
@@ -2751,7 +2746,7 @@ async function gitTag({
2751
2746
  return "";
2752
2747
  }
2753
2748
  try {
2754
- return await execCommand_js.execCommand("git", commandArgs);
2749
+ return await execCommand.execCommand("git", commandArgs);
2755
2750
  } catch (err) {
2756
2751
  throw new Error(`Unexpected error when creating tag ${tag}:
2757
2752
 
@@ -2788,7 +2783,7 @@ async function gitCommit({
2788
2783
  }
2789
2784
  let hasStagedFiles = false;
2790
2785
  try {
2791
- await execCommand_js.execCommand("git", ["diff-index", "--quiet", "HEAD", "--cached"]);
2786
+ await execCommand.execCommand("git", ["diff-index", "--quiet", "HEAD", "--cached"]);
2792
2787
  } catch {
2793
2788
  hasStagedFiles = true;
2794
2789
  }
@@ -2796,7 +2791,7 @@ async function gitCommit({
2796
2791
  logFn("\nNo staged files found. Skipping commit.");
2797
2792
  return;
2798
2793
  }
2799
- return execCommand_js.execCommand("git", commandArgs);
2794
+ return execCommand.execCommand("git", commandArgs);
2800
2795
  }
2801
2796
  async function commitChanges({
2802
2797
  changedFiles,
@@ -2850,7 +2845,7 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
2850
2845
  if (!tags.length) {
2851
2846
  return null;
2852
2847
  }
2853
- const interpolatedTagPattern = utils_js.interpolate(releaseTagPattern, {
2848
+ const interpolatedTagPattern = utils.interpolate(releaseTagPattern, {
2854
2849
  version: "%v%",
2855
2850
  projectName: "%p%",
2856
2851
  releaseGroupName: "%rg%",
@@ -5021,7 +5016,7 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
5021
5016
  }
5022
5017
  }
5023
5018
  } else {
5024
- const releaseGroupText = releaseGroupName !== config_js.IMPLICIT_DEFAULT_RELEASE_GROUP ? ` in release group "${releaseGroupName}" ` : " ";
5019
+ const releaseGroupText = releaseGroupName !== config$1.IMPLICIT_DEFAULT_RELEASE_GROUP ? ` in release group "${releaseGroupName}" ` : " ";
5025
5020
  projectLogger.buffer(
5026
5021
  `\u23E9 Skipping dependent updates as "updateDependents"${releaseGroupText}is not "auto"`
5027
5022
  );
@@ -5096,8 +5091,8 @@ var StormReleaseGroupProcessor = class _StormReleaseGroupProcessor extends relea
5096
5091
  }
5097
5092
  };
5098
5093
  }
5099
- const versionActions = this.#getVersionActionsForProject(projectName);
5100
- if (versionActions instanceof versionActions_js.NOOP_VERSION_ACTIONS) {
5094
+ const versionActions$1 = this.#getVersionActionsForProject(projectName);
5095
+ if (versionActions$1 instanceof versionActions.NOOP_VERSION_ACTIONS) {
5101
5096
  return {
5102
5097
  newVersionInput: "none",
5103
5098
  newVersionInputReason: "NOOP_VERSION_ACTIONS",
@@ -5672,7 +5667,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
5672
5667
  throw err;
5673
5668
  }
5674
5669
  await formatChangedFiles(this.tree);
5675
- printChanges_js.printAndFlushChanges(this.tree, !!options.dryRun);
5670
+ printChanges.printAndFlushChanges(this.tree, !!options.dryRun);
5676
5671
  const { changedFiles: changed, deletedFiles: deleted } = await processor.afterAllProjectsVersioned({
5677
5672
  ...this.releaseConfig.version.versionActionsOptions,
5678
5673
  ...options.versionActionsOptionsOverrides ?? {}