@storm-software/git-tools 2.97.2 → 2.99.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/bin/git.cjs CHANGED
@@ -21,7 +21,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
21
21
 
22
22
 
23
23
 
24
- var _chunkLFH4CIZMcjs = require('./chunk-LFH4CIZM.cjs');
24
+ var _chunkSBZRK235cjs = require('./chunk-SBZRK235.cjs');
25
25
 
26
26
 
27
27
  var _chunkP2CHIYIKcjs = require('./chunk-P2CHIYIK.cjs');
@@ -3264,7 +3264,7 @@ var require_wrap_ansi = _chunkKK4YC43Scjs.__commonJS.call(void 0, {
3264
3264
  _chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
3265
3265
  var stringWidth = require_string_width();
3266
3266
  var stripAnsi2 = require_strip_ansi();
3267
- var ansiStyles2 = _chunkLFH4CIZMcjs.require_ansi_styles.call(void 0, );
3267
+ var ansiStyles2 = _chunkSBZRK235cjs.require_ansi_styles.call(void 0, );
3268
3268
  var ESCAPES2 = /* @__PURE__ */ new Set([
3269
3269
  "\x1B",
3270
3270
  "\x9B"
@@ -15606,7 +15606,7 @@ var require_node = _chunkKK4YC43Scjs.__commonJS.call(void 0, {
15606
15606
  1
15607
15607
  ];
15608
15608
  try {
15609
- const supportsColor2 = _chunkLFH4CIZMcjs.require_supports_color.call(void 0, );
15609
+ const supportsColor2 = _chunkSBZRK235cjs.require_supports_color.call(void 0, );
15610
15610
  if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
15611
15611
  exports.colors = [
15612
15612
  20,
@@ -67098,12 +67098,12 @@ var getRuleFromScopeEnum = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0,
67098
67098
  // src/commitlint/run.ts
67099
67099
  var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
67100
67100
  var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (config, params) => {
67101
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
67101
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
67102
67102
  let commitMessage;
67103
67103
  if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
67104
67104
  commitMessage = params.message;
67105
67105
  } else {
67106
- const commitFile = _chunkLFH4CIZMcjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
67106
+ const commitFile = _chunkSBZRK235cjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
67107
67107
  if (_fs.existsSync.call(void 0, commitFile)) {
67108
67108
  commitMessage = await _asyncOptionalChain([(await _promises.readFile.call(void 0, commitFile, "utf8")), 'optionalAccess', async _81 => _81.trim, 'call', async _82 => _82()]);
67109
67109
  }
@@ -67115,19 +67115,19 @@ var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async
67115
67115
  if (upstreamRemote) {
67116
67116
  const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _83 => _83.split, 'call', _84 => _84(" "), 'access', _85 => _85[0], 'optionalAccess', _86 => _86.trim, 'call', _87 => _87()]);
67117
67117
  if (!upstreamRemoteIdentifier) {
67118
- _chunkLFH4CIZMcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
67118
+ _chunkSBZRK235cjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
67119
67119
  return;
67120
67120
  }
67121
- _chunkLFH4CIZMcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
67121
+ _chunkSBZRK235cjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
67122
67122
  const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
67123
67123
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
67124
67124
  } else {
67125
- _chunkLFH4CIZMcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
67125
+ _chunkSBZRK235cjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
67126
67126
  return;
67127
67127
  }
67128
67128
  commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
67129
67129
  if (!commitMessage) {
67130
- _chunkLFH4CIZMcjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
67130
+ _chunkSBZRK235cjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
67131
67131
  return;
67132
67132
  }
67133
67133
  }
@@ -67145,7 +67145,7 @@ var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async
67145
67145
  helpUrl: commitlintConfig.helpUrl
67146
67146
  });
67147
67147
  if (!matchCommit || report.errors.length || report.warnings.length) {
67148
- _chunkLFH4CIZMcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
67148
+ _chunkSBZRK235cjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
67149
67149
  } else {
67150
67150
  let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
67151
67151
  errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
@@ -68339,7 +68339,7 @@ var createState = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (c
68339
68339
  answers: {}
68340
68340
  };
68341
68341
  } else {
68342
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
68342
+ _chunkSBZRK235cjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
68343
68343
  let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
68344
68344
  if (_optionalChain([commitizenConfig, 'optionalAccess', _93 => _93.default])) {
68345
68345
  commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _94 => _94.default]);
@@ -68380,7 +68380,7 @@ var createState = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (c
68380
68380
  }
68381
68381
  if (project) {
68382
68382
  let description = `${project.name} - ${project.root}`;
68383
- const packageJsonPath = _chunkLFH4CIZMcjs.joinPaths.call(void 0, project.root, "package.json");
68383
+ const packageJsonPath = _chunkSBZRK235cjs.joinPaths.call(void 0, project.root, "package.json");
68384
68384
  if (await hfs.isFile(packageJsonPath)) {
68385
68385
  const packageJson = await hfs.json(packageJsonPath);
68386
68386
  description = packageJson.description || description;
@@ -68454,10 +68454,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
68454
68454
 
68455
68455
  // src/commit/run.ts
68456
68456
  var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
68457
- const config = await _chunkLFH4CIZMcjs.getConfig.call(void 0, );
68457
+ const config = await _chunkSBZRK235cjs.getConfig.call(void 0, );
68458
68458
  const state = await createState(config, commitizenFile);
68459
68459
  if (dryRun) {
68460
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Running in dry mode.", config);
68460
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "Running in dry mode.", config);
68461
68461
  }
68462
68462
  console.log(chalk_template_default`
68463
68463
  {bold.#999999 ----------------------------------------}
@@ -68467,7 +68467,7 @@ var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (com
68467
68467
  `);
68468
68468
  state.answers = await askQuestions(state);
68469
68469
  const message2 = formatCommitMessage(state);
68470
- const commitMsgFile = _chunkLFH4CIZMcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
68470
+ const commitMsgFile = _chunkSBZRK235cjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
68471
68471
  console.log(chalk_template_default`
68472
68472
  {bold.#999999 ----------------------------------------}
68473
68473
 
@@ -68491,8 +68491,8 @@ var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (com
68491
68491
  ]);
68492
68492
  const command = (0, import_any_shell_escape.default)(commandItems);
68493
68493
  if (dryRun) {
68494
- _chunkLFH4CIZMcjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
68495
- _chunkLFH4CIZMcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
68494
+ _chunkSBZRK235cjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
68495
+ _chunkSBZRK235cjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
68496
68496
  } else {
68497
68497
  await _promises2.default.writeFile(commitMsgFile, message2);
68498
68498
  _chunkFNIN2HF7cjs.run.call(void 0, config, command);
@@ -80885,7 +80885,7 @@ var _nxjsonjs = require('nx/src/config/nx-json.js');
80885
80885
 
80886
80886
  // src/release/changelog.ts
80887
80887
  _chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
80888
- var chalk2 = _chunkKK4YC43Scjs.__toESM.call(void 0, _chunkLFH4CIZMcjs.require_source.call(void 0, ), 1);
80888
+ var chalk2 = _chunkKK4YC43Scjs.__toESM.call(void 0, _chunkSBZRK235cjs.require_source.call(void 0, ), 1);
80889
80889
  var import_enquirer = _chunkKK4YC43Scjs.__toESM.call(void 0, require_enquirer(), 1);
80890
80890
  var import_semver2 = _chunkKK4YC43Scjs.__toESM.call(void 0, require_semver2(), 1);
80891
80891
  var import_tmp = _chunkKK4YC43Scjs.__toESM.call(void 0, require_tmp2(), 1);
@@ -80928,7 +80928,7 @@ async function generateChangelogContent(releaseVersion2, filepath, newContent, c
80928
80928
  const changelogReleases = parseChangelogMarkdown(changelogContents).releases;
80929
80929
  const existingVersionToUpdate = changelogReleases.find((r) => r.version === releaseVersion2.rawVersion);
80930
80930
  if (existingVersionToUpdate) {
80931
- changelogContents = changelogContents.replace(`## ${generateChangelogTitle(releaseVersion2.rawVersion, project, false, workspaceConfig)}
80931
+ changelogContents = changelogContents.replace(`## ${generateChangelogTitle(releaseVersion2.rawVersion, project, workspaceConfig)}
80932
80932
 
80933
80933
 
80934
80934
  ${existingVersionToUpdate.body}`, newContent);
@@ -80951,16 +80951,11 @@ var titleCase = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (input) =>
80951
80951
  }
80952
80952
  return input.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => s ? s.toLowerCase().charAt(0).toUpperCase() + s.toLowerCase().slice(1) : s).join(" ");
80953
80953
  }, "titleCase");
80954
- function generateChangelogTitle(version, project, excludeDate = false, workspaceConfig) {
80955
- if (!_optionalChain([workspaceConfig, 'optionalAccess', _185 => _185.repository]) || !project) {
80954
+ function generateChangelogTitle(version, project, workspaceConfig) {
80955
+ if (!_optionalChain([workspaceConfig, 'optionalAccess', _185 => _185.name]) || !project) {
80956
80956
  return version;
80957
80957
  }
80958
- let maybeDateStr = "";
80959
- if (excludeDate !== false) {
80960
- const dateStr = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
80961
- maybeDateStr = ` (${dateStr})`;
80962
- }
80963
- return `[${version}](${workspaceConfig.repository}/releases/tag/${project}%40${version})${maybeDateStr}`;
80958
+ return `[${version}](https://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${project}%40${version}) (${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)})`;
80964
80959
  }
80965
80960
  _chunkKK4YC43Scjs.__name.call(void 0, generateChangelogTitle, "generateChangelogTitle");
80966
80961
  function parseChangelogMarkdown(contents) {
@@ -80971,7 +80966,7 @@ function parseChangelogMarkdown(contents) {
80971
80966
  const releases = [];
80972
80967
  for (let i = 0; i < headings.length; i++) {
80973
80968
  const heading = headings[i];
80974
- if (!heading || heading.length < 2) {
80969
+ if (!heading) {
80975
80970
  continue;
80976
80971
  }
80977
80972
  const nextHeading = headings[i + 1];
@@ -84460,8 +84455,8 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
84460
84455
  super(config);_class13.prototype.__init27.call(this);;
84461
84456
  }
84462
84457
  async render() {
84463
- this.workspaceConfig = await _chunkLFH4CIZMcjs.getWorkspaceConfig.call(void 0, );
84464
- return super.render();
84458
+ this.workspaceConfig = await _chunkSBZRK235cjs.getWorkspaceConfig.call(void 0, );
84459
+ return await super.render();
84465
84460
  }
84466
84461
  preprocessChanges() {
84467
84462
  this.relevantChanges = [
@@ -84511,23 +84506,20 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
84511
84506
  }
84512
84507
  }
84513
84508
  /**
84514
- * Determines if the changelog entry should be rendered as empty.
84515
- * This is the case when there are no relevant changes, breaking changes,
84516
- * or dependency bumps.
84509
+ * Determines if the changelog entry should be rendered as empty. This is the case when there are no relevant changes, breaking changes, or dependency bumps.
84517
84510
  */
84518
- shouldRenderEmptyEntry() {
84519
- return true;
84520
- }
84511
+ // protected override shouldRenderEmptyEntry(): boolean {
84512
+ // return true;
84513
+ // }
84521
84514
  renderVersionTitle() {
84522
84515
  const isMajorVersion = `${(0, import_semver.major)(this.changelogEntryVersion)}.0.0` === this.changelogEntryVersion.replace(/^v/, "");
84523
- return isMajorVersion ? `# ${generateChangelogTitle(this.changelogEntryVersion, this.project, false, this.workspaceConfig)}` : `## ${generateChangelogTitle(this.changelogEntryVersion, this.project, false, this.workspaceConfig)}`;
84516
+ return isMajorVersion ? `# ${generateChangelogTitle(this.changelogEntryVersion, this.project, this.workspaceConfig)}` : `## ${generateChangelogTitle(this.changelogEntryVersion, this.project, this.workspaceConfig)}`;
84524
84517
  }
84525
84518
  renderBreakingChanges() {
84526
- const uniqueBreakingChanges = Array.from(new Set(this.breakingChanges));
84527
84519
  return [
84528
84520
  "### Breaking Changes",
84529
84521
  "",
84530
- ...uniqueBreakingChanges
84522
+ ...Array.from(new Set(this.breakingChanges))
84531
84523
  ];
84532
84524
  }
84533
84525
  renderDependencyBumps() {
@@ -84637,7 +84629,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
84637
84629
  // src/release/changelog.ts
84638
84630
  function createAPI(overrideReleaseConfig) {
84639
84631
  return /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async function releaseChangelog(args) {
84640
- const workspaceConfig = await _chunkLFH4CIZMcjs.getWorkspaceConfig.call(void 0, );
84632
+ const workspaceConfig = await _chunkSBZRK235cjs.getWorkspaceConfig.call(void 0, );
84641
84633
  const projectGraph = await _projectgraph.createProjectGraphAsync.call(void 0, {
84642
84634
  exitOnError: true
84643
84635
  });
@@ -84801,11 +84793,16 @@ function createAPI(overrideReleaseConfig) {
84801
84793
  });
84802
84794
  if (workspaceChangelog && shouldCreateGitHubRelease(nxReleaseConfig.changelog.workspaceChangelog, args.createRelease)) {
84803
84795
  postGitTasks.push(async (latestCommit) => {
84804
- _output.output.logSingleLine(`Creating GitHub Release`);
84805
- await _github.createOrUpdateGithubRelease.call(void 0, nxReleaseConfig.changelog.workspaceChangelog ? nxReleaseConfig.changelog.workspaceChangelog.createRelease : _config3.defaultCreateReleaseProvider, workspaceChangelog.releaseVersion, formatGithubReleaseNotes(workspaceChangelog.contents, workspaceConfig), latestCommit, {
84796
+ const contents = formatGithubReleaseNotes(workspaceChangelog.releaseVersion, workspaceChangelog.contents, null, workspaceConfig);
84797
+ _output.output.logSingleLine(`Creating GitHub Release
84798
+
84799
+ ${contents}`);
84800
+ await _github.createOrUpdateGithubRelease.call(void 0, nxReleaseConfig.changelog.workspaceChangelog ? nxReleaseConfig.changelog.workspaceChangelog.createRelease : _config3.defaultCreateReleaseProvider, workspaceChangelog.releaseVersion, contents, latestCommit, {
84806
84801
  dryRun: !!args.dryRun
84807
84802
  });
84808
84803
  });
84804
+ } else {
84805
+ _output.output.logSingleLine(`Skipping GitHub Release for workspace changelog as it is disabled in the release group configuration`);
84809
84806
  }
84810
84807
  const projectToAdditionalDependencyBumps = /* @__PURE__ */ new Map();
84811
84808
  for (const releaseGroup of releaseGroups) {
@@ -84813,13 +84810,13 @@ function createAPI(overrideReleaseConfig) {
84813
84810
  continue;
84814
84811
  }
84815
84812
  for (const project of releaseGroup.projects) {
84816
- if (!projectsVersionData[project] || projectsVersionData[project].newVersion === null) {
84813
+ if (!_optionalChain([projectsVersionData, 'access', _206 => _206[project], 'optionalAccess', _207 => _207.newVersion])) {
84817
84814
  continue;
84818
84815
  }
84819
84816
  const dependentProjects = (projectsVersionData[project].dependentProjects || []).map((dep) => {
84820
84817
  return {
84821
84818
  dependencyName: dep.source,
84822
- newVersion: _optionalChain([projectsVersionData, 'access', _206 => _206[dep.source], 'optionalAccess', _207 => _207.newVersion])
84819
+ newVersion: _optionalChain([projectsVersionData, 'access', _208 => _208[dep.source], 'optionalAccess', _209 => _209.newVersion])
84823
84820
  };
84824
84821
  }).filter((b) => b.newVersion !== null);
84825
84822
  for (const dependent of dependentProjects) {
@@ -84838,10 +84835,10 @@ function createAPI(overrideReleaseConfig) {
84838
84835
  if (config === false) {
84839
84836
  continue;
84840
84837
  }
84841
- const projects = _optionalChain([args, 'access', _208 => _208.projects, 'optionalAccess', _209 => _209.length]) ? Array.from(releaseGroupToFilteredProjects.get(releaseGroup)).flatMap((project) => {
84838
+ const projects = _optionalChain([args, 'access', _210 => _210.projects, 'optionalAccess', _211 => _211.length]) ? Array.from(releaseGroupToFilteredProjects.get(releaseGroup)).flatMap((project) => {
84842
84839
  return [
84843
84840
  project,
84844
- ..._optionalChain([projectsVersionData, 'access', _210 => _210[project], 'optionalAccess', _211 => _211.dependentProjects, 'access', _212 => _212.map, 'call', _213 => _213((dep) => dep.source)]) || []
84841
+ ..._optionalChain([projectsVersionData, 'access', _212 => _212[project], 'optionalAccess', _213 => _213.dependentProjects, 'access', _214 => _214.map, 'call', _215 => _215((dep) => dep.source)]) || []
84845
84842
  ];
84846
84843
  }) : releaseGroup.projects;
84847
84844
  const projectNodes = projects.map((name) => projectGraph.nodes[name]);
@@ -84877,12 +84874,12 @@ function createAPI(overrideReleaseConfig) {
84877
84874
  let fromRef = args.from || await _asyncOptionalChain([(await _git.getLatestGitTagForPattern.call(void 0, releaseGroup.releaseTagPattern, {
84878
84875
  projectName: project.name,
84879
84876
  releaseGroupName: releaseGroup.name
84880
- }, releaseGroup.releaseTagPatternCheckAllBranchesWhen)), 'optionalAccess', async _214 => _214.tag]);
84877
+ }, releaseGroup.releaseTagPatternCheckAllBranchesWhen)), 'optionalAccess', async _216 => _216.tag]);
84881
84878
  if (!fromRef && useAutomaticFromRef) {
84882
84879
  const firstCommit = await _git.getFirstGitCommit.call(void 0, );
84883
84880
  const allCommits = await getCommits(firstCommit, toSHA);
84884
84881
  const commitsForProject = allCommits.filter((c) => c.affectedFiles.find((f) => f.startsWith(project.data.root)));
84885
- fromRef = _optionalChain([commitsForProject, 'access', _215 => _215[0], 'optionalAccess', _216 => _216.shortHash]);
84882
+ fromRef = _optionalChain([commitsForProject, 'access', _217 => _217[0], 'optionalAccess', _218 => _218.shortHash]);
84886
84883
  if (args.verbose) {
84887
84884
  console.log(`Determined --from ref for ${project.name} from the first commit in which it exists: ${fromRef}`);
84888
84885
  }
@@ -84927,11 +84924,16 @@ function createAPI(overrideReleaseConfig) {
84927
84924
  for (const [projectName, projectChangelog] of Object.entries(projectChangelogs)) {
84928
84925
  if (projectChangelogs && shouldCreateGitHubRelease(releaseGroup.changelog, args.createRelease)) {
84929
84926
  postGitTasks.push(async (latestCommit) => {
84930
- _output.output.logSingleLine(`Creating GitHub Release`);
84931
- await _github.createOrUpdateGithubRelease.call(void 0, releaseGroup.changelog ? releaseGroup.changelog.createRelease : _config3.defaultCreateReleaseProvider, projectChangelog.releaseVersion, formatGithubReleaseNotes(projectChangelog.contents, workspaceConfig), latestCommit, {
84927
+ const contents = formatGithubReleaseNotes(projectChangelog.releaseVersion, projectChangelog.contents, projectName, workspaceConfig);
84928
+ _output.output.logSingleLine(`Creating GitHub Release
84929
+
84930
+ ${contents}`);
84931
+ await _github.createOrUpdateGithubRelease.call(void 0, releaseGroup.changelog ? releaseGroup.changelog.createRelease : _config3.defaultCreateReleaseProvider, projectChangelog.releaseVersion, contents, latestCommit, {
84932
84932
  dryRun: !!args.dryRun
84933
84933
  });
84934
84934
  });
84935
+ } else {
84936
+ _output.output.logSingleLine(`Skipping GitHub Release for ${projectName} as it is disabled in the release group configuration`);
84935
84937
  }
84936
84938
  allProjectChangelogs[projectName] = projectChangelog;
84937
84939
  }
@@ -84981,7 +84983,7 @@ function createAPI(overrideReleaseConfig) {
84981
84983
  return changes2;
84982
84984
  }).filter(Boolean);
84983
84985
  } else {
84984
- let fromRef = args.from || await _asyncOptionalChain([(await _git.getLatestGitTagForPattern.call(void 0, releaseGroup.releaseTagPattern, {}, releaseGroup.releaseTagPatternCheckAllBranchesWhen)), 'optionalAccess', async _217 => _217.tag]);
84986
+ let fromRef = args.from || await _asyncOptionalChain([(await _git.getLatestGitTagForPattern.call(void 0, releaseGroup.releaseTagPattern, {}, releaseGroup.releaseTagPatternCheckAllBranchesWhen)), 'optionalAccess', async _219 => _219.tag]);
84985
84987
  if (!fromRef) {
84986
84988
  if (useAutomaticFromRef) {
84987
84989
  fromRef = await _git.getFirstGitCommit.call(void 0, );
@@ -85030,6 +85032,8 @@ function createAPI(overrideReleaseConfig) {
85030
85032
  dryRun: !!args.dryRun
85031
85033
  });
85032
85034
  });
85035
+ } else {
85036
+ _output.output.logSingleLine(`Skipping GitHub Release for ${projectName} as it is disabled in the release group configuration`);
85033
85037
  }
85034
85038
  allProjectChangelogs[projectName] = projectChangelog;
85035
85039
  }
@@ -85175,7 +85179,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
85175
85179
  }
85176
85180
  _chunkKK4YC43Scjs.__name.call(void 0, applyChangesAndExit, "applyChangesAndExit");
85177
85181
  async function generateChangelogForWorkspace({ tree, args, projectGraph, nxReleaseConfig, workspaceChangelogVersion, changes, commits }) {
85178
- const workspaceConfig = await _chunkLFH4CIZMcjs.getWorkspaceConfig.call(void 0, );
85182
+ const workspaceConfig = await _chunkSBZRK235cjs.getWorkspaceConfig.call(void 0, );
85179
85183
  if (!workspaceConfig) {
85180
85184
  throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
85181
85185
  }
@@ -85199,7 +85203,7 @@ async function generateChangelogForWorkspace({ tree, args, projectGraph, nxRelea
85199
85203
  });
85200
85204
  return;
85201
85205
  }
85202
- if (_optionalChain([Object, 'access', _218 => _218.values, 'call', _219 => _219(nxReleaseConfig.groups), 'access', _220 => _220[0], 'optionalAccess', _221 => _221.projectsRelationship]) === "independent") {
85206
+ if (_optionalChain([Object, 'access', _220 => _220.values, 'call', _221 => _221(nxReleaseConfig.groups), 'access', _222 => _222[0], 'optionalAccess', _223 => _223.projectsRelationship]) === "independent") {
85203
85207
  _output.output.warn({
85204
85208
  title: `Workspace changelog is enabled, but you have configured an independent projects relationship. This is not supported, so workspace changelog will be disabled.`,
85205
85209
  bodyLines: [
@@ -85255,8 +85259,7 @@ async function generateChangelogForWorkspace({ tree, args, projectGraph, nxRelea
85255
85259
  contents = _fs.readFileSync.call(void 0, changelogPath, "utf8");
85256
85260
  }
85257
85261
  if (interpolatedTreePath) {
85258
- const rootChangelogContents = tree.exists(interpolatedTreePath) ? _optionalChain([tree, 'access', _222 => _222.read, 'call', _223 => _223(interpolatedTreePath), 'optionalAccess', _224 => _224.toString, 'call', _225 => _225()]) : "";
85259
- tree.write(interpolatedTreePath, await generateChangelogContent(releaseVersion2, interpolatedTreePath, contents, rootChangelogContents, null, workspaceConfig));
85262
+ tree.write(interpolatedTreePath, await generateChangelogContent(releaseVersion2, interpolatedTreePath, contents, tree.exists(interpolatedTreePath) ? _optionalChain([tree, 'access', _224 => _224.read, 'call', _225 => _225(interpolatedTreePath), 'optionalAccess', _226 => _226.toString, 'call', _227 => _227()]) : "", null, workspaceConfig));
85260
85263
  _printchanges.printAndFlushChanges.call(void 0, tree, !!dryRun, 3, false, _shared.noDiffInChangelogMessage);
85261
85264
  }
85262
85265
  return {
@@ -85266,7 +85269,7 @@ async function generateChangelogForWorkspace({ tree, args, projectGraph, nxRelea
85266
85269
  }
85267
85270
  _chunkKK4YC43Scjs.__name.call(void 0, generateChangelogForWorkspace, "generateChangelogForWorkspace");
85268
85271
  async function generateChangelogForProjects({ tree, args, changes, projectsVersionData, releaseGroup, projects, nxReleaseConfig, projectToAdditionalDependencyBumps }) {
85269
- const workspaceConfig = await _chunkLFH4CIZMcjs.getWorkspaceConfig.call(void 0, );
85272
+ const workspaceConfig = await _chunkSBZRK235cjs.getWorkspaceConfig.call(void 0, );
85270
85273
  if (!workspaceConfig) {
85271
85274
  throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
85272
85275
  }
@@ -85285,10 +85288,9 @@ async function generateChangelogForProjects({ tree, args, changes, projectsVersi
85285
85288
  projectName: project.name,
85286
85289
  projectRoot: project.data.root,
85287
85290
  workspaceRoot: ""
85288
- // within the tree, workspaceRoot is the root
85289
85291
  });
85290
85292
  }
85291
- if (!_optionalChain([projectsVersionData, 'access', _226 => _226[project.name], 'optionalAccess', _227 => _227.newVersion])) {
85293
+ if (!_optionalChain([projectsVersionData, 'access', _228 => _228[project.name], 'optionalAccess', _229 => _229.newVersion])) {
85292
85294
  continue;
85293
85295
  }
85294
85296
  const releaseVersion2 = new (0, _shared.ReleaseVersion)({
@@ -85301,53 +85303,56 @@ async function generateChangelogForProjects({ tree, args, changes, projectsVersi
85301
85303
  _output.output.log({
85302
85304
  title: `${prefix} an entry in ${interpolatedTreePath} for ${chalk2.white(releaseVersion2.gitTag)}`
85303
85305
  });
85306
+ const githubRepoData = _github.getGitHubRepoData.call(void 0, gitRemote, config.createRelease);
85307
+ const changelogRenderer = new StormChangelogRenderer({
85308
+ changes,
85309
+ changelogEntryVersion: releaseVersion2.rawVersion,
85310
+ project: project.name,
85311
+ repoData: githubRepoData,
85312
+ entryWhenNoChanges: typeof config.entryWhenNoChanges === "string" ? _utils.interpolate.call(void 0, config.entryWhenNoChanges, {
85313
+ projectName: project.name,
85314
+ projectRoot: project.data.root,
85315
+ workspaceRoot: ""
85316
+ }) : false,
85317
+ changelogRenderOptions: config.renderOptions,
85318
+ isVersionPlans: !!releaseGroup.versionPlans,
85319
+ conventionalCommitsConfig: releaseGroup.versionPlans ? null : nxReleaseConfig.conventionalCommits,
85320
+ dependencyBumps: projectToAdditionalDependencyBumps.get(project.name)
85321
+ });
85322
+ let contents = await changelogRenderer.render();
85323
+ _output.output.log({
85324
+ title: `Changelog renderer for ${project.name} rendered the following content:
85325
+
85326
+ ${contents}`.trim()
85327
+ });
85328
+ if (interactive) {
85329
+ const tmpDir = (0, import_tmp.dirSync)().name;
85330
+ const changelogPath = _path3.joinPathFragments.call(void 0,
85331
+ tmpDir,
85332
+ // Include the tree path in the name so that it is easier to identify which changelog file is being edited
85333
+ `PREVIEW__${interpolatedTreePath.replace(/\//g, "_")}`
85334
+ );
85335
+ _fs.writeFileSync.call(void 0, changelogPath, contents);
85336
+ await _launcheditor.launchEditor.call(void 0, changelogPath);
85337
+ contents = _fs.readFileSync.call(void 0, changelogPath, "utf8");
85338
+ }
85339
+ if (interpolatedTreePath) {
85340
+ tree.write(interpolatedTreePath, await generateChangelogContent(releaseVersion2, interpolatedTreePath, contents, tree.exists(interpolatedTreePath) ? _optionalChain([tree, 'access', _230 => _230.read, 'call', _231 => _231(interpolatedTreePath), 'optionalAccess', _232 => _232.toString, 'call', _233 => _233()]) : "", project.name, workspaceConfig));
85341
+ _printchanges.printAndFlushChanges.call(void 0,
85342
+ tree,
85343
+ !!dryRun,
85344
+ 3,
85345
+ false,
85346
+ _shared.noDiffInChangelogMessage,
85347
+ // Only print the change for the current changelog file at this point
85348
+ (f) => f.path === interpolatedTreePath
85349
+ );
85350
+ }
85351
+ projectChangelogs[project.name] = {
85352
+ releaseVersion: releaseVersion2,
85353
+ contents
85354
+ };
85304
85355
  }
85305
- const githubRepoData = _github.getGitHubRepoData.call(void 0, gitRemote, config.createRelease);
85306
- const changelogRenderer = new StormChangelogRenderer({
85307
- changes,
85308
- changelogEntryVersion: releaseVersion2.rawVersion,
85309
- project: project.name,
85310
- repoData: githubRepoData,
85311
- entryWhenNoChanges: typeof config.entryWhenNoChanges === "string" ? _utils.interpolate.call(void 0, config.entryWhenNoChanges, {
85312
- projectName: project.name,
85313
- projectRoot: project.data.root,
85314
- workspaceRoot: ""
85315
- // within the tree, workspaceRoot is the root
85316
- }) : false,
85317
- changelogRenderOptions: config.renderOptions,
85318
- isVersionPlans: !!releaseGroup.versionPlans,
85319
- conventionalCommitsConfig: releaseGroup.versionPlans ? null : nxReleaseConfig.conventionalCommits,
85320
- dependencyBumps: projectToAdditionalDependencyBumps.get(project.name)
85321
- });
85322
- let contents = await changelogRenderer.render();
85323
- if (interactive) {
85324
- const tmpDir = (0, import_tmp.dirSync)().name;
85325
- const changelogPath = _path3.joinPathFragments.call(void 0,
85326
- tmpDir,
85327
- // Include the tree path in the name so that it is easier to identify which changelog file is being edited
85328
- `PREVIEW__${interpolatedTreePath.replace(/\//g, "_")}`
85329
- );
85330
- _fs.writeFileSync.call(void 0, changelogPath, contents);
85331
- await _launcheditor.launchEditor.call(void 0, changelogPath);
85332
- contents = _fs.readFileSync.call(void 0, changelogPath, "utf8");
85333
- }
85334
- if (interpolatedTreePath) {
85335
- const changelogContents = tree.exists(interpolatedTreePath) ? _optionalChain([tree, 'access', _228 => _228.read, 'call', _229 => _229(interpolatedTreePath), 'optionalAccess', _230 => _230.toString, 'call', _231 => _231()]) : "";
85336
- tree.write(interpolatedTreePath, await generateChangelogContent(releaseVersion2, interpolatedTreePath, contents, changelogContents, project.name, workspaceConfig));
85337
- _printchanges.printAndFlushChanges.call(void 0,
85338
- tree,
85339
- !!dryRun,
85340
- 3,
85341
- false,
85342
- _shared.noDiffInChangelogMessage,
85343
- // Only print the change for the current changelog file at this point
85344
- (f) => f.path === interpolatedTreePath
85345
- );
85346
- }
85347
- projectChangelogs[project.name] = {
85348
- releaseVersion: releaseVersion2,
85349
- contents
85350
- };
85351
85356
  }
85352
85357
  return projectChangelogs;
85353
85358
  }
@@ -85356,12 +85361,7 @@ function checkChangelogFilesEnabled(nxReleaseConfig) {
85356
85361
  if (nxReleaseConfig.changelog.workspaceChangelog && nxReleaseConfig.changelog.workspaceChangelog.file) {
85357
85362
  return true;
85358
85363
  }
85359
- for (const releaseGroup of Object.values(nxReleaseConfig.groups)) {
85360
- if (releaseGroup.changelog && releaseGroup.changelog.file) {
85361
- return true;
85362
- }
85363
- }
85364
- return false;
85364
+ return Object.values(nxReleaseConfig.groups).some((releaseGroup) => _optionalChain([releaseGroup, 'optionalAccess', _234 => _234.changelog, 'optionalAccess', _235 => _235.file]));
85365
85365
  }
85366
85366
  _chunkKK4YC43Scjs.__name.call(void 0, checkChangelogFilesEnabled, "checkChangelogFilesEnabled");
85367
85367
  async function getCommits(fromSHA, toSHA) {
@@ -85467,13 +85467,26 @@ function versionPlanSemverReleaseTypeToChangelogType(bump) {
85467
85467
  }
85468
85468
  }
85469
85469
  _chunkKK4YC43Scjs.__name.call(void 0, versionPlanSemverReleaseTypeToChangelogType, "versionPlanSemverReleaseTypeToChangelogType");
85470
- function formatGithubReleaseNotes(content, workspaceConfig) {
85470
+ function formatGithubReleaseNotes(releaseVersion2, content, projectName, workspaceConfig) {
85471
85471
  if (!workspaceConfig) {
85472
85472
  return content;
85473
85473
  }
85474
- return `![Storm Software](${workspaceConfig.release.banner})
85474
+ return `![${titleCase(workspaceConfig.organization)}](${workspaceConfig.release.banner})
85475
85475
  ${workspaceConfig.release.header || ""}
85476
- ${content}
85476
+
85477
+ # ${projectName ? `${titleCase(projectName)} ` : ""}v${releaseVersion2.rawVersion}
85478
+
85479
+ We at ${titleCase(workspaceConfig.organization)} are very excited to announce the v${releaseVersion2.rawVersion} release of the ${projectName ? titleCase(projectName) : workspaceConfig.name ? titleCase(workspaceConfig.name) : "Storm Software"} project! \u{1F680}
85480
+
85481
+ These changes are released under the ${workspaceConfig.license.includes("license") ? workspaceConfig.license : `${workspaceConfig.license} license`}. You can find more details on [our licensing page](${workspaceConfig.licensing}).
85482
+
85483
+ If you have any questions or comments, feel free to reach out to the team on [Discord](${workspaceConfig.account.discord}) or [our contact page](${workspaceConfig.contact}). Please help us spread the word by [tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@${workspaceConfig.account.twitter}%20release%20${projectName ? `${_optionalChain([titleCase, 'call', _236 => _236(projectName), 'optionalAccess', _237 => _237.replaceAll, 'call', _238 => _238(" ", "%20")])}%20` : ""}v${releaseVersion2.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${releaseVersion2.gitTag}) about this release!
85484
+
85485
+ ## Release Notes
85486
+
85487
+ ${content.replaceAll(`## ${generateChangelogTitle(releaseVersion2.rawVersion, projectName, workspaceConfig)}`, "").replaceAll(`# ${generateChangelogTitle(releaseVersion2.rawVersion, projectName, workspaceConfig)}`, "")}
85488
+
85489
+ ---
85477
85490
 
85478
85491
  ${workspaceConfig.release.footer}
85479
85492
  `;
@@ -85556,13 +85569,13 @@ var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
85556
85569
  var _paramsjs = require('nx/src/utils/params.js');
85557
85570
  async function releaseVersion(config, args) {
85558
85571
  try {
85559
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Running release version command", config);
85572
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "Running release version command", config);
85560
85573
  const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
85561
85574
  exitOnError: true
85562
85575
  });
85563
85576
  const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
85564
85577
  const nxJson = _nxjsonjs.readNxJson.call(void 0, );
85565
- const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _232 => _232.workspaceRoot]), () => ( _chunkLFH4CIZMcjs.findWorkspaceRoot.call(void 0, )));
85578
+ const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _239 => _239.workspaceRoot]), () => ( _chunkSBZRK235cjs.findWorkspaceRoot.call(void 0, )));
85566
85579
  if (args.verbose) {
85567
85580
  process.env.NX_VERBOSE_LOGGING = "true";
85568
85581
  }
@@ -85570,29 +85583,29 @@ async function releaseVersion(config, args) {
85570
85583
  if (configError) {
85571
85584
  return await _configjs.handleNxReleaseConfigError.call(void 0, configError);
85572
85585
  }
85573
- if ((args.gitCommit === void 0 || args.gitTag === void 0 || args.stageChanges === void 0) && _optionalChain([nxJson, 'access', _233 => _233.release, 'optionalAccess', _234 => _234.git])) {
85586
+ if ((args.gitCommit === void 0 || args.gitTag === void 0 || args.stageChanges === void 0) && _optionalChain([nxJson, 'access', _240 => _240.release, 'optionalAccess', _241 => _241.git])) {
85574
85587
  await _resolvenxjsonerrormessagejs.resolveNxJsonConfigErrorMessage.call(void 0, [
85575
85588
  "release",
85576
85589
  "git"
85577
85590
  ]);
85578
85591
  throw new Error(`The "release.git" property in nx.json may not be used with the "nx release version" subcommand or programmatic API. Instead, configure git options for subcommands directly with "release.version.git" and "release.changelog.git".`);
85579
85592
  }
85580
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
85593
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
85581
85594
  const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
85582
85595
  if (filterError) {
85583
- _chunkLFH4CIZMcjs.writeError.call(void 0, filterError.title, config);
85596
+ _chunkSBZRK235cjs.writeError.call(void 0, filterError.title, config);
85584
85597
  throw new Error(filterError.title);
85585
85598
  }
85586
85599
  const tree = new (0, _treejs.FsTree)(workspaceRoot3, true);
85587
85600
  const versionData = {};
85588
- const commitMessage = args.gitCommitMessage || _optionalChain([nxReleaseConfig, 'optionalAccess', _235 => _235.version, 'access', _236 => _236.git, 'access', _237 => _237.commitMessage]);
85601
+ const commitMessage = args.gitCommitMessage || _optionalChain([nxReleaseConfig, 'optionalAccess', _242 => _242.version, 'access', _243 => _243.git, 'access', _244 => _244.commitMessage]);
85589
85602
  const additionalChangedFiles = /* @__PURE__ */ new Set();
85590
85603
  const generatorCallbacks = [];
85591
- if (_optionalChain([args, 'access', _238 => _238.projects, 'optionalAccess', _239 => _239.length])) {
85592
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
85604
+ if (_optionalChain([args, 'access', _245 => _245.projects, 'optionalAccess', _246 => _246.length])) {
85605
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
85593
85606
  for (const releaseGroup of releaseGroups) {
85594
85607
  const releaseGroupName = releaseGroup.name;
85595
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
85608
+ _chunkSBZRK235cjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
85596
85609
  const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
85597
85610
  const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
85598
85611
  projectGraph,
@@ -85601,7 +85614,7 @@ async function releaseVersion(config, args) {
85601
85614
  releaseGroupProjectNames
85602
85615
  );
85603
85616
  for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
85604
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
85617
+ _chunkSBZRK235cjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
85605
85618
  const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
85606
85619
  const generatorData = resolveGeneratorData({
85607
85620
  ...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
@@ -85628,7 +85641,7 @@ async function releaseVersion(config, args) {
85628
85641
  });
85629
85642
  }
85630
85643
  }
85631
- const gitTagValues2 = _nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _240 => _240.version, 'access', _241 => _241.git, 'access', _242 => _242.tag]))) ? _sharedjs.createGitTagValues.call(void 0, releaseGroups, releaseGroupToFilteredProjects, versionData) : [];
85644
+ const gitTagValues2 = _nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _247 => _247.version, 'access', _248 => _248.git, 'access', _249 => _249.tag]))) ? _sharedjs.createGitTagValues.call(void 0, releaseGroups, releaseGroupToFilteredProjects, versionData) : [];
85632
85645
  _sharedjs.handleDuplicateGitTags.call(void 0, gitTagValues2);
85633
85646
  printAndFlushChanges2(config, tree, !!args.dryRun);
85634
85647
  for (const generatorCallback of generatorCallbacks) {
@@ -85645,29 +85658,29 @@ async function releaseVersion(config, args) {
85645
85658
  projectsVersionData: versionData
85646
85659
  };
85647
85660
  }
85648
- if (_nullishCoalesce(args.gitCommit, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _243 => _243.version, 'access', _244 => _244.git, 'access', _245 => _245.commit])))) {
85661
+ if (_nullishCoalesce(args.gitCommit, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _250 => _250.version, 'access', _251 => _251.git, 'access', _252 => _252.commit])))) {
85649
85662
  await _sharedjs.commitChanges.call(void 0, {
85650
85663
  changedFiles: changedFiles2,
85651
85664
  isDryRun: !!args.dryRun,
85652
85665
  isVerbose: !!args.verbose,
85653
85666
  gitCommitMessages: _sharedjs.createCommitMessageValues.call(void 0, releaseGroups, releaseGroupToFilteredProjects, versionData, commitMessage),
85654
- gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _246 => _246.version, 'access', _247 => _247.git, 'access', _248 => _248.commitArgs])
85667
+ gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _253 => _253.version, 'access', _254 => _254.git, 'access', _255 => _255.commitArgs])
85655
85668
  });
85656
- } else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _249 => _249.version, 'access', _250 => _250.git, 'access', _251 => _251.stageChanges])))) {
85657
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Staging changed files with git", config);
85669
+ } else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _256 => _256.version, 'access', _257 => _257.git, 'access', _258 => _258.stageChanges])))) {
85670
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "Staging changed files with git", config);
85658
85671
  await _gitjs.gitAdd.call(void 0, {
85659
85672
  changedFiles: changedFiles2,
85660
85673
  dryRun: args.dryRun,
85661
85674
  verbose: args.verbose
85662
85675
  });
85663
85676
  }
85664
- if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _252 => _252.version, 'access', _253 => _253.git, 'access', _254 => _254.tag])))) {
85665
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Tagging commit with git", config);
85677
+ if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _259 => _259.version, 'access', _260 => _260.git, 'access', _261 => _261.tag])))) {
85678
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "Tagging commit with git", config);
85666
85679
  for (const tag of gitTagValues2) {
85667
85680
  await _gitjs.gitTag.call(void 0, {
85668
85681
  tag,
85669
- message: args.gitTagMessage || _optionalChain([nxReleaseConfig, 'optionalAccess', _255 => _255.version, 'access', _256 => _256.git, 'access', _257 => _257.tagMessage]),
85670
- additionalArgs: args.gitTagArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _258 => _258.version, 'access', _259 => _259.git, 'access', _260 => _260.tagArgs]),
85682
+ message: args.gitTagMessage || _optionalChain([nxReleaseConfig, 'optionalAccess', _262 => _262.version, 'access', _263 => _263.git, 'access', _264 => _264.tagMessage]),
85683
+ additionalArgs: args.gitTagArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _265 => _265.version, 'access', _266 => _266.git, 'access', _267 => _267.tagArgs]),
85671
85684
  dryRun: args.dryRun,
85672
85685
  verbose: args.verbose
85673
85686
  });
@@ -85714,7 +85727,7 @@ async function releaseVersion(config, args) {
85714
85727
  });
85715
85728
  }
85716
85729
  }
85717
- const gitTagValues = _nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _261 => _261.version, 'access', _262 => _262.git, 'access', _263 => _263.tag]))) ? _sharedjs.createGitTagValues.call(void 0, releaseGroups, releaseGroupToFilteredProjects, versionData) : [];
85730
+ const gitTagValues = _nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _268 => _268.version, 'access', _269 => _269.git, 'access', _270 => _270.tag]))) ? _sharedjs.createGitTagValues.call(void 0, releaseGroups, releaseGroupToFilteredProjects, versionData) : [];
85718
85731
  _sharedjs.handleDuplicateGitTags.call(void 0, gitTagValues);
85719
85732
  printAndFlushChanges2(config, tree, !!args.dryRun);
85720
85733
  for (const generatorCallback of generatorCallbacks) {
@@ -85723,10 +85736,10 @@ async function releaseVersion(config, args) {
85723
85736
  let workspaceVersion = void 0;
85724
85737
  if (releaseGroups.length === 1) {
85725
85738
  const releaseGroup = releaseGroups[0];
85726
- if (_optionalChain([releaseGroup, 'optionalAccess', _264 => _264.projectsRelationship]) === "fixed") {
85739
+ if (_optionalChain([releaseGroup, 'optionalAccess', _271 => _271.projectsRelationship]) === "fixed") {
85727
85740
  const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
85728
85741
  if (releaseGroupProjectNames.length > 0 && releaseGroupProjectNames[0]) {
85729
- workspaceVersion = _optionalChain([versionData, 'access', _265 => _265[releaseGroupProjectNames[0]], 'optionalAccess', _266 => _266.newVersion]);
85742
+ workspaceVersion = _optionalChain([versionData, 'access', _272 => _272[releaseGroupProjectNames[0]], 'optionalAccess', _273 => _273.newVersion]);
85730
85743
  }
85731
85744
  }
85732
85745
  }
@@ -85740,29 +85753,29 @@ async function releaseVersion(config, args) {
85740
85753
  projectsVersionData: versionData
85741
85754
  };
85742
85755
  }
85743
- if (_nullishCoalesce(args.gitCommit, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _267 => _267.version, 'access', _268 => _268.git, 'access', _269 => _269.commit])))) {
85756
+ if (_nullishCoalesce(args.gitCommit, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _274 => _274.version, 'access', _275 => _275.git, 'access', _276 => _276.commit])))) {
85744
85757
  await _sharedjs.commitChanges.call(void 0, {
85745
85758
  changedFiles,
85746
85759
  isDryRun: !!args.dryRun,
85747
85760
  isVerbose: !!args.verbose,
85748
85761
  gitCommitMessages: _sharedjs.createCommitMessageValues.call(void 0, releaseGroups, releaseGroupToFilteredProjects, versionData, commitMessage),
85749
- gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _270 => _270.version, 'access', _271 => _271.git, 'access', _272 => _272.commitArgs])
85762
+ gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _277 => _277.version, 'access', _278 => _278.git, 'access', _279 => _279.commitArgs])
85750
85763
  });
85751
- } else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _273 => _273.version, 'access', _274 => _274.git, 'access', _275 => _275.stageChanges])))) {
85752
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Staging changed files with git", config);
85764
+ } else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _280 => _280.version, 'access', _281 => _281.git, 'access', _282 => _282.stageChanges])))) {
85765
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "Staging changed files with git", config);
85753
85766
  await _gitjs.gitAdd.call(void 0, {
85754
85767
  changedFiles,
85755
85768
  dryRun: args.dryRun,
85756
85769
  verbose: args.verbose
85757
85770
  });
85758
85771
  }
85759
- if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _276 => _276.version, 'access', _277 => _277.git, 'access', _278 => _278.tag])))) {
85760
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Tagging commit with git", config);
85772
+ if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _283 => _283.version, 'access', _284 => _284.git, 'access', _285 => _285.tag])))) {
85773
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "Tagging commit with git", config);
85761
85774
  for (const tag of gitTagValues) {
85762
85775
  await _gitjs.gitTag.call(void 0, {
85763
85776
  tag,
85764
- message: args.gitTagMessage || _optionalChain([nxReleaseConfig, 'optionalAccess', _279 => _279.version, 'access', _280 => _280.git, 'access', _281 => _281.tagMessage]),
85765
- additionalArgs: args.gitTagArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _282 => _282.version, 'access', _283 => _283.git, 'access', _284 => _284.tagArgs]),
85777
+ message: args.gitTagMessage || _optionalChain([nxReleaseConfig, 'optionalAccess', _286 => _286.version, 'access', _287 => _287.git, 'access', _288 => _288.tagMessage]),
85778
+ additionalArgs: args.gitTagArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _289 => _289.version, 'access', _290 => _290.git, 'access', _291 => _291.tagArgs]),
85766
85779
  dryRun: args.dryRun,
85767
85780
  verbose: args.verbose
85768
85781
  });
@@ -85773,8 +85786,8 @@ async function releaseVersion(config, args) {
85773
85786
  projectsVersionData: versionData
85774
85787
  };
85775
85788
  } catch (error) {
85776
- _chunkLFH4CIZMcjs.writeFatal.call(void 0, "A fatal error occurred while determining the Storm Release Version - the process was forced to terminate", config);
85777
- _chunkLFH4CIZMcjs.writeError.call(void 0, `An exception was thrown while determining the Storm Release Version
85789
+ _chunkSBZRK235cjs.writeFatal.call(void 0, "A fatal error occurred while determining the Storm Release Version - the process was forced to terminate", config);
85790
+ _chunkSBZRK235cjs.writeError.call(void 0, `An exception was thrown while determining the Storm Release Version
85778
85791
  - Details: ${error.message}
85779
85792
  - Stacktrace: ${error.stack}`, config);
85780
85793
  throw new Error(`An exception was thrown in the Storm Release Version generator's process
@@ -85785,7 +85798,7 @@ async function releaseVersion(config, args) {
85785
85798
  }
85786
85799
  _chunkKK4YC43Scjs.__name.call(void 0, releaseVersion, "releaseVersion");
85787
85800
  async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
85788
- const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _285 => _285.workspaceRoot]), () => ( _chunkLFH4CIZMcjs.findWorkspaceRoot.call(void 0, )));
85801
+ const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _292 => _292.workspaceRoot]), () => ( _chunkSBZRK235cjs.findWorkspaceRoot.call(void 0, )));
85789
85802
  const generatorOptions = {
85790
85803
  // Always ensure a string to avoid generator schema validation errors
85791
85804
  specifier: _nullishCoalesce(args.specifier, () => ( "")),
@@ -85804,7 +85817,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
85804
85817
  throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
85805
85818
  }
85806
85819
  appendVersionData(versionData, versionResult.data);
85807
- _chunkLFH4CIZMcjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
85820
+ _chunkSBZRK235cjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
85808
85821
  return versionResult.callback;
85809
85822
  }
85810
85823
  _chunkKK4YC43Scjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
@@ -85812,12 +85825,12 @@ function printAndFlushChanges2(config, tree, isDryRun) {
85812
85825
  const changes = tree.listChanges();
85813
85826
  for (const f of changes) {
85814
85827
  if (f.type === "CREATE") {
85815
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
85816
- _printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _286 => _286.content, 'optionalAccess', _287 => _287.toString, 'call', _288 => _288()]) || "");
85828
+ _chunkSBZRK235cjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
85829
+ _printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _293 => _293.content, 'optionalAccess', _294 => _294.toString, 'call', _295 => _295()]) || "");
85817
85830
  } else if (f.type === "UPDATE") {
85818
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
85831
+ _chunkSBZRK235cjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
85819
85832
  const currentContentsOnDisk = _fs.readFileSync.call(void 0, (0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
85820
- _printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _289 => _289.content, 'optionalAccess', _290 => _290.toString, 'call', _291 => _291()]) || "");
85833
+ _printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _296 => _296.content, 'optionalAccess', _297 => _297.toString, 'call', _298 => _298()]) || "");
85821
85834
  } else if (f.type === "DELETE") {
85822
85835
  throw new Error("Unexpected DELETE change, please report this as an issue");
85823
85836
  }
@@ -85887,31 +85900,31 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
85887
85900
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
85888
85901
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
85889
85902
  process.env.NPM_CONFIG_PROVENANCE = "true";
85890
- _chunkLFH4CIZMcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
85903
+ _chunkSBZRK235cjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
85891
85904
  const nxJson = _nxjsonjs.readNxJson.call(void 0, );
85892
- _chunkLFH4CIZMcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
85905
+ _chunkSBZRK235cjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
85893
85906
  const to = options.head || process.env.NX_HEAD;
85894
85907
  const from = options.base || process.env.NX_BASE;
85895
- _chunkLFH4CIZMcjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
85908
+ _chunkSBZRK235cjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
85896
85909
  - From: ${from}
85897
85910
  - To: ${to}
85898
85911
  `, config);
85899
- if (_optionalChain([nxJson, 'access', _292 => _292.release, 'optionalAccess', _293 => _293.groups])) {
85912
+ if (_optionalChain([nxJson, 'access', _299 => _299.release, 'optionalAccess', _300 => _300.groups])) {
85900
85913
  nxJson.release.groups = Object.keys(nxJson.release.groups).reduce((ret, groupName) => {
85901
- const groupConfig = _optionalChain([nxJson, 'access', _294 => _294.release, 'optionalAccess', _295 => _295.groups, 'optionalAccess', _296 => _296[groupName]]);
85914
+ const groupConfig = _optionalChain([nxJson, 'access', _301 => _301.release, 'optionalAccess', _302 => _302.groups, 'optionalAccess', _303 => _303[groupName]]);
85902
85915
  ret[groupName] = _chunkP2CHIYIKcjs.defu.call(void 0, groupConfig, DEFAULT_RELEASE_GROUP_CONFIG);
85903
85916
  return ret;
85904
85917
  }, {});
85905
85918
  }
85906
85919
  const nxReleaseConfig = _chunkP2CHIYIKcjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
85907
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
85908
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, nxReleaseConfig, config);
85920
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
85921
+ _chunkSBZRK235cjs.writeInfo.call(void 0, nxReleaseConfig, config);
85909
85922
  const releaseChangelog = createAPI(nxReleaseConfig);
85910
85923
  const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
85911
- _chunkLFH4CIZMcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
85924
+ _chunkSBZRK235cjs.writeDebug.call(void 0, "Determining the current release versions...", config);
85912
85925
  const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
85913
85926
  dryRun: false,
85914
- verbose: _chunkLFH4CIZMcjs.isVerbose.call(void 0, config.logLevel),
85927
+ verbose: _chunkSBZRK235cjs.isVerbose.call(void 0, config.logLevel),
85915
85928
  preid: config.preid,
85916
85929
  deleteVersionPlans: false,
85917
85930
  stageChanges: true,
@@ -85921,50 +85934,50 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
85921
85934
  });
85922
85935
  await releaseChangelog({
85923
85936
  ...options,
85924
- version: _optionalChain([nxReleaseConfig, 'optionalAccess', _297 => _297.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
85937
+ version: _optionalChain([nxReleaseConfig, 'optionalAccess', _304 => _304.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
85925
85938
  versionData: projectsVersionData,
85926
85939
  dryRun: false,
85927
- verbose: _chunkLFH4CIZMcjs.isVerbose.call(void 0, config.logLevel),
85940
+ verbose: _chunkSBZRK235cjs.isVerbose.call(void 0, config.logLevel),
85928
85941
  to,
85929
85942
  from,
85930
85943
  gitCommit: true,
85931
85944
  gitCommitMessage: "release(monorepo): Publish workspace release updates"
85932
85945
  });
85933
- _chunkLFH4CIZMcjs.writeDebug.call(void 0, "Tagging commit with git", config);
85946
+ _chunkSBZRK235cjs.writeDebug.call(void 0, "Tagging commit with git", config);
85934
85947
  if (options.skipPublish) {
85935
- _chunkLFH4CIZMcjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
85948
+ _chunkSBZRK235cjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
85936
85949
  } else {
85937
- const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _298 => _298[key], 'optionalAccess', _299 => _299.newVersion]));
85950
+ const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _305 => _305[key], 'optionalAccess', _306 => _306.newVersion]));
85938
85951
  if (changedProjects.length > 0) {
85939
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
85952
+ _chunkSBZRK235cjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
85940
85953
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
85941
85954
  `, config);
85942
85955
  const result2 = await releasePublish({
85943
85956
  ...options,
85944
85957
  dryRun: !!options.dryRun,
85945
- verbose: _chunkLFH4CIZMcjs.isVerbose.call(void 0, config.logLevel)
85958
+ verbose: _chunkSBZRK235cjs.isVerbose.call(void 0, config.logLevel)
85946
85959
  });
85947
- const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _300 => _300[key], 'optionalAccess', _301 => _301.code]) && _optionalChain([result2, 'access', _302 => _302[key], 'optionalAccess', _303 => _303.code]) > 0);
85960
+ const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _307 => _307[key], 'optionalAccess', _308 => _308.code]) && _optionalChain([result2, 'access', _309 => _309[key], 'optionalAccess', _310 => _310.code]) > 0);
85948
85961
  if (failedProjects.length > 0) {
85949
85962
  throw new Error(`The Storm release process was not completed successfully! One or more errors occured while running the \`nx-release-publish\` executor tasks.
85950
85963
 
85951
85964
  Please review the workflow details for the following project(s):
85952
- ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_optionalChain([result2, 'access', _304 => _304[failedProject], 'optionalAccess', _305 => _305.code])})`).join("\n")}
85965
+ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_optionalChain([result2, 'access', _311 => _311[failedProject], 'optionalAccess', _312 => _312.code])})`).join("\n")}
85953
85966
  `);
85954
85967
  }
85955
85968
  } else {
85956
- _chunkLFH4CIZMcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
85969
+ _chunkSBZRK235cjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
85957
85970
  }
85958
85971
  }
85959
- _chunkLFH4CIZMcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
85972
+ _chunkSBZRK235cjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
85960
85973
  }, "runRelease");
85961
85974
 
85962
85975
  // src/cli/index.ts
85963
85976
  var _config = {};
85964
85977
  function createProgram(config) {
85965
85978
  _config = config;
85966
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
85967
- const root2 = _chunkLFH4CIZMcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
85979
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
85980
+ const root2 = _chunkSBZRK235cjs.findWorkspaceRootSafe.call(void 0, process.cwd());
85968
85981
  process.env.STORM_WORKSPACE_ROOT ??= root2;
85969
85982
  process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
85970
85983
  root2 && process.chdir(root2);
@@ -85992,14 +86005,14 @@ function createProgram(config) {
85992
86005
  _chunkKK4YC43Scjs.__name.call(void 0, createProgram, "createProgram");
85993
86006
  async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
85994
86007
  try {
85995
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
86008
+ _chunkSBZRK235cjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
85996
86009
  await runCommit(config, dryRun);
85997
- _chunkLFH4CIZMcjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
86010
+ _chunkSBZRK235cjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
85998
86011
 
85999
86012
  Note: Please run "pnpm push" to upload these changes to the remote ${_config.name ? _config.name : _config.namespace ? _config.namespace : _config.organization ? _config.organization : "Storm-Software"} Git repository at ${_config.repository}
86000
86013
  `, _config);
86001
86014
  } catch (error) {
86002
- _chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
86015
+ _chunkSBZRK235cjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
86003
86016
 
86004
86017
  ${error.message}`, _config);
86005
86018
  throw new Error(error.message, {
@@ -86010,11 +86023,11 @@ ${error.message}`, _config);
86010
86023
  _chunkKK4YC43Scjs.__name.call(void 0, commitAction, "commitAction");
86011
86024
  async function readmeAction(options) {
86012
86025
  try {
86013
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
86026
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
86014
86027
  await runReadme(options);
86015
- _chunkLFH4CIZMcjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
86028
+ _chunkSBZRK235cjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
86016
86029
  } catch (error) {
86017
- _chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
86030
+ _chunkSBZRK235cjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
86018
86031
 
86019
86032
  ${error.message}`);
86020
86033
  throw new Error(error.message, {
@@ -86025,16 +86038,16 @@ ${error.message}`);
86025
86038
  _chunkKK4YC43Scjs.__name.call(void 0, readmeAction, "readmeAction");
86026
86039
  async function releaseAction({ project, base, head, dryRun }) {
86027
86040
  try {
86028
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
86041
+ _chunkSBZRK235cjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
86029
86042
  await runRelease(_config, {
86030
86043
  dryRun,
86031
86044
  project,
86032
86045
  base,
86033
86046
  head
86034
86047
  });
86035
- _chunkLFH4CIZMcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
86048
+ _chunkSBZRK235cjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
86036
86049
  } catch (error) {
86037
- _chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
86050
+ _chunkSBZRK235cjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
86038
86051
 
86039
86052
  ${error.message} ${error.stack ? `
86040
86053
 
@@ -86048,15 +86061,15 @@ Stacktrace: ${error.stack}` : ""}`, _config);
86048
86061
  _chunkKK4YC43Scjs.__name.call(void 0, releaseAction, "releaseAction");
86049
86062
  async function commitLintAction({ config, message: message2, file }) {
86050
86063
  try {
86051
- _chunkLFH4CIZMcjs.writeInfo.call(void 0, `\u26A1 Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : _config.organization ? _config.organization : "Storm-Software"} repository's commit messages.`, _config);
86064
+ _chunkSBZRK235cjs.writeInfo.call(void 0, `\u26A1 Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : _config.organization ? _config.organization : "Storm-Software"} repository's commit messages.`, _config);
86052
86065
  await runCommitLint(_config, {
86053
86066
  config,
86054
86067
  message: message2,
86055
86068
  file
86056
86069
  });
86057
- _chunkLFH4CIZMcjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
86070
+ _chunkSBZRK235cjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
86058
86071
  } catch (error) {
86059
- _chunkLFH4CIZMcjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
86072
+ _chunkSBZRK235cjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
86060
86073
 
86061
86074
  ${error.message}`, _config);
86062
86075
  throw new Error(error.message, {
@@ -86068,15 +86081,15 @@ _chunkKK4YC43Scjs.__name.call(void 0, commitLintAction, "commitLintAction");
86068
86081
 
86069
86082
  // bin/git.ts
86070
86083
  void (async () => {
86071
- const config = await _chunkLFH4CIZMcjs.getConfig.call(void 0, );
86084
+ const config = await _chunkSBZRK235cjs.getConfig.call(void 0, );
86072
86085
  try {
86073
- _chunkLFH4CIZMcjs.handleProcess.call(void 0, config);
86086
+ _chunkSBZRK235cjs.handleProcess.call(void 0, config);
86074
86087
  const program2 = createProgram(config);
86075
86088
  await program2.parseAsync(process.argv);
86076
- _chunkLFH4CIZMcjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
86077
- _chunkLFH4CIZMcjs.exitWithSuccess.call(void 0, config);
86089
+ _chunkSBZRK235cjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
86090
+ _chunkSBZRK235cjs.exitWithSuccess.call(void 0, config);
86078
86091
  } catch (error) {
86079
- _chunkLFH4CIZMcjs.exitWithError.call(void 0, config);
86092
+ _chunkSBZRK235cjs.exitWithError.call(void 0, config);
86080
86093
  process.exit(1);
86081
86094
  }
86082
86095
  })();