@storm-software/git-tools 2.29.0 → 2.30.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 2.30.0 (2024-07-22)
2
+
3
+
4
+ ### Features
5
+
6
+ - **eslint:** Added optional react rules to preset ([bc33a12d](https://github.com/storm-software/storm-ops/commit/bc33a12d))
7
+
8
+ ## 2.29.1 (2024-07-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ - **git-tools:** Resolved issue with version calculation during release ([97e23127](https://github.com/storm-software/storm-ops/commit/97e23127))
14
+
1
15
  ## 2.29.0 (2024-07-17)
2
16
 
3
17
  ### Features
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.29.0-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.29.1-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 -->
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
-
44
43
  ## Table of Contents
45
44
 
46
45
  - [Storm Git Tools](#storm-git-tools)
package/bin/git.js CHANGED
@@ -230815,7 +230815,7 @@ var StormConfigSchema = z2.object({
230815
230815
  ci: z2.boolean().default(true).describe(
230816
230816
  "An indicator specifying if the current environment is a CI environment"
230817
230817
  ),
230818
- workspaceRoot: z2.string().trim().optional().describe("The root directory of the workspace"),
230818
+ workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
230819
230819
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
230820
230820
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
230821
230821
  "The build will use these package patterns to determine if they should be external to the bundle"
@@ -236506,8 +236506,14 @@ async function releaseVersion(config2, args) {
236506
236506
  verbose: !!args.verbose,
236507
236507
  generatorOptions
236508
236508
  });
236509
- for (const f7 of changedFiles3) {
236510
- additionalChangedFiles.add(f7);
236509
+ if (Array.isArray(changedFiles3)) {
236510
+ for (const f7 of changedFiles3) {
236511
+ additionalChangedFiles.add(f7);
236512
+ }
236513
+ } else {
236514
+ for (const f7 of changedFiles3.changedFiles) {
236515
+ additionalChangedFiles.add(f7);
236516
+ }
236511
236517
  }
236512
236518
  });
236513
236519
  }
@@ -236534,18 +236540,18 @@ async function releaseVersion(config2, args) {
236534
236540
  };
236535
236541
  }
236536
236542
  if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
236537
- await commitChanges(
236538
- changedFiles2,
236539
- !!args.dryRun,
236540
- !!args.verbose,
236541
- createCommitMessageValues(
236543
+ await commitChanges({
236544
+ changedFiles: changedFiles2,
236545
+ isDryRun: !!args.dryRun,
236546
+ isVerbose: !!args.verbose,
236547
+ gitCommitMessages: createCommitMessageValues(
236542
236548
  releaseGroups,
236543
236549
  releaseGroupToFilteredProjects,
236544
236550
  versionData,
236545
236551
  commitMessage
236546
236552
  ),
236547
- args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
236548
- );
236553
+ gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
236554
+ });
236549
236555
  } else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
236550
236556
  writeInfo("Staging changed files with git", config2);
236551
236557
  await gitAdd({
@@ -236613,8 +236619,14 @@ async function releaseVersion(config2, args) {
236613
236619
  verbose: !!args.verbose,
236614
236620
  generatorOptions
236615
236621
  });
236616
- for (const f7 of changedFiles2) {
236617
- additionalChangedFiles.add(f7);
236622
+ if (Array.isArray(changedFiles2)) {
236623
+ for (const f7 of changedFiles2) {
236624
+ additionalChangedFiles.add(f7);
236625
+ }
236626
+ } else {
236627
+ for (const f7 of changedFiles2.changedFiles) {
236628
+ additionalChangedFiles.add(f7);
236629
+ }
236618
236630
  }
236619
236631
  });
236620
236632
  }
