@storm-software/git-tools 2.115.8 → 2.115.10

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.115.6-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.115.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)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/bin/git.cjs CHANGED
@@ -3092,10 +3092,13 @@ function createAPI(overrideReleaseConfig) {
3092
3092
  projectsVersionData,
3093
3093
  commitMessage
3094
3094
  );
3095
+ const actualProjectsVersionData = Object.fromEntries(
3096
+ Object.entries(projectsVersionData).filter(([, data]) => data?.newVersion)
3097
+ );
3095
3098
  const gitTagValues = args.gitTag ?? nxReleaseConfig.changelog?.git.tag ? shared.createGitTagValues(
3096
3099
  releaseGroups,
3097
3100
  releaseGroupToFilteredProjects,
3098
- projectsVersionData
3101
+ actualProjectsVersionData
3099
3102
  ) : [];
3100
3103
  shared.handleDuplicateGitTags(gitTagValues);
3101
3104
  const postGitTasks = [];
@@ -3245,20 +3248,20 @@ ${contents}`);
3245
3248
  continue;
3246
3249
  }
3247
3250
  for (const project of releaseGroup.projects) {
3248
- if (!projectsVersionData[project]?.newVersion) {
3251
+ if (!actualProjectsVersionData[project]?.newVersion) {
3249
3252
  continue;
3250
3253
  }
3251
- const dependentProjects = (projectsVersionData[project].dependentProjects || []).map((dep) => {
3254
+ const dependentProjects = (actualProjectsVersionData[project].dependentProjects || []).map((dep) => {
3252
3255
  return {
3253
3256
  dependencyName: dep.source,
3254
- newVersion: projectsVersionData[dep.source]?.newVersion
3257
+ newVersion: actualProjectsVersionData[dep.source]?.newVersion
3255
3258
  };
3256
3259
  }).filter((b) => b.newVersion !== null);
3257
3260
  for (const dependent of dependentProjects) {
3258
3261
  const additionalDependencyBumpsForProject = (projectToAdditionalDependencyBumps.has(dependent.dependencyName) ? projectToAdditionalDependencyBumps.get(dependent.dependencyName) : []) ?? [];
3259
3262
  additionalDependencyBumpsForProject.push({
3260
3263
  dependencyName: project,
3261
- newVersion: projectsVersionData[project].newVersion
3264
+ newVersion: actualProjectsVersionData[project].newVersion
3262
3265
  });
3263
3266
  projectToAdditionalDependencyBumps.set(
3264
3267
  dependent.dependencyName,
@@ -3279,7 +3282,7 @@ ${contents}`);
3279
3282
  (project) => {
3280
3283
  return [
3281
3284
  project,
3282
- ...projectsVersionData[project]?.dependentProjects.map(
3285
+ ...actualProjectsVersionData[project]?.dependentProjects.map(
3283
3286
  (dep) => dep.source
3284
3287
  ) || []
3285
3288
  ];
@@ -3375,7 +3378,7 @@ ${contents}`);
3375
3378
  tree: tree$1,
3376
3379
  args,
3377
3380
  changes,
3378
- projectsVersionData,
3381
+ projectsVersionData: actualProjectsVersionData,
3379
3382
  releaseGroup,
3380
3383
  projects: [project],
3381
3384
  nxReleaseConfig,
@@ -3504,7 +3507,7 @@ ${contents}`);
3504
3507
  tree: tree$1,
3505
3508
  args,
3506
3509
  changes,
3507
- projectsVersionData,
3510
+ projectsVersionData: actualProjectsVersionData,
3508
3511
  releaseGroup,
3509
3512
  projects: projectNodes,
3510
3513
  nxReleaseConfig,
@@ -3659,7 +3662,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
3659
3662
  });
3660
3663
  latestCommit = await git.getCommitHash("HEAD");
3661
3664
  } else if ((args.stageChanges ?? nxReleaseConfig.changelog?.git.stageChanges) && changes.length) {
3662
- output.output.logSingleLine(`Staging changed files with git`);
3665
+ chunkXH6F7XTV_cjs.writeDebug(`Staging changed files with git`);
3663
3666
  await git.gitAdd({
3664
3667
  changedFiles,
3665
3668
  deletedFiles,
@@ -3668,7 +3671,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
3668
3671
  });
3669
3672
  }