@@ -236632,7 +236644,7 @@ async function releaseVersion(config2, args) {
236632
236644
  let workspaceVersion = void 0;
236633
236645
  if (releaseGroups.length === 1) {
236634
236646
  const releaseGroup = releaseGroups[0];
236635
- if (releaseGroup.projectsRelationship === "fixed") {
236647
+ if (releaseGroup?.projectsRelationship === "fixed") {
236636
236648
  const releaseGroupProjectNames = Array.from(
236637
236649
  releaseGroupToFilteredProjects.get(releaseGroup) ?? []
236638
236650
  );
@@ -236652,18 +236664,18 @@ async function releaseVersion(config2, args) {
236652
236664
  };
236653
236665
  }
236654
236666
  if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
236655
- await commitChanges(
236667
+ await commitChanges({
236656
236668
  changedFiles,
236657
- !!args.dryRun,
236658
- !!args.verbose,
236659
- createCommitMessageValues(
236669
+ isDryRun: !!args.dryRun,
236670
+ isVerbose: !!args.verbose,
236671
+ gitCommitMessages: createCommitMessageValues(
236660
236672
  releaseGroups,
236661
236673
  releaseGroupToFilteredProjects,
236662
236674
  versionData,
236663
236675
  commitMessage
236664
236676
  ),
236665
- args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
236666
- );
236677
+ gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
236678
+ });
236667
236679
  } else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
236668
236680
  writeInfo("Staging changed files with git", config2);
236669
236681
  await gitAdd({
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
67132
67132
  ci: z2.boolean().default(true).describe(
67133
67133
  "An indicator specifying if the current environment is a CI environment"
67134
67134
  ),
67135
- workspaceRoot: z2.string().trim().optional().describe("The root directory of the workspace"),
67135
+ workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
67136
67136
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
67137
67137
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
67138
67138
  "The build will use these package patterns to determine if they should be external to the bundle"
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
67132
67132
  ci: z2.boolean().default(true).describe(
67133
67133
  "An indicator specifying if the current environment is a CI environment"
67134
67134
  ),
67135
- workspaceRoot: z2.string().trim().optional().describe("The root directory of the workspace"),
67135
+ workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
67136
67136
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
67137
67137
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
67138
67138
  "The build will use these package patterns to determine if they should be external to the bundle"
package/bin/post-merge.js CHANGED
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
67132
67132
  ci: z2.boolean().default(true).describe(
67133
67133
  "An indicator specifying if the current environment is a CI environment"
67134
67134
  ),
67135
- workspaceRoot: z2.string().trim().optional().describe("The root directory of the workspace"),
67135
+ workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
67136
67136
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
67137
67137
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
67138
67138
  "The build will use these package patterns to determine if they should be external to the bundle"
package/bin/pre-commit.js CHANGED
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
67132
67132
  ci: z2.boolean().default(true).describe(
67133
67133
  "An indicator specifying if the current environment is a CI environment"
67134
67134
  ),
67135
- workspaceRoot: z2.string().trim().optional().describe("The root directory of the workspace"),
67135
+ workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
67136
67136
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
67137
67137
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
67138
67138
  "The build will use these package patterns to determine if they should be external to the bundle"
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
67132
67132
  ci: z2.boolean().default(true).describe(
67133
67133
  "An indicator specifying if the current environment is a CI environment"
67134
67134
  ),
67135
- workspaceRoot: z2.string().trim().optional().describe("The root directory of the workspace"),
67135
+ workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
67136
67136
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
67137
67137
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
67138
67138
  "The build will use these package patterns to determine if they should be external to the bundle"
package/bin/pre-push.js CHANGED
@@ -67137,7 +67137,7 @@ var StormConfigSchema = z2.object({
67137
67137
  ci: z2.boolean().default(true).describe(
67138
67138
  "An indicator specifying if the current environment is a CI environment"
67139
67139
  ),
67140
- workspaceRoot: z2.string().trim().optional().describe("The root directory of the workspace"),
67140
+ workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
67141
67141
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
67142
67142
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
67143
67143
  "The build will use these package patterns to determine if they should be external to the bundle"
package/bin/prepare.js CHANGED
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
67132
67132
  ci: z2.boolean().default(true).describe(
67133
67133
  "An indicator specifying if the current environment is a CI environment"
67134
67134
  ),
67135
- workspaceRoot: z2.string().trim().optional().describe("The root directory of the workspace"),
67135
+ workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
67136
67136
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
67137
67137
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
67138
67138
  "The build will use these package patterns to determine if they should be external to the bundle"
@@ -67132,7 +67132,7 @@ var StormConfigSchema = z2.object({
67132
67132
  ci: z2.boolean().default(true).describe(
67133
67133
  "An indicator specifying if the current environment is a CI environment"
67134
67134
  ),
67135
- workspaceRoot: z2.string().trim().optional().describe("The root directory of the workspace"),
67135
+ workspaceRoot: z2.string().trim().default("").describe("The root directory of the workspace"),
67136
67136
  packageDirectory: z2.string().trim().optional().describe("The root directory of the package"),
67137
67137
  externalPackagePatterns: z2.array(z2.string()).default([]).describe(
67138
67138
  "The build will use these package patterns to determine if they should be external to the bundle"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.29.0",
3
+ "version": "2.30.0",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing various git tools used in Storm workspaces.",
6
6
  "repository": {
package/src/cli/index.js CHANGED
@@ -165322,7 +165322,7 @@ var StormConfigSchema = z.object({
165322
165322
  ci: z.boolean().default(true).describe(
165323
165323
  "An indicator specifying if the current environment is a CI environment"
165324
165324
  ),
165325
- workspaceRoot: z.string().trim().optional().describe("The root directory of the workspace"),
165325
+ workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
165326
165326
  packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
165327
165327
  externalPackagePatterns: z.array(z.string()).default([]).describe(
165328
165328
  "The build will use these package patterns to determine if they should be external to the bundle"
@@ -170401,8 +170401,14 @@ async function releaseVersion(config2, args) {
170401
170401
  verbose: !!args.verbose,
170402
170402
  generatorOptions
170403
170403
  });
170404
- for (const f7 of changedFiles3) {
170405
- additionalChangedFiles.add(f7);
170404
+ if (Array.isArray(changedFiles3)) {
170405
+ for (const f7 of changedFiles3) {
170406
+ additionalChangedFiles.add(f7);
170407
+ }
170408
+ } else {
170409
+ for (const f7 of changedFiles3.changedFiles) {
170410
+ additionalChangedFiles.add(f7);
170411
+ }
170406
170412
  }
170407
170413
  });
170408
170414
  }
@@ -170429,18 +170435,18 @@ async function releaseVersion(config2, args) {
170429
170435
  };
170430
170436
  }
170431
170437
  if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
170432
- await commitChanges(
170433
- changedFiles2,
170434
- !!args.dryRun,
170435
- !!args.verbose,
170436
- createCommitMessageValues(
170438
+ await commitChanges({
170439
+ changedFiles: changedFiles2,
170440
+ isDryRun: !!args.dryRun,
170441
+ isVerbose: !!args.verbose,
170442
+ gitCommitMessages: createCommitMessageValues(
170437
170443
  releaseGroups,
170438
170444
  releaseGroupToFilteredProjects,
170439
170445
  versionData,
170440
170446
  commitMessage
170441
170447
  ),
170442
- args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
170443
- );
170448
+ gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
170449
+ });
170444
170450
  } else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
170445
170451
  writeInfo("Staging changed files with git", config2);
170446
170452
  await gitAdd({
@@ -170508,8 +170514,14 @@ async function releaseVersion(config2, args) {
170508
170514
  verbose: !!args.verbose,
170509
170515
  generatorOptions
170510
170516
  });
170511
- for (const f7 of changedFiles2) {
170512
- additionalChangedFiles.add(f7);
170517
+ if (Array.isArray(changedFiles2)) {
170518
+ for (const f7 of changedFiles2) {
170519
+ additionalChangedFiles.add(f7);
170520
+ }
170521
+ } else {
170522
+ for (const f7 of changedFiles2.changedFiles) {
170523
+ additionalChangedFiles.add(f7);
170524
+ }
170513
170525
  }
170514
170526
  });
170515
170527
  }
@@ -170527,7 +170539,7 @@ async function releaseVersion(config2, args) {
170527
170539
  let workspaceVersion = void 0;
170528
170540
  if (releaseGroups.length === 1) {
170529
170541
  const releaseGroup = releaseGroups[0];
170530
- if (releaseGroup.projectsRelationship === "fixed") {
170542
+ if (releaseGroup?.projectsRelationship === "fixed") {
170531
170543
  const releaseGroupProjectNames = Array.from(
170532
170544
  releaseGroupToFilteredProjects.get(releaseGroup) ?? []
170533
170545
  );
@@ -170547,18 +170559,18 @@ async function releaseVersion(config2, args) {
170547
170559
  };
170548
170560
  }
170549
170561
  if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
170550
- await commitChanges(
170562
+ await commitChanges({
170551
170563
  changedFiles,
170552
- !!args.dryRun,
170553
- !!args.verbose,
170554
- createCommitMessageValues(
170564
+ isDryRun: !!args.dryRun,
170565
+ isVerbose: !!args.verbose,
170566
+ gitCommitMessages: createCommitMessageValues(
170555
170567
  releaseGroups,
170556
170568
  releaseGroupToFilteredProjects,
170557
170569
  versionData,
170558
170570
  commitMessage
170559
170571
  ),
170560
- args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
170561
- );
170572
+ gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
170573
+ });
170562
170574
  } else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
170563
170575
  writeInfo("Staging changed files with git", config2);
170564
170576
  await gitAdd({
@@ -37375,7 +37375,7 @@ var StormConfigSchema = z.object({
37375
37375
  ci: z.boolean().default(true).describe(
37376
37376
  "An indicator specifying if the current environment is a CI environment"
37377
37377
  ),
37378
- workspaceRoot: z.string().trim().optional().describe("The root directory of the workspace"),
37378
+ workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
37379
37379
  packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
37380
37380
  externalPackagePatterns: z.array(z.string()).default([]).describe(
37381
37381
  "The build will use these package patterns to determine if they should be external to the bundle"
@@ -37322,7 +37322,7 @@ var StormConfigSchema = z.object({
37322
37322
  ci: z.boolean().default(true).describe(
37323
37323
  "An indicator specifying if the current environment is a CI environment"
37324
37324
  ),
37325
- workspaceRoot: z.string().trim().optional().describe("The root directory of the workspace"),
37325
+ workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
37326
37326
  packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
37327
37327
  externalPackagePatterns: z.array(z.string()).default([]).describe(
37328
37328
  "The build will use these package patterns to determine if they should be external to the bundle"
package/src/index.js CHANGED
@@ -165322,7 +165322,7 @@ var StormConfigSchema = z.object({
165322
165322
  ci: z.boolean().default(true).describe(
165323
165323
  "An indicator specifying if the current environment is a CI environment"
165324
165324
  ),
165325
- workspaceRoot: z.string().trim().optional().describe("The root directory of the workspace"),
165325
+ workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
165326
165326
  packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
165327
165327
  externalPackagePatterns: z.array(z.string()).default([]).describe(
165328
165328
  "The build will use these package patterns to determine if they should be external to the bundle"
@@ -170509,8 +170509,14 @@ async function releaseVersion(config2, args) {
170509
170509
  verbose: !!args.verbose,
170510
170510
  generatorOptions
170511
170511
  });
170512
- for (const f7 of changedFiles3) {
170513
- additionalChangedFiles.add(f7);
170512
+ if (Array.isArray(changedFiles3)) {
170513
+ for (const f7 of changedFiles3) {
170514
+ additionalChangedFiles.add(f7);
170515
+ }
170516
+ } else {
170517
+ for (const f7 of changedFiles3.changedFiles) {
170518
+ additionalChangedFiles.add(f7);
170519
+ }
170514
170520
  }
170515
170521
  });
170516
170522
  }
@@ -170537,18 +170543,18 @@ async function releaseVersion(config2, args) {
170537
170543
  };
170538
170544
  }
170539
170545
  if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
170540
- await commitChanges(
170541
- changedFiles2,
170542
- !!args.dryRun,
170543
- !!args.verbose,
170544
- createCommitMessageValues(
170546
+ await commitChanges({
170547
+ changedFiles: changedFiles2,
170548
+ isDryRun: !!args.dryRun,
170549
+ isVerbose: !!args.verbose,
170550
+ gitCommitMessages: createCommitMessageValues(
170545
170551
  releaseGroups,
170546
170552
  releaseGroupToFilteredProjects,
170547
170553
  versionData,
170548
170554
  commitMessage
170549
170555
  ),
170550
- args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
170551
- );
170556
+ gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
170557
+ });
170552
170558
  } else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
170553
170559
  writeInfo("Staging changed files with git", config2);
170554
170560
  await gitAdd({
@@ -170616,8 +170622,14 @@ async function releaseVersion(config2, args) {
170616
170622
  verbose: !!args.verbose,
170617
170623
  generatorOptions
170618
170624
  });
170619
- for (const f7 of changedFiles2) {
170620
- additionalChangedFiles.add(f7);
170625
+ if (Array.isArray(changedFiles2)) {
170626
+ for (const f7 of changedFiles2) {
170627
+ additionalChangedFiles.add(f7);
170628
+ }
170629
+ } else {
170630
+ for (const f7 of changedFiles2.changedFiles) {
170631
+ additionalChangedFiles.add(f7);
170632
+ }
170621
170633
  }
170622
170634
  });
170623
170635
  }
@@ -170635,7 +170647,7 @@ async function releaseVersion(config2, args) {
170635
170647
  let workspaceVersion = void 0;
170636
170648
  if (releaseGroups.length === 1) {
170637
170649
  const releaseGroup = releaseGroups[0];
170638
- if (releaseGroup.projectsRelationship === "fixed") {
170650
+ if (releaseGroup?.projectsRelationship === "fixed") {
170639
170651
  const releaseGroupProjectNames = Array.from(
170640
170652
  releaseGroupToFilteredProjects.get(releaseGroup) ?? []
170641
170653
  );
@@ -170655,18 +170667,18 @@ async function releaseVersion(config2, args) {
170655
170667
  };
170656
170668
  }
170657
170669
  if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
170658
- await commitChanges(
170670
+ await commitChanges({
170659
170671
  changedFiles,
170660
- !!args.dryRun,
170661
- !!args.verbose,
170662
- createCommitMessageValues(
170672
+ isDryRun: !!args.dryRun,
170673
+ isVerbose: !!args.verbose,
170674
+ gitCommitMessages: createCommitMessageValues(
170663
170675
  releaseGroups,
170664
170676
  releaseGroupToFilteredProjects,
170665
170677
  versionData,
170666
170678
  commitMessage
170667
170679
  ),
170668
- args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
170669
- );
170680
+ gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
170681
+ });
170670
170682
  } else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
170671
170683
  writeInfo("Staging changed files with git", config2);
170672
170684
  await gitAdd({
@@ -5785,7 +5785,7 @@ var StormConfigSchema = z.object({
5785
5785
  ci: z.boolean().default(true).describe(
5786
5786
  "An indicator specifying if the current environment is a CI environment"
5787
5787
  ),
5788
- workspaceRoot: z.string().trim().optional().describe("The root directory of the workspace"),
5788
+ workspaceRoot: z.string().trim().default("").describe("The root directory of the workspace"),
5789
5789
  packageDirectory: z.string().trim().optional().describe("The root directory of the package"),
5790
5790
  externalPackagePatterns: z.array(z.string()).default([]).describe(
5791
5791
  "The build will use these package patterns to determine if they should be external to the bundle"
@@ -6186,8 +6186,14 @@ async function releaseVersion(config, args) {
6186
6186
  verbose: !!args.verbose,
6187
6187
  generatorOptions
6188
6188
  });
6189
- for (const f of changedFiles3) {
6190
- additionalChangedFiles.add(f);
6189
+ if (Array.isArray(changedFiles3)) {
6190
+ for (const f of changedFiles3) {
6191
+ additionalChangedFiles.add(f);
6192
+ }
6193
+ } else {
6194
+ for (const f of changedFiles3.changedFiles) {
6195
+ additionalChangedFiles.add(f);
6196
+ }
6191
6197
  }
6192
6198
  });
6193
6199
  }
@@ -6214,18 +6220,18 @@ async function releaseVersion(config, args) {
6214
6220
  };
6215
6221
  }
6216
6222
  if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
6217
- await commitChanges(
6218
- changedFiles2,
6219
- !!args.dryRun,
6220
- !!args.verbose,
6221
- createCommitMessageValues(
6223
+ await commitChanges({
6224
+ changedFiles: changedFiles2,
6225
+ isDryRun: !!args.dryRun,
6226
+ isVerbose: !!args.verbose,
6227
+ gitCommitMessages: createCommitMessageValues(
6222
6228
  releaseGroups,
6223
6229
  releaseGroupToFilteredProjects,
6224
6230
  versionData,
6225
6231
  commitMessage
6226
6232
  ),
6227
- args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
6228
- );
6233
+ gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
6234
+ });
6229
6235
  } else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
6230
6236
  writeInfo("Staging changed files with git", config);
6231
6237
  await gitAdd({
@@ -6293,8 +6299,14 @@ async function releaseVersion(config, args) {
6293
6299
  verbose: !!args.verbose,
6294
6300
  generatorOptions
6295
6301
  });
6296
- for (const f of changedFiles2) {
6297
- additionalChangedFiles.add(f);
6302
+ if (Array.isArray(changedFiles2)) {
6303
+ for (const f of changedFiles2) {
6304
+ additionalChangedFiles.add(f);
6305
+ }
6306
+ } else {
6307
+ for (const f of changedFiles2.changedFiles) {
6308
+ additionalChangedFiles.add(f);
6309
+ }
6298
6310
  }
6299
6311
  });
6300
6312
  }
@@ -6312,7 +6324,7 @@ async function releaseVersion(config, args) {
6312
6324
  let workspaceVersion = void 0;
6313
6325
  if (releaseGroups.length === 1) {
6314
6326
  const releaseGroup = releaseGroups[0];
6315
- if (releaseGroup.projectsRelationship === "fixed") {
6327
+ if (releaseGroup?.projectsRelationship === "fixed") {
6316
6328
  const releaseGroupProjectNames = Array.from(
6317
6329
  releaseGroupToFilteredProjects.get(releaseGroup) ?? []
6318
6330
  );
@@ -6332,18 +6344,18 @@ async function releaseVersion(config, args) {
6332
6344
  };
6333
6345
  }
6334
6346
  if (args.gitCommit ?? nxReleaseConfig?.version.git.commit) {
6335
- await commitChanges(
6347
+ await commitChanges({
6336
6348
  changedFiles,
6337
- !!args.dryRun,
6338
- !!args.verbose,
6339
- createCommitMessageValues(
6349
+ isDryRun: !!args.dryRun,
6350
+ isVerbose: !!args.verbose,
6351
+ gitCommitMessages: createCommitMessageValues(
6340
6352
  releaseGroups,
6341
6353
  releaseGroupToFilteredProjects,
6342
6354
  versionData,
6343
6355
  commitMessage
6344
6356
  ),
6345
- args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
6346
- );
6357
+ gitCommitArgs: args.gitCommitArgs || nxReleaseConfig?.version.git.commitArgs
6358
+ });
6347
6359
  } else if (args.stageChanges ?? nxReleaseConfig?.version.git.stageChanges) {
6348
6360
  writeInfo("Staging changed files with git", config);
6349
6361
  await gitAdd({