3670
3673
  if (args.gitTag ?? nxReleaseConfig.changelog?.git.tag) {
3671
- output.output.logSingleLine(`Tagging commit with git`);
3674
+ chunkXH6F7XTV_cjs.writeDebug(`Tagging commit with git`);
3672
3675
  for (const tag of gitTagValues) {
3673
3676
  await gitTag({
3674
3677
  tag,
@@ -3680,7 +3683,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
3680
3683
  }
3681
3684
  }
3682
3685
  if (args.gitPush ?? nxReleaseConfig.changelog?.git.push) {
3683
- output.output.logSingleLine(`Pushing to git remote "${args.gitRemote}"`);
3686
+ chunkXH6F7XTV_cjs.writeDebug(`Pushing to git remote "${args.gitRemote}"`);
3684
3687
  await git.gitPush({
3685
3688
  gitRemote: args.gitRemote,
3686
3689
  dryRun: args.dryRun,
package/bin/git.js CHANGED
@@ -3075,10 +3075,13 @@ function createAPI(overrideReleaseConfig) {
3075
3075
  projectsVersionData,
3076
3076
  commitMessage
3077
3077
  );
3078
+ const actualProjectsVersionData = Object.fromEntries(
3079
+ Object.entries(projectsVersionData).filter(([, data]) => data?.newVersion)
3080
+ );
3078
3081
  const gitTagValues = args.gitTag ?? nxReleaseConfig.changelog?.git.tag ? createGitTagValues(
3079
3082
  releaseGroups,
3080
3083
  releaseGroupToFilteredProjects,
3081
- projectsVersionData
3084
+ actualProjectsVersionData
3082
3085
  ) : [];
3083
3086
  handleDuplicateGitTags(gitTagValues);
3084
3087
  const postGitTasks = [];
@@ -3228,20 +3231,20 @@ ${contents}`);
3228
3231
  continue;
3229
3232
  }
3230
3233
  for (const project of releaseGroup.projects) {
3231
- if (!projectsVersionData[project]?.newVersion) {
3234
+ if (!actualProjectsVersionData[project]?.newVersion) {
3232
3235
  continue;
3233
3236
  }
3234
- const dependentProjects = (projectsVersionData[project].dependentProjects || []).map((dep) => {
3237
+ const dependentProjects = (actualProjectsVersionData[project].dependentProjects || []).map((dep) => {
3235
3238
  return {
3236
3239
  dependencyName: dep.source,
3237
- newVersion: projectsVersionData[dep.source]?.newVersion
3240
+ newVersion: actualProjectsVersionData[dep.source]?.newVersion
3238
3241
  };
3239
3242
  }).filter((b) => b.newVersion !== null);
3240
3243
  for (const dependent of dependentProjects) {
3241
3244
  const additionalDependencyBumpsForProject = (projectToAdditionalDependencyBumps.has(dependent.dependencyName) ? projectToAdditionalDependencyBumps.get(dependent.dependencyName) : []) ?? [];
3242
3245
  additionalDependencyBumpsForProject.push({
3243
3246
  dependencyName: project,
3244
- newVersion: projectsVersionData[project].newVersion
3247
+ newVersion: actualProjectsVersionData[project].newVersion
3245
3248
  });
3246
3249
  projectToAdditionalDependencyBumps.set(
3247
3250
  dependent.dependencyName,
@@ -3262,7 +3265,7 @@ ${contents}`);
3262
3265
  (project) => {
3263
3266
  return [
3264
3267
  project,
3265
- ...projectsVersionData[project]?.dependentProjects.map(
3268
+ ...actualProjectsVersionData[project]?.dependentProjects.map(
3266
3269
  (dep) => dep.source
3267
3270
  ) || []
3268
3271
  ];
@@ -3358,7 +3361,7 @@ ${contents}`);
3358
3361
  tree,
3359
3362
  args,
3360
3363
  changes,
3361
- projectsVersionData,
3364
+ projectsVersionData: actualProjectsVersionData,
3362
3365
  releaseGroup,
3363
3366
  projects: [project],
3364
3367
  nxReleaseConfig,
@@ -3487,7 +3490,7 @@ ${contents}`);
3487
3490
  tree,
3488
3491
  args,
3489
3492
  changes,
3490
- projectsVersionData,
3493
+ projectsVersionData: actualProjectsVersionData,
3491
3494
  releaseGroup,
3492
3495
  projects: projectNodes,
3493
3496
  nxReleaseConfig,
@@ -3642,7 +3645,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
3642
3645
  });
3643
3646
  latestCommit = await getCommitHash("HEAD");
3644
3647
  } else if ((args.stageChanges ?? nxReleaseConfig.changelog?.git.stageChanges) && changes.length) {
3645
- output.logSingleLine(`Staging changed files with git`);
3648
+ writeDebug(`Staging changed files with git`);
3646
3649
  await gitAdd({
3647
3650
  changedFiles,
3648
3651
  deletedFiles,
@@ -3651,7 +3654,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
3651
3654
  });
3652
3655
  }
3653
3656
  if (args.gitTag ?? nxReleaseConfig.changelog?.git.tag) {
3654
- output.logSingleLine(`Tagging commit with git`);
3657
+ writeDebug(`Tagging commit with git`);
3655
3658
  for (const tag of gitTagValues) {
3656
3659
  await gitTag({
3657
3660
  tag,
@@ -3663,7 +3666,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
3663
3666
  }
3664
3667
  }
3665
3668
  if (args.gitPush ?? nxReleaseConfig.changelog?.git.push) {
3666
- output.logSingleLine(`Pushing to git remote "${args.gitRemote}"`);
3669
+ writeDebug(`Pushing to git remote "${args.gitRemote}"`);
3667
3670
  await gitPush({
3668
3671
  gitRemote: args.gitRemote,
3669
3672
  dryRun: args.dryRun,
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
+ var _chunkSXO5R5AGcjs = require('./chunk-SXO5R5AG.cjs');
3
4
 
4
5
 
5
- var _chunkPGN2XOUFcjs = require('./chunk-PGN2XOUF.cjs');
6
6
 
7
7
 
8
- var _chunkSXO5R5AGcjs = require('./chunk-SXO5R5AG.cjs');
8
+ var _chunkPGN2XOUFcjs = require('./chunk-PGN2XOUF.cjs');
9
9
 
10
10
 
11
11
 
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
+ import {
2
+ DEFAULT_COMMIT_CONFIG
3
+ } from "./chunk-OZ5QCRGG.js";
1
4
  import {
2
5
  DEFAULT_CONVENTIONAL_COMMITS_CONFIG,
3
6
  DEFAULT_RELEASE_CONFIG,
4
7
  DEFAULT_RELEASE_GROUP_CONFIG
5
8
  } from "./chunk-R3RXM6UC.js";
6
- import {
7
- DEFAULT_COMMIT_CONFIG
8
- } from "./chunk-OZ5QCRGG.js";
9
9
  import {
10
10
  COMMIT_TYPES,
11
11
  DEFAULT_COMMIT_MESSAGE_FORMAT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.115.8",
3
+ "version": "2.115.10",
4
4
  "type": "module",
5
5
  "description": "Tools for managing Git repositories within a Nx workspace.",
6
6
  "repository": {
@@ -221,8 +221,8 @@
221
221
  "@inquirer/prompts": "7.2.1",
222
222
  "@nx/devkit": "^21.4.1",
223
223
  "@nx/js": "^21.4.1",
224
- "@storm-software/config": "^1.128.7",
225
- "@storm-software/config-tools": "^1.180.8",
224
+ "@storm-software/config": "^1.128.9",
225
+ "@storm-software/config-tools": "^1.180.10",
226
226
  "@textlint/ast-node-types": "14.4.2",
227
227
  "@textlint/markdown-to-ast": "14.4.2",
228
228
  "anchor-markdown-header": "0.7.0",
@@ -251,5 +251,5 @@
251
251
  "tsup": "8.4.0"
252
252
  },
253
253
  "publishConfig": { "access": "public" },
254
- "gitHead": "4ae47f6ad886922f9e56642be8f868fb02b75554"
254
+ "gitHead": "8aea52bb5224498a26300aa258610643742e6e21"
255
255
  }