@storm-software/git-tools 2.112.2 → 2.112.3

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
@@ -20,7 +20,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
20
20
 
21
21
 
22
22
 
23
- var _chunkXE275LJTcjs = require('./chunk-XE275LJT.cjs');
23
+ var _chunkMZP2IRY3cjs = require('./chunk-MZP2IRY3.cjs');
24
24
 
25
25
 
26
26
  var _chunkFMYKTN2Zcjs = require('./chunk-FMYKTN2Z.cjs');
@@ -3274,7 +3274,7 @@ var require_wrap_ansi = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
3274
3274
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
3275
3275
  var stringWidth = require_string_width();
3276
3276
  var stripAnsi2 = require_strip_ansi();
3277
- var ansiStyles2 = _chunkXE275LJTcjs.require_ansi_styles.call(void 0, );
3277
+ var ansiStyles2 = _chunkMZP2IRY3cjs.require_ansi_styles.call(void 0, );
3278
3278
  var ESCAPES2 = /* @__PURE__ */ new Set([
3279
3279
  "\x1B",
3280
3280
  "\x9B"
@@ -15298,7 +15298,7 @@ var require_node = _chunkIG6EXAQUcjs.__commonJS.call(void 0, {
15298
15298
  );
15299
15299
  exports.colors = [6, 2, 3, 4, 5, 1];
15300
15300
  try {
15301
- const supportsColor2 = _chunkXE275LJTcjs.require_supports_color.call(void 0, );
15301
+ const supportsColor2 = _chunkMZP2IRY3cjs.require_supports_color.call(void 0, );
15302
15302
  if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
15303
15303
  exports.colors = [
15304
15304
  20,
@@ -70469,7 +70469,7 @@ function getRuleFromScopeEnum(scopeEnum2) {
70469
70469
  // src/commitlint/run.ts
70470
70470
  var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
70471
70471
  var runCommitLint = async (config, params) => {
70472
- _chunkXE275LJTcjs.writeInfo.call(void 0,
70472
+ _chunkMZP2IRY3cjs.writeInfo.call(void 0,
70473
70473
  "\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
70474
70474
  config
70475
70475
  );
@@ -70477,7 +70477,7 @@ var runCommitLint = async (config, params) => {
70477
70477
  if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
70478
70478
  commitMessage = params.message;
70479
70479
  } else {
70480
- const commitFile = _chunkXE275LJTcjs.joinPaths.call(void 0,
70480
+ const commitFile = _chunkMZP2IRY3cjs.joinPaths.call(void 0,
70481
70481
  config.workspaceRoot,
70482
70482
  params.file || params.message || COMMIT_EDITMSG_PATH
70483
70483
  );
@@ -70494,17 +70494,17 @@ var runCommitLint = async (config, params) => {
70494
70494
  if (upstreamRemote) {
70495
70495
  const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _84 => _84.split, 'call', _85 => _85(" "), 'access', _86 => _86[0], 'optionalAccess', _87 => _87.trim, 'call', _88 => _88()]);
70496
70496
  if (!upstreamRemoteIdentifier) {
70497
- _chunkXE275LJTcjs.writeWarning.call(void 0,
70497
+ _chunkMZP2IRY3cjs.writeWarning.call(void 0,
70498
70498
  `No upstream remote found for ${config.name}.git. Skipping comparison.`,
70499
70499
  config
70500
70500
  );
70501
70501
  return;
70502
70502
  }
70503
- _chunkXE275LJTcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
70503
+ _chunkMZP2IRY3cjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
70504
70504
  const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
70505
70505
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
70506
70506
  } else {
70507
- _chunkXE275LJTcjs.writeWarning.call(void 0,
70507
+ _chunkMZP2IRY3cjs.writeWarning.call(void 0,
70508
70508
  `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`,
70509
70509
  config
70510
70510
  );
@@ -70512,7 +70512,7 @@ var runCommitLint = async (config, params) => {
70512
70512
  }
70513
70513
  commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
70514
70514
  if (!commitMessage) {
70515
- _chunkXE275LJTcjs.writeWarning.call(void 0,
70515
+ _chunkMZP2IRY3cjs.writeWarning.call(void 0,
70516
70516
  "No commits found. Skipping commit message validation.",
70517
70517
  config
70518
70518
  );
@@ -70535,7 +70535,7 @@ var runCommitLint = async (config, params) => {
70535
70535
  helpUrl: commitlintConfig.helpUrl
70536
70536
  });
70537
70537
  if (!matchCommit || report.errors.length || report.warnings.length) {
70538
- _chunkXE275LJTcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
70538
+ _chunkMZP2IRY3cjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
70539
70539
  } else {
70540
70540
  let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
70541
70541
  errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
@@ -71696,7 +71696,7 @@ async function createState(config, commitizenFile = "@storm-software/git-tools/c
71696
71696
  answers: {}
71697
71697
  };
71698
71698
  } else {
71699
- _chunkXE275LJTcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
71699
+ _chunkMZP2IRY3cjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
71700
71700
  let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
71701
71701
  if (_optionalChain([commitizenConfig, 'optionalAccess', _94 => _94.default])) {
71702
71702
  commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _95 => _95.default]);
@@ -71759,7 +71759,7 @@ async function createState(config, commitizenFile = "@storm-software/git-tools/c
71759
71759
  const project = projectConfigurations.projects[scope];
71760
71760
  if (project) {
71761
71761
  let description = `${project.name} - ${project.root}`;
71762
- const packageJsonPath = _chunkXE275LJTcjs.joinPaths.call(void 0, project.root, "package.json");
71762
+ const packageJsonPath = _chunkMZP2IRY3cjs.joinPaths.call(void 0, project.root, "package.json");
71763
71763
  if (_fs.existsSync.call(void 0, packageJsonPath)) {
71764
71764
  const packageJson = await hfs.json(packageJsonPath);
71765
71765
  description = packageJson.description || description;
@@ -71839,10 +71839,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
71839
71839
 
71840
71840
  // src/commit/run.ts
71841
71841
  var runCommit = async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
71842
- const config = await _chunkXE275LJTcjs.getConfig.call(void 0, );
71842
+ const config = await _chunkMZP2IRY3cjs.getConfig.call(void 0, );
71843
71843
  const state = await createState(config, commitizenFile);
71844
71844
  if (dryRun) {
71845
- _chunkXE275LJTcjs.writeInfo.call(void 0, "Running in dry mode.", config);
71845
+ _chunkMZP2IRY3cjs.writeInfo.call(void 0, "Running in dry mode.", config);
71846
71846
  }
71847
71847
  console.log(chalk_template_default`
71848
71848
  {bold.#999999 ----------------------------------------}
@@ -71852,7 +71852,7 @@ var runCommit = async (commitizenFile = "@storm-software/git-tools/commit/config
71852
71852
  `);
71853
71853
  state.answers = await askQuestions(state);
71854
71854
  const message2 = formatCommitMessage(state);
71855
- const commitMsgFile = _chunkXE275LJTcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
71855
+ const commitMsgFile = _chunkMZP2IRY3cjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
71856
71856
  console.log(chalk_template_default`
71857
71857
  {bold.#999999 ----------------------------------------}
71858
71858
 
@@ -71865,11 +71865,11 @@ var runCommit = async (commitizenFile = "@storm-software/git-tools/commit/config
71865
71865
  commandItems.push(...["--file", commitMsgFile]);
71866
71866
  const command = (0, import_any_shell_escape.default)(commandItems);
71867
71867
  if (dryRun) {
71868
- _chunkXE275LJTcjs.writeDebug.call(void 0,
71868
+ _chunkMZP2IRY3cjs.writeDebug.call(void 0,
71869
71869
  `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
71870
71870
  config
71871
71871
  );
71872
- _chunkXE275LJTcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
71872
+ _chunkMZP2IRY3cjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
71873
71873
  } else {
71874
71874
  await _promises2.default.writeFile(commitMsgFile, message2);
71875
71875
  _chunkGWDOCACNcjs.run.call(void 0, config, command);
@@ -77652,7 +77652,7 @@ var _nxjsonjs = require('nx/src/config/nx-json.js');
77652
77652
 
77653
77653
  // src/release/changelog.ts
77654
77654
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
77655
- var chalk3 = _chunkIG6EXAQUcjs.__toESM.call(void 0, _chunkXE275LJTcjs.require_source.call(void 0, ), 1);
77655
+ var chalk3 = _chunkIG6EXAQUcjs.__toESM.call(void 0, _chunkMZP2IRY3cjs.require_source.call(void 0, ), 1);
77656
77656
  var import_enquirer2 = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_enquirer(), 1);
77657
77657
  var import_semver2 = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_semver4(), 1);
77658
77658
  var import_tmp = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_tmp2(), 1);
@@ -77998,7 +77998,7 @@ function generateChangelogTitle(version2, project, workspaceConfig) {
77998
77998
  if (!_optionalChain([workspaceConfig, 'optionalAccess', _188 => _188.name]) || !project) {
77999
77999
  return version2;
78000
78000
  }
78001
- return `[${version2}](https://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${project}%40${version2}) (${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)})`;
78001
+ return `[${version2}](https://github.com/${typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : _optionalChain([workspaceConfig, 'access', _189 => _189.organization, 'optionalAccess', _190 => _190.name])}/${workspaceConfig.name}/releases/tag/${project}%40${version2}) (${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)})`;
78002
78002
  }
78003
78003
  function parseChangelogMarkdown(contents) {
78004
78004
  const CHANGELOG_RELEASE_HEAD_RE = new RegExp(
@@ -78124,7 +78124,7 @@ async function commitChanges({
78124
78124
  logFn
78125
78125
  }) {
78126
78126
  logFn = logFn || console.log;
78127
- if (!_optionalChain([changedFiles, 'optionalAccess', _189 => _189.length]) && !_optionalChain([deletedFiles, 'optionalAccess', _190 => _190.length])) {
78127
+ if (!_optionalChain([changedFiles, 'optionalAccess', _191 => _191.length]) && !_optionalChain([deletedFiles, 'optionalAccess', _192 => _192.length])) {
78128
78128
  throw new Error("Error: No changed files to commit");
78129
78129
  }
78130
78130
  logFn(`Committing changes with git`);
@@ -81569,7 +81569,7 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
81569
81569
  };
81570
81570
  }
81571
81571
  async render() {
81572
- this.workspaceConfig = await _chunkXE275LJTcjs.getWorkspaceConfig.call(void 0, );
81572
+ this.workspaceConfig = await _chunkMZP2IRY3cjs.getWorkspaceConfig.call(void 0, );
81573
81573
  return await super.render();
81574
81574
  }
81575
81575
  preprocessChanges() {
@@ -81600,7 +81600,7 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
81600
81600
  }
81601
81601
  };
81602
81602
  for (let i = this.relevantChanges.length - 1; i >= 0; i--) {
81603
- if (_optionalChain([this, 'access', _191 => _191.relevantChanges, 'access', _192 => _192[i], 'optionalAccess', _193 => _193.isBreaking])) {
81603
+ if (_optionalChain([this, 'access', _193 => _193.relevantChanges, 'access', _194 => _194[i], 'optionalAccess', _195 => _195.isBreaking])) {
81604
81604
  const change = this.relevantChanges[i];
81605
81605
  if (change) {
81606
81606
  this.additionalChangesForAuthorsSection.push(change);
@@ -81640,7 +81640,7 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
81640
81640
  }
81641
81641
  renderDependencyBumps() {
81642
81642
  const markdownLines = ["", "### Updated Dependencies", ""];
81643
- _optionalChain([this, 'access', _194 => _194.dependencyBumps, 'optionalAccess', _195 => _195.forEach, 'call', _196 => _196(({ dependencyName, newVersion }) => {
81643
+ _optionalChain([this, 'access', _196 => _196.dependencyBumps, 'optionalAccess', _197 => _197.forEach, 'call', _198 => _198(({ dependencyName, newVersion }) => {
81644
81644
  const markdownLine = `- Updated ${dependencyName} to ${newVersion}`;
81645
81645
  if (!markdownLines.includes(markdownLine)) {
81646
81646
  markdownLines.push(markdownLine);
@@ -81660,12 +81660,12 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
81660
81660
  }
81661
81661
  for (const author of change.authors) {
81662
81662
  const name = this.formatName(author.name);
81663
- if (!name || name.includes("[bot]") || name === _optionalChain([this, 'access', _197 => _197.workspaceConfig, 'optionalAccess', _198 => _198.bot, 'access', _199 => _199.name])) {
81663
+ if (!name || name.includes("[bot]") || name === _optionalChain([this, 'access', _199 => _199.workspaceConfig, 'optionalAccess', _200 => _200.bot, 'access', _201 => _201.name])) {
81664
81664
  continue;
81665
81665
  }
81666
81666
  if (_authors.has(name)) {
81667
81667
  const entry = _authors.get(name);
81668
- _optionalChain([entry, 'optionalAccess', _200 => _200.email, 'access', _201 => _201.add, 'call', _202 => _202(author.email)]);
81668
+ _optionalChain([entry, 'optionalAccess', _202 => _202.email, 'access', _203 => _203.add, 'call', _204 => _204(author.email)]);
81669
81669
  } else {
81670
81670
  _authors.set(name, { email: /* @__PURE__ */ new Set([author.email]) });
81671
81671
  }
@@ -81689,7 +81689,7 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
81689
81689
  }
81690
81690
  }
81691
81691
  const { data } = await axios_default.get(`https://ungh.cc/users/find/${email}`).catch(() => ({ data: { user: null } }));
81692
- if (_optionalChain([data, 'optionalAccess', _203 => _203.user])) {
81692
+ if (_optionalChain([data, 'optionalAccess', _205 => _205.user])) {
81693
81693
  meta.github = data.user.username;
81694
81694
  break;
81695
81695
  }
@@ -81743,7 +81743,7 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
81743
81743
  // src/release/github.ts
81744
81744
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
81745
81745
  var import_devkit = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_devkit(), 1);
81746
- var chalk2 = _chunkIG6EXAQUcjs.__toESM.call(void 0, _chunkXE275LJTcjs.require_source.call(void 0, ), 1);
81746
+ var chalk2 = _chunkIG6EXAQUcjs.__toESM.call(void 0, _chunkMZP2IRY3cjs.require_source.call(void 0, ), 1);
81747
81747
  var import_enquirer = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_enquirer(), 1);
81748
81748
 
81749
81749
 
@@ -81808,7 +81808,7 @@ async function createOrUpdateGithubRelease(createReleaseConfig, releaseVersion,
81808
81808
  repo: githubRepoData.slug,
81809
81809
  hostname: githubRepoData.hostname,
81810
81810
  apiBaseUrl: githubRepoData.apiBaseUrl,
81811
- token: _optionalChain([tokenData, 'optionalAccess', _204 => _204.token]) || null
81811
+ token: _optionalChain([tokenData, 'optionalAccess', _206 => _206.token]) || null
81812
81812
  };
81813
81813
  let existingGithubReleaseForVersion;
81814
81814
  try {
@@ -81817,7 +81817,7 @@ async function createOrUpdateGithubRelease(createReleaseConfig, releaseVersion,
81817
81817
  releaseVersion.gitTag
81818
81818
  );
81819
81819
  } catch (err) {
81820
- if (_optionalChain([err, 'access', _205 => _205.response, 'optionalAccess', _206 => _206.status]) === 401) {
81820
+ if (_optionalChain([err, 'access', _207 => _207.response, 'optionalAccess', _208 => _208.status]) === 401) {
81821
81821
  import_devkit.output.error({
81822
81822
  title: `Unable to resolve data via the GitHub API. You can use any of the following options to resolve this:`,
81823
81823
  bodyLines: [
@@ -81827,7 +81827,7 @@ async function createOrUpdateGithubRelease(createReleaseConfig, releaseVersion,
81827
81827
  });
81828
81828
  process.exit(1);
81829
81829
  }
81830
- if (_optionalChain([err, 'access', _207 => _207.response, 'optionalAccess', _208 => _208.status]) === 404) {
81830
+ if (_optionalChain([err, 'access', _209 => _209.response, 'optionalAccess', _210 => _210.status]) === 404) {
81831
81831
  } else {
81832
81832
  throw err;
81833
81833
  }
@@ -81844,7 +81844,7 @@ async function createOrUpdateGithubRelease(createReleaseConfig, releaseVersion,
81844
81844
  }
81845
81845
  console.log("");
81846
81846
  _printchanges.printDiff.call(void 0,
81847
- _optionalChain([existingGithubReleaseForVersion, 'optionalAccess', _209 => _209.body]) ? existingGithubReleaseForVersion.body : "",
81847
+ _optionalChain([existingGithubReleaseForVersion, 'optionalAccess', _211 => _211.body]) ? existingGithubReleaseForVersion.body : "",
81848
81848
  changelogContents,
81849
81849
  3,
81850
81850
  _shared.noDiffInChangelogMessage
@@ -81871,7 +81871,7 @@ async function createOrUpdateGithubReleaseInternal(githubRequestConfig, release,
81871
81871
  if (result2.status === "manual") {
81872
81872
  if (result2.error) {
81873
81873
  process.exitCode = 1;
81874
- if (_optionalChain([result2, 'access', _210 => _210.error, 'access', _211 => _211.response, 'optionalAccess', _212 => _212.data])) {
81874
+ if (_optionalChain([result2, 'access', _212 => _212.error, 'access', _213 => _213.response, 'optionalAccess', _214 => _214.data])) {
81875
81875
  import_devkit.output.error({
81876
81876
  title: `A GitHub API Error occurred when creating/updating the release`,
81877
81877
  bodyLines: [
@@ -82091,9 +82091,9 @@ async function isUserAnOrganizationMember(userId, config, remoteName = "origin")
82091
82091
  repo: repoData.slug,
82092
82092
  hostname: repoData.hostname,
82093
82093
  apiBaseUrl: repoData.apiBaseUrl,
82094
- token: _optionalChain([tokenData, 'optionalAccess', _213 => _213.token]) || null
82094
+ token: _optionalChain([tokenData, 'optionalAccess', _215 => _215.token]) || null
82095
82095
  },
82096
- `/orgs/${config.organization}/members/${userId}`,
82096
+ `/orgs/${typeof config.organization === "string" ? config.organization : _optionalChain([config, 'access', _216 => _216.organization, 'optionalAccess', _217 => _217.name])}/members/${userId}`,
82097
82097
  {}
82098
82098
  );
82099
82099
  if (result2.status !== 204) {
@@ -82108,7 +82108,7 @@ async function isUserAnOrganizationMember(userId, config, remoteName = "origin")
82108
82108
  // src/release/changelog.ts
82109
82109
  function createAPI(overrideReleaseConfig) {
82110
82110
  return async function releaseChangelog(args) {
82111
- const workspaceConfig = await _chunkXE275LJTcjs.getWorkspaceConfig.call(void 0, );
82111
+ const workspaceConfig = await _chunkMZP2IRY3cjs.getWorkspaceConfig.call(void 0, );
82112
82112
  const projectGraph = await _projectgraph.createProjectGraphAsync.call(void 0, { exitOnError: true });
82113
82113
  const nxJson = _nxjson.readNxJson.call(void 0, );
82114
82114
  const userProvidedReleaseConfig = _deepmergejson.deepMergeJson.call(void 0,
@@ -82169,7 +82169,7 @@ function createAPI(overrideReleaseConfig) {
82169
82169
  if (args.deleteVersionPlans === void 0) {
82170
82170
  args.deleteVersionPlans = true;
82171
82171
  }
82172
- const changelogGenerationEnabled = !!_optionalChain([nxReleaseConfig, 'optionalAccess', _214 => _214.changelog, 'optionalAccess', _215 => _215.workspaceChangelog]) || _optionalChain([nxReleaseConfig, 'optionalAccess', _216 => _216.groups]) && Object.values(_optionalChain([nxReleaseConfig, 'optionalAccess', _217 => _217.groups])).some((g) => g.changelog);
82172
+ const changelogGenerationEnabled = !!_optionalChain([nxReleaseConfig, 'optionalAccess', _218 => _218.changelog, 'optionalAccess', _219 => _219.workspaceChangelog]) || _optionalChain([nxReleaseConfig, 'optionalAccess', _220 => _220.groups]) && Object.values(_optionalChain([nxReleaseConfig, 'optionalAccess', _221 => _221.groups])).some((g) => g.changelog);
82173
82173
  if (!changelogGenerationEnabled) {
82174
82174
  _output.output.warn({
82175
82175
  title: `Changelogs are disabled. No changelog entries will be generated`,
@@ -82180,7 +82180,7 @@ function createAPI(overrideReleaseConfig) {
82180
82180
  return {};
82181
82181
  }
82182
82182
  const tree = new (0, _tree.FsTree)(_workspaceroot.workspaceRoot, !!args.verbose);
82183
- const useAutomaticFromRef = _optionalChain([nxReleaseConfig, 'optionalAccess', _218 => _218.changelog, 'optionalAccess', _219 => _219.automaticFromRef]) || args.firstRelease;
82183
+ const useAutomaticFromRef = _optionalChain([nxReleaseConfig, 'optionalAccess', _222 => _222.changelog, 'optionalAccess', _223 => _223.automaticFromRef]) || args.firstRelease;
82184
82184
  const { workspaceChangelogVersion, projectsVersionData } = resolveChangelogVersions(
82185
82185
  args,
82186
82186
  releaseGroups,
@@ -82189,20 +82189,20 @@ function createAPI(overrideReleaseConfig) {
82189
82189
  const to = args.to || "HEAD";
82190
82190
  const toSHA = await _git.getCommitHash.call(void 0, to);
82191
82191
  const headSHA = to === "HEAD" ? toSHA : await _git.getCommitHash.call(void 0, "HEAD");
82192
- const autoCommitEnabled = _nullishCoalesce(args.gitCommit, () => ( _optionalChain([nxReleaseConfig, 'access', _220 => _220.changelog, 'optionalAccess', _221 => _221.git, 'access', _222 => _222.commit])));
82192
+ const autoCommitEnabled = _nullishCoalesce(args.gitCommit, () => ( _optionalChain([nxReleaseConfig, 'access', _224 => _224.changelog, 'optionalAccess', _225 => _225.git, 'access', _226 => _226.commit])));
82193
82193
  if (autoCommitEnabled && headSHA !== toSHA) {
82194
82194
  throw new Error(
82195
82195
  `You are attempting to recreate the changelog for an old release (Head: "${headSHA}", To: "${toSHA}", From: "${args.from}"), but you have enabled auto-commit mode. Please disable auto-commit mode by updating your nx.json, or passing --git-commit=false`
82196
82196
  );
82197
82197
  }
82198
- const commitMessage = args.gitCommitMessage || _optionalChain([nxReleaseConfig, 'access', _223 => _223.changelog, 'optionalAccess', _224 => _224.git, 'optionalAccess', _225 => _225.commitMessage]);
82198
+ const commitMessage = args.gitCommitMessage || _optionalChain([nxReleaseConfig, 'access', _227 => _227.changelog, 'optionalAccess', _228 => _228.git, 'optionalAccess', _229 => _229.commitMessage]);
82199
82199
  const commitMessageValues = _shared.createCommitMessageValues.call(void 0,
82200
82200
  releaseGroups,
82201
82201
  releaseGroupToFilteredProjects,
82202
82202
  projectsVersionData,
82203
82203
  commitMessage
82204
82204
  );
82205
- const gitTagValues = _nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'access', _226 => _226.changelog, 'optionalAccess', _227 => _227.git, 'access', _228 => _228.tag]))) ? _shared.createGitTagValues.call(void 0,
82205
+ const gitTagValues = _nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'access', _230 => _230.changelog, 'optionalAccess', _231 => _231.git, 'access', _232 => _232.tag]))) ? _shared.createGitTagValues.call(void 0,
82206
82206
  releaseGroups,
82207
82207
  releaseGroupToFilteredProjects,
82208
82208
  projectsVersionData
@@ -82263,7 +82263,7 @@ function createAPI(overrideReleaseConfig) {
82263
82263
  nxReleaseConfig.releaseTagPattern,
82264
82264
  {},
82265
82265
  nxReleaseConfig.releaseTagPatternCheckAllBranchesWhen
82266
- )), 'optionalAccess', async _229 => _229.tag]);
82266
+ )), 'optionalAccess', async _233 => _233.tag]);
82267
82267
  if (!workspaceChangelogFromRef) {
82268
82268
  if (useAutomaticFromRef) {
82269
82269
  workspaceChangelogFromRef = await _git.getFirstGitCommit.call(void 0, );
@@ -82317,7 +82317,7 @@ function createAPI(overrideReleaseConfig) {
82317
82317
  )
82318
82318
  });
82319
82319
  if (workspaceChangelog && shouldCreateGitHubRelease(
82320
- _optionalChain([nxReleaseConfig, 'access', _230 => _230.changelog, 'optionalAccess', _231 => _231.workspaceChangelog]),
82320
+ _optionalChain([nxReleaseConfig, 'access', _234 => _234.changelog, 'optionalAccess', _235 => _235.workspaceChangelog]),
82321
82321
  args.createRelease
82322
82322
  )) {
82323
82323
  postGitTasks.push(async (latestCommit) => {
@@ -82331,7 +82331,7 @@ function createAPI(overrideReleaseConfig) {
82331
82331
 
82332
82332
  ${contents}`);
82333
82333
  await createOrUpdateGithubRelease(
82334
- _optionalChain([nxReleaseConfig, 'access', _232 => _232.changelog, 'optionalAccess', _233 => _233.workspaceChangelog]) ? _optionalChain([nxReleaseConfig, 'access', _234 => _234.changelog, 'optionalAccess', _235 => _235.workspaceChangelog, 'access', _236 => _236.createRelease]) : _github.defaultCreateReleaseProvider,
82334
+ _optionalChain([nxReleaseConfig, 'access', _236 => _236.changelog, 'optionalAccess', _237 => _237.workspaceChangelog]) ? _optionalChain([nxReleaseConfig, 'access', _238 => _238.changelog, 'optionalAccess', _239 => _239.workspaceChangelog, 'access', _240 => _240.createRelease]) : _github.defaultCreateReleaseProvider,
82335
82335
  workspaceChangelog.releaseVersion,
82336
82336
  contents,
82337
82337
  latestCommit,
@@ -82349,13 +82349,13 @@ ${contents}`);
82349
82349
  continue;
82350
82350
  }
82351
82351
  for (const project of releaseGroup.projects) {
82352
- if (!_optionalChain([projectsVersionData, 'access', _237 => _237[project], 'optionalAccess', _238 => _238.newVersion])) {
82352
+ if (!_optionalChain([projectsVersionData, 'access', _241 => _241[project], 'optionalAccess', _242 => _242.newVersion])) {
82353
82353
  continue;
82354
82354
  }
82355
82355
  const dependentProjects = (projectsVersionData[project].dependentProjects || []).map((dep) => {
82356
82356
  return {
82357
82357
  dependencyName: dep.source,
82358
- newVersion: _optionalChain([projectsVersionData, 'access', _239 => _239[dep.source], 'optionalAccess', _240 => _240.newVersion])
82358
+ newVersion: _optionalChain([projectsVersionData, 'access', _243 => _243[dep.source], 'optionalAccess', _244 => _244.newVersion])
82359
82359
  };
82360
82360
  }).filter((b) => b.newVersion !== null);
82361
82361
  for (const dependent of dependentProjects) {
@@ -82377,13 +82377,13 @@ ${contents}`);
82377
82377
  if (config === false) {
82378
82378
  continue;
82379
82379
  }
82380
- const projects = _optionalChain([args, 'access', _241 => _241.projects, 'optionalAccess', _242 => _242.length]) ? (
82380
+ const projects = _optionalChain([args, 'access', _245 => _245.projects, 'optionalAccess', _246 => _246.length]) ? (
82381
82381
  // If the user has passed a list of projects, we need to use the filtered list of projects within the release group, plus any dependents
82382
82382
  Array.from(releaseGroupToFilteredProjects.get(releaseGroup)).flatMap(
82383
82383
  (project) => {
82384
82384
  return [
82385
82385
  project,
82386
- ..._optionalChain([projectsVersionData, 'access', _243 => _243[project], 'optionalAccess', _244 => _244.dependentProjects, 'access', _245 => _245.map, 'call', _246 => _246(
82386
+ ..._optionalChain([projectsVersionData, 'access', _247 => _247[project], 'optionalAccess', _248 => _248.dependentProjects, 'access', _249 => _249.map, 'call', _250 => _250(
82387
82387
  (dep) => dep.source
82388
82388
  )]) || []
82389
82389
  ];
@@ -82428,14 +82428,14 @@ ${contents}`);
82428
82428
  releaseGroupName: releaseGroup.name
82429
82429
  },
82430
82430
  releaseGroup.releaseTagPatternCheckAllBranchesWhen
82431
- )), 'optionalAccess', async _247 => _247.tag]);
82431
+ )), 'optionalAccess', async _251 => _251.tag]);
82432
82432
  if (!fromRef && useAutomaticFromRef) {
82433
82433
  const firstCommit = await _git.getFirstGitCommit.call(void 0, );
82434
82434
  const allCommits = await getCommits(firstCommit, toSHA);
82435
82435
  const commitsForProject = allCommits.filter(
82436
82436
  (c) => c.affectedFiles.find((f) => f.startsWith(project.data.root))
82437
82437
  );
82438
- fromRef = _optionalChain([commitsForProject, 'access', _248 => _248[0], 'optionalAccess', _249 => _249.shortHash]);
82438
+ fromRef = _optionalChain([commitsForProject, 'access', _252 => _252[0], 'optionalAccess', _253 => _253.shortHash]);
82439
82439
  if (args.verbose) {
82440
82440
  console.log(
82441
82441
  `Determined --from ref for ${project.name} from the first commit in which it exists: ${fromRef}`
@@ -82563,7 +82563,7 @@ ${contents}`);
82563
82563
  releaseGroup.releaseTagPattern,
82564
82564
  {},
82565
82565
  releaseGroup.releaseTagPatternCheckAllBranchesWhen
82566
- )), 'optionalAccess', async _250 => _250.tag]);
82566
+ )), 'optionalAccess', async _254 => _254.tag]);
82567
82567
  if (!fromRef) {
82568
82568
  if (useAutomaticFromRef) {
82569
82569
  fromRef = await _git.getFirstGitCommit.call(void 0, );
@@ -82752,17 +82752,17 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
82752
82752
  });
82753
82753
  deletedFiles = Array.from(planFiles);
82754
82754
  }
82755
- if (_nullishCoalesce(args.gitCommit, () => ( _optionalChain([nxReleaseConfig, 'access', _251 => _251.changelog, 'optionalAccess', _252 => _252.git, 'access', _253 => _253.commit])))) {
82755
+ if (_nullishCoalesce(args.gitCommit, () => ( _optionalChain([nxReleaseConfig, 'access', _255 => _255.changelog, 'optionalAccess', _256 => _256.git, 'access', _257 => _257.commit])))) {
82756
82756
  await commitChanges({
82757
82757
  changedFiles,
82758
82758
  deletedFiles,
82759
82759
  isDryRun: !!args.dryRun,
82760
82760
  isVerbose: !!args.verbose,
82761
82761
  gitCommitMessages: commitMessageValues,
82762
- gitCommitArgs: _nullishCoalesce(args.gitCommitArgs, () => ( _optionalChain([nxReleaseConfig, 'access', _254 => _254.changelog, 'optionalAccess', _255 => _255.git, 'access', _256 => _256.commitArgs])))
82762
+ gitCommitArgs: _nullishCoalesce(args.gitCommitArgs, () => ( _optionalChain([nxReleaseConfig, 'access', _258 => _258.changelog, 'optionalAccess', _259 => _259.git, 'access', _260 => _260.commitArgs])))
82763
82763
  });
82764
82764
  latestCommit = await _git.getCommitHash.call(void 0, "HEAD");
82765
- } else if ((_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'access', _257 => _257.changelog, 'optionalAccess', _258 => _258.git, 'access', _259 => _259.stageChanges])))) && changes.length) {
82765
+ } else if ((_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'access', _261 => _261.changelog, 'optionalAccess', _262 => _262.git, 'access', _263 => _263.stageChanges])))) && changes.length) {
82766
82766
  _output.output.logSingleLine(`Staging changed files with git`);
82767
82767
  await _git.gitAdd.call(void 0, {
82768
82768
  changedFiles,
@@ -82771,19 +82771,19 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
82771
82771
  verbose: args.verbose
82772
82772
  });
82773
82773
  }
82774
- if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'access', _260 => _260.changelog, 'optionalAccess', _261 => _261.git, 'access', _262 => _262.tag])))) {
82774
+ if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'access', _264 => _264.changelog, 'optionalAccess', _265 => _265.git, 'access', _266 => _266.tag])))) {
82775
82775
  _output.output.logSingleLine(`Tagging commit with git`);
82776
82776
  for (const tag of gitTagValues) {
82777
82777
  await gitTag({
82778
82778
  tag,
82779
- message: args.gitTagMessage || _optionalChain([nxReleaseConfig, 'access', _263 => _263.changelog, 'optionalAccess', _264 => _264.git, 'access', _265 => _265.tagMessage]),
82780
- additionalArgs: args.gitTagArgs || _optionalChain([nxReleaseConfig, 'access', _266 => _266.changelog, 'optionalAccess', _267 => _267.git, 'access', _268 => _268.tagArgs]),
82779
+ message: args.gitTagMessage || _optionalChain([nxReleaseConfig, 'access', _267 => _267.changelog, 'optionalAccess', _268 => _268.git, 'access', _269 => _269.tagMessage]),
82780
+ additionalArgs: args.gitTagArgs || _optionalChain([nxReleaseConfig, 'access', _270 => _270.changelog, 'optionalAccess', _271 => _271.git, 'access', _272 => _272.tagArgs]),
82781
82781
  dryRun: args.dryRun,
82782
82782
  verbose: args.verbose
82783
82783
  });
82784
82784
  }
82785
82785
  }
82786
- if (_nullishCoalesce(args.gitPush, () => ( _optionalChain([nxReleaseConfig, 'access', _269 => _269.changelog, 'optionalAccess', _270 => _270.git, 'access', _271 => _271.push])))) {
82786
+ if (_nullishCoalesce(args.gitPush, () => ( _optionalChain([nxReleaseConfig, 'access', _273 => _273.changelog, 'optionalAccess', _274 => _274.git, 'access', _275 => _275.push])))) {
82787
82787
  _output.output.logSingleLine(`Pushing to git remote "${args.gitRemote}"`);
82788
82788
  await _git.gitPush.call(void 0, {
82789
82789
  gitRemote: args.gitRemote,
@@ -82803,13 +82803,13 @@ async function generateChangelogForWorkspace({
82803
82803
  workspaceChangelogVersion,
82804
82804
  changes
82805
82805
  }) {
82806
- const workspaceConfig = await _chunkXE275LJTcjs.getWorkspaceConfig.call(void 0, );
82806
+ const workspaceConfig = await _chunkMZP2IRY3cjs.getWorkspaceConfig.call(void 0, );
82807
82807
  if (!workspaceConfig) {
82808
82808
  throw new Error(
82809
82809
  `Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
82810
82810
  );
82811
82811
  }
82812
- const config = _optionalChain([nxReleaseConfig, 'access', _272 => _272.changelog, 'optionalAccess', _273 => _273.workspaceChangelog]);
82812
+ const config = _optionalChain([nxReleaseConfig, 'access', _276 => _276.changelog, 'optionalAccess', _277 => _277.workspaceChangelog]);
82813
82813
  if (config === false) {
82814
82814
  return;
82815
82815
  }
@@ -82831,7 +82831,7 @@ async function generateChangelogForWorkspace({
82831
82831
  });
82832
82832
  return;
82833
82833
  }
82834
- if (_optionalChain([Object, 'access', _274 => _274.values, 'call', _275 => _275(_nullishCoalesce(nxReleaseConfig.groups, () => ( {}))), 'access', _276 => _276[0], 'optionalAccess', _277 => _277.projectsRelationship]) === "independent") {
82834
+ if (_optionalChain([Object, 'access', _278 => _278.values, 'call', _279 => _279(_nullishCoalesce(nxReleaseConfig.groups, () => ( {}))), 'access', _280 => _280[0], 'optionalAccess', _281 => _281.projectsRelationship]) === "independent") {
82835
82835
  _output.output.warn({
82836
82836
  title: `Workspace changelog is enabled, but you have configured an independent projects relationship. This is not supported, so workspace changelog will be disabled.`,
82837
82837
  bodyLines: [
@@ -82897,7 +82897,7 @@ async function generateChangelogForWorkspace({
82897
82897
  releaseVersion,
82898
82898
  interpolatedTreePath,
82899
82899
  contents,
82900
- tree.exists(interpolatedTreePath) ? _optionalChain([tree, 'access', _278 => _278.read, 'call', _279 => _279(interpolatedTreePath), 'optionalAccess', _280 => _280.toString, 'call', _281 => _281()]) : "",
82900
+ tree.exists(interpolatedTreePath) ? _optionalChain([tree, 'access', _282 => _282.read, 'call', _283 => _283(interpolatedTreePath), 'optionalAccess', _284 => _284.toString, 'call', _285 => _285()]) : "",
82901
82901
  null,
82902
82902
  workspaceConfig
82903
82903
  )
@@ -82919,7 +82919,7 @@ async function generateChangelogForProjects({
82919
82919
  nxReleaseConfig,
82920
82920
  projectToAdditionalDependencyBumps
82921
82921
  }) {
82922
- const workspaceConfig = await _chunkXE275LJTcjs.getWorkspaceConfig.call(void 0, );
82922
+ const workspaceConfig = await _chunkMZP2IRY3cjs.getWorkspaceConfig.call(void 0, );
82923
82923
  if (!workspaceConfig) {
82924
82924
  throw new Error(
82925
82925
  `Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
@@ -82942,7 +82942,7 @@ async function generateChangelogForProjects({
82942
82942
  workspaceRoot: ""
82943
82943
  });
82944
82944
  }
82945
- const newVersion = _optionalChain([projectsVersionData, 'access', _282 => _282[project.name], 'optionalAccess', _283 => _283.newVersion]);
82945
+ const newVersion = _optionalChain([projectsVersionData, 'access', _286 => _286[project.name], 'optionalAccess', _287 => _287.newVersion]);
82946
82946
  if (!newVersion) {
82947
82947
  continue;
82948
82948
  }
@@ -82998,7 +82998,7 @@ ${contents}`.trim()
82998
82998
  releaseVersion,
82999
82999
  interpolatedTreePath,
83000
83000
  contents,
83001
- tree.exists(interpolatedTreePath) ? _optionalChain([tree, 'access', _284 => _284.read, 'call', _285 => _285(interpolatedTreePath), 'optionalAccess', _286 => _286.toString, 'call', _287 => _287()]) : "",
83001
+ tree.exists(interpolatedTreePath) ? _optionalChain([tree, 'access', _288 => _288.read, 'call', _289 => _289(interpolatedTreePath), 'optionalAccess', _290 => _290.toString, 'call', _291 => _291()]) : "",
83002
83002
  project.name,
83003
83003
  workspaceConfig
83004
83004
  )
@@ -83022,11 +83022,11 @@ ${contents}`.trim()
83022
83022
  return projectChangelogs;
83023
83023
  }
83024
83024
  function checkChangelogFilesEnabled(nxReleaseConfig) {
83025
- if (_optionalChain([nxReleaseConfig, 'access', _288 => _288.changelog, 'optionalAccess', _289 => _289.workspaceChangelog]) && _optionalChain([nxReleaseConfig, 'access', _290 => _290.changelog, 'optionalAccess', _291 => _291.workspaceChangelog, 'access', _292 => _292.file])) {
83025
+ if (_optionalChain([nxReleaseConfig, 'access', _292 => _292.changelog, 'optionalAccess', _293 => _293.workspaceChangelog]) && _optionalChain([nxReleaseConfig, 'access', _294 => _294.changelog, 'optionalAccess', _295 => _295.workspaceChangelog, 'access', _296 => _296.file])) {
83026
83026
  return true;
83027
83027
  }
83028
83028
  return Object.values(_nullishCoalesce(nxReleaseConfig.groups, () => ( {}))).some(
83029
- (releaseGroup) => typeof _optionalChain([releaseGroup, 'optionalAccess', _293 => _293.changelog]) === "boolean" && releaseGroup.changelog || _optionalChain([releaseGroup, 'optionalAccess', _294 => _294.changelog, 'optionalAccess', _295 => _295.file])
83029
+ (releaseGroup) => typeof _optionalChain([releaseGroup, 'optionalAccess', _297 => _297.changelog]) === "boolean" && releaseGroup.changelog || _optionalChain([releaseGroup, 'optionalAccess', _298 => _298.changelog, 'optionalAccess', _299 => _299.file])
83030
83030
  );
83031
83031
  }
83032
83032
  async function getCommits(fromSHA, toSHA) {
@@ -83120,20 +83120,34 @@ function formatGithubReleaseNotes(releaseVersion, content, projectName, workspac
83120
83120
  if (!workspaceConfig) {
83121
83121
  return content;
83122
83122
  }
83123
- return `![${_optionalChain([titleCase, 'call', _296 => _296(workspaceConfig.organization), 'optionalAccess', _297 => _297.replaceAll, 'call', _298 => _298(" ", "-")])}](${workspaceConfig.release.banner})
83123
+ return `![${workspaceConfig.organization ? titleCase(
83124
+ typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization.name
83125
+ ) : ""}](${workspaceConfig.release.banner})
83124
83126
  ${workspaceConfig.release.header || ""}
83125
83127
 
83126
83128
  # ${projectName ? `${titleCase(projectName)} ` : ""}v${releaseVersion.rawVersion}
83127
83129
 
83128
- We at [${titleCase(workspaceConfig.organization)}](${workspaceConfig.homepage}) are very excited to announce the v${releaseVersion.rawVersion} release of the ${projectName ? titleCase(projectName) : workspaceConfig.name ? titleCase(workspaceConfig.name) : "Storm Software"} project! \u{1F680}
83130
+ We at [${workspaceConfig.organization ? titleCase(
83131
+ typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization.name
83132
+ ) : ""}](${workspaceConfig.homepage}) are very excited to announce the v${releaseVersion.rawVersion} release of the ${projectName ? titleCase(projectName) : workspaceConfig.name ? titleCase(workspaceConfig.name) : "Storm Software"} project! \u{1F680}
83129
83133
 
83130
83134
  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}). You can find guides, API references, and other documentation around this release (and much more) on [our documentation site](${workspaceConfig.docs}).
83131
83135
 
83132
- 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 giving [this repository](https://github.com/${workspaceConfig.organization}/${workspaceConfig.name}) a star \u2B50 on GitHub or [posting on X (Twitter)](https://x.com/intent/tweet?text=Check%20out%20the%20latest%20@${workspaceConfig.account.twitter}%20release%20${projectName ? `${_optionalChain([titleCase, 'call', _299 => _299(projectName), 'optionalAccess', _300 => _300.replaceAll, 'call', _301 => _301(" ", "%20")])}%20` : ""}v${releaseVersion.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${releaseVersion.gitTag}) about this release!
83136
+ 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 giving [this repository](https://github.com/${typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : _optionalChain([workspaceConfig, 'access', _300 => _300.organization, 'optionalAccess', _301 => _301.name])}/${workspaceConfig.name}) a star \u2B50 on GitHub or [posting on X (Twitter)](https://x.com/intent/tweet?text=Check%20out%20the%20latest%20@${workspaceConfig.account.twitter}%20release%20${projectName ? `${_optionalChain([titleCase, 'call', _302 => _302(projectName), 'optionalAccess', _303 => _303.replaceAll, 'call', _304 => _304(" ", "%20")])}%20` : ""}v${releaseVersion.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : _optionalChain([workspaceConfig, 'access', _305 => _305.organization, 'optionalAccess', _306 => _306.name])}/${workspaceConfig.name}/releases/tag/${releaseVersion.gitTag}) about this release!
83133
83137
 
83134
83138
  ## Release Notes
83135
83139
 
83136
- ${content.replaceAll(`## ${generateChangelogTitle(releaseVersion.rawVersion, projectName, workspaceConfig)}`, "").replaceAll(`# ${generateChangelogTitle(releaseVersion.rawVersion, projectName, workspaceConfig)}`, "")}
83140
+ ${content.replaceAll(
83141
+ `## ${generateChangelogTitle(
83142
+ releaseVersion.rawVersion,
83143
+ projectName,
83144
+ workspaceConfig
83145
+ )}`,
83146
+ ""
83147
+ ).replaceAll(
83148
+ `# ${generateChangelogTitle(releaseVersion.rawVersion, projectName, workspaceConfig)}`,
83149
+ ""
83150
+ )}
83137
83151
 
83138
83152
  ---
83139
83153
 
@@ -83214,12 +83228,12 @@ var runRelease = async (config, options) => {
83214
83228
  throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
83215
83229
  }
83216
83230
  if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config)) {
83217
- _chunkXE275LJTcjs.writeFatal.call(void 0,
83231
+ _chunkMZP2IRY3cjs.writeFatal.call(void 0,
83218
83232
  "You must be a member of the Storm Software organization to run the release process.",
83219
83233
  config
83220
83234
  );
83221
83235
  throw new Error(
83222
- `The GitHub actor "${process.env.GITHUB_ACTOR}" is not a member of the organization "${config.organization}". Only members of the organization can initiate releases.`
83236
+ `The GitHub actor "${process.env.GITHUB_ACTOR}" is not a member of the organization "${typeof config.organization === "string" ? config.organization : _optionalChain([config, 'access', _307 => _307.organization, 'optionalAccess', _308 => _308.name])}". Only members of the organization can initiate releases.`
83223
83237
  );
83224
83238
  }
83225
83239
  const name = config.bot.name;
@@ -83231,22 +83245,22 @@ var runRelease = async (config, options) => {
83231
83245
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
83232
83246
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
83233
83247
  process.env.NPM_CONFIG_PROVENANCE = "true";
83234
- _chunkXE275LJTcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
83248
+ _chunkMZP2IRY3cjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
83235
83249
  const nxJson = _nxjsonjs.readNxJson.call(void 0, );
83236
- _chunkXE275LJTcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
83250
+ _chunkMZP2IRY3cjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
83237
83251
  const to = options.head || process.env.NX_HEAD;
83238
83252
  const from = options.base || process.env.NX_BASE;
83239
- _chunkXE275LJTcjs.writeDebug.call(void 0,
83253
+ _chunkMZP2IRY3cjs.writeDebug.call(void 0,
83240
83254
  `Using the following Git SHAs to determine the release content:
83241
83255
  - From: ${from}
83242
83256
  - To: ${to}
83243
83257
  `,
83244
83258
  config
83245
83259
  );
83246
- if (_optionalChain([nxJson, 'access', _302 => _302.release, 'optionalAccess', _303 => _303.groups])) {
83260
+ if (_optionalChain([nxJson, 'access', _309 => _309.release, 'optionalAccess', _310 => _310.groups])) {
83247
83261
  nxJson.release.groups = Object.keys(nxJson.release.groups).reduce(
83248
83262
  (ret, groupName) => {
83249
- const groupConfig = _optionalChain([nxJson, 'access', _304 => _304.release, 'optionalAccess', _305 => _305.groups, 'optionalAccess', _306 => _306[groupName]]);
83263
+ const groupConfig = _optionalChain([nxJson, 'access', _311 => _311.release, 'optionalAccess', _312 => _312.groups, 'optionalAccess', _313 => _313[groupName]]);
83250
83264
  ret[groupName] = _chunkFMYKTN2Zcjs.defu.call(void 0, groupConfig, DEFAULT_RELEASE_GROUP_CONFIG);
83251
83265
  return ret;
83252
83266
  },
@@ -83257,18 +83271,18 @@ var runRelease = async (config, options) => {
83257
83271
  nxJson.release,
83258
83272
  DEFAULT_RELEASE_CONFIG
83259
83273
  );
83260
- _chunkXE275LJTcjs.writeInfo.call(void 0,
83274
+ _chunkMZP2IRY3cjs.writeInfo.call(void 0,
83261
83275
  "Using the following `nx.json` release configuration values",
83262
83276
  config
83263
83277
  );
83264
- _chunkXE275LJTcjs.writeInfo.call(void 0, nxReleaseConfig, config);
83278
+ _chunkMZP2IRY3cjs.writeInfo.call(void 0, nxReleaseConfig, config);
83265
83279
  const releaseVersion = _versionjs.createAPI.call(void 0, nxReleaseConfig);
83266
83280
  const releaseChangelog = createAPI(nxReleaseConfig);
83267
83281
  const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
83268
- _chunkXE275LJTcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
83282
+ _chunkMZP2IRY3cjs.writeDebug.call(void 0, "Determining the current release versions...", config);
83269
83283
  const { workspaceVersion, projectsVersionData } = await releaseVersion({
83270
83284
  dryRun: false,
83271
- verbose: _chunkXE275LJTcjs.isVerbose.call(void 0, config.logLevel),
83285
+ verbose: _chunkMZP2IRY3cjs.isVerbose.call(void 0, config.logLevel),
83272
83286
  preid: config.preid,
83273
83287
  deleteVersionPlans: false,
83274
83288
  stageChanges: true,
@@ -83276,27 +83290,27 @@ var runRelease = async (config, options) => {
83276
83290
  });
83277
83291
  await releaseChangelog({
83278
83292
  ...options,
83279
- version: _optionalChain([nxReleaseConfig, 'optionalAccess', _307 => _307.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
83293
+ version: _optionalChain([nxReleaseConfig, 'optionalAccess', _314 => _314.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
83280
83294
  versionData: projectsVersionData,
83281
83295
  dryRun: false,
83282
- verbose: _chunkXE275LJTcjs.isVerbose.call(void 0, config.logLevel),
83296
+ verbose: _chunkMZP2IRY3cjs.isVerbose.call(void 0, config.logLevel),
83283
83297
  to,
83284
83298
  from,
83285
83299
  gitCommit: true,
83286
83300
  gitCommitMessage: "release(monorepo): Publish workspace release updates"
83287
83301
  });
83288
- _chunkXE275LJTcjs.writeDebug.call(void 0, "Tagging commit with git", config);
83302
+ _chunkMZP2IRY3cjs.writeDebug.call(void 0, "Tagging commit with git", config);
83289
83303
  if (options.skipPublish) {
83290
- _chunkXE275LJTcjs.writeWarning.call(void 0,
83304
+ _chunkMZP2IRY3cjs.writeWarning.call(void 0,
83291
83305
  "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
83292
83306
  config
83293
83307
  );
83294
83308
  } else {
83295
83309
  const changedProjects = Object.keys(projectsVersionData).filter(
83296
- (key) => _optionalChain([projectsVersionData, 'access', _308 => _308[key], 'optionalAccess', _309 => _309.newVersion])
83310
+ (key) => _optionalChain([projectsVersionData, 'access', _315 => _315[key], 'optionalAccess', _316 => _316.newVersion])
83297
83311
  );
83298
83312
  if (changedProjects.length > 0) {
83299
- _chunkXE275LJTcjs.writeInfo.call(void 0,
83313
+ _chunkMZP2IRY3cjs.writeInfo.call(void 0,
83300
83314
  `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
83301
83315
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
83302
83316
  `,
@@ -83306,25 +83320,25 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
83306
83320
  const result2 = await releasePublish({
83307
83321
  ...options,
83308
83322
  dryRun: !!options.dryRun,
83309
- verbose: _chunkXE275LJTcjs.isVerbose.call(void 0, config.logLevel)
83323
+ verbose: _chunkMZP2IRY3cjs.isVerbose.call(void 0, config.logLevel)
83310
83324
  });
83311
83325
  const failedProjects = Object.keys(result2).filter(
83312
- (key) => _optionalChain([result2, 'access', _310 => _310[key], 'optionalAccess', _311 => _311.code]) && _optionalChain([result2, 'access', _312 => _312[key], 'optionalAccess', _313 => _313.code]) > 0
83326
+ (key) => _optionalChain([result2, 'access', _317 => _317[key], 'optionalAccess', _318 => _318.code]) && _optionalChain([result2, 'access', _319 => _319[key], 'optionalAccess', _320 => _320.code]) > 0
83313
83327
  );
83314
83328
  if (failedProjects.length > 0) {
83315
83329
  throw new Error(
83316
83330
  `The Storm release process was not completed successfully! One or more errors occured while running the \`nx-release-publish\` executor tasks.
83317
83331
 
83318
83332
  Please review the workflow details for the following project(s):
83319
- ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_optionalChain([result2, 'access', _314 => _314[failedProject], 'optionalAccess', _315 => _315.code])})`).join("\n")}
83333
+ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_optionalChain([result2, 'access', _321 => _321[failedProject], 'optionalAccess', _322 => _322.code])})`).join("\n")}
83320
83334
  `
83321
83335
  );
83322
83336
  }
83323
83337
  } else {
83324
- _chunkXE275LJTcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
83338
+ _chunkMZP2IRY3cjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
83325
83339
  }
83326
83340
  }
83327
- _chunkXE275LJTcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
83341
+ _chunkMZP2IRY3cjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
83328
83342
  };
83329
83343
  async function updatePackageManifests(projectsVersionData, config) {
83330
83344
  let projectGraph;
@@ -83338,26 +83352,26 @@ async function updatePackageManifests(projectsVersionData, config) {
83338
83352
  await Promise.all(
83339
83353
  Object.keys(projectsVersionData).map(async (node) => {
83340
83354
  const projectNode = projectGraph.nodes[node];
83341
- if (!_optionalChain([projectNode, 'optionalAccess', _316 => _316.data, 'access', _317 => _317.root])) {
83342
- _chunkXE275LJTcjs.writeWarning.call(void 0,
83355
+ if (!_optionalChain([projectNode, 'optionalAccess', _323 => _323.data, 'access', _324 => _324.root])) {
83356
+ _chunkMZP2IRY3cjs.writeWarning.call(void 0,
83343
83357
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
83344
83358
  config
83345
83359
  );
83346
83360
  return;
83347
83361
  }
83348
83362
  const versionData = projectsVersionData[node];
83349
- if (_optionalChain([projectNode, 'optionalAccess', _318 => _318.data, 'access', _319 => _319.root]) && versionData && versionData.newVersion !== null) {
83350
- _chunkXE275LJTcjs.writeTrace.call(void 0,
83363
+ if (_optionalChain([projectNode, 'optionalAccess', _325 => _325.data, 'access', _326 => _326.root]) && versionData && versionData.newVersion !== null) {
83364
+ _chunkMZP2IRY3cjs.writeTrace.call(void 0,
83351
83365
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
83352
83366
  `,
83353
83367
  config
83354
83368
  );
83355
- const projectRoot = _chunkXE275LJTcjs.joinPaths.call(void 0,
83369
+ const projectRoot = _chunkMZP2IRY3cjs.joinPaths.call(void 0,
83356
83370
  config.workspaceRoot,
83357
83371
  projectNode.data.root
83358
83372
  );
83359
- const packageJsonPath = _chunkXE275LJTcjs.joinPaths.call(void 0, projectRoot, "package.json");
83360
- const cargoTomlPath = _chunkXE275LJTcjs.joinPaths.call(void 0, projectRoot, "Cargo.toml");
83373
+ const packageJsonPath = _chunkMZP2IRY3cjs.joinPaths.call(void 0, projectRoot, "package.json");
83374
+ const cargoTomlPath = _chunkMZP2IRY3cjs.joinPaths.call(void 0, projectRoot, "Cargo.toml");
83361
83375
  if (_fs.existsSync.call(void 0, packageJsonPath)) {
83362
83376
  const packageJsonContent = await _promises.readFile.call(void 0, packageJsonPath, "utf8");
83363
83377
  const packageJson = JSON.parse(packageJsonContent);
@@ -83375,7 +83389,7 @@ async function updatePackageManifests(projectsVersionData, config) {
83375
83389
  })
83376
83390
  );
83377
83391
  } else {
83378
- _chunkXE275LJTcjs.writeWarning.call(void 0, "No project nodes found. Skipping manifest updates.", config);
83392
+ _chunkMZP2IRY3cjs.writeWarning.call(void 0, "No project nodes found. Skipping manifest updates.", config);
83379
83393
  }
83380
83394
  }
83381
83395
 
@@ -83383,8 +83397,8 @@ async function updatePackageManifests(projectsVersionData, config) {
83383
83397
  var _config = {};
83384
83398
  function createProgram(config) {
83385
83399
  _config = config;
83386
- _chunkXE275LJTcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
83387
- const root2 = _chunkXE275LJTcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
83400
+ _chunkMZP2IRY3cjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
83401
+ const root2 = _chunkMZP2IRY3cjs.findWorkspaceRootSafe.call(void 0, process.cwd());
83388
83402
  process.env.STORM_WORKSPACE_ROOT ??= root2;
83389
83403
  process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
83390
83404
  if (root2) {
@@ -83449,12 +83463,12 @@ async function commitAction({
83449
83463
  dryRun = false
83450
83464
  }) {
83451
83465
  try {
83452
- _chunkXE275LJTcjs.writeInfo.call(void 0,
83466
+ _chunkMZP2IRY3cjs.writeInfo.call(void 0,
83453
83467
  `\u26A1 Preparing to commit your changes. Please provide the requested details below...`,
83454
83468
  _config
83455
83469
  );
83456
83470
  await runCommit(config, dryRun);
83457
- _chunkXE275LJTcjs.writeSuccess.call(void 0,
83471
+ _chunkMZP2IRY3cjs.writeSuccess.call(void 0,
83458
83472
  `\u{1F389} Storm Commit processing completed successfully!
83459
83473
 
83460
83474
  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}
@@ -83462,7 +83476,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
83462
83476
  _config
83463
83477
  );
83464
83478
  } catch (error) {
83465
- _chunkXE275LJTcjs.writeFatal.call(void 0,
83479
+ _chunkMZP2IRY3cjs.writeFatal.call(void 0,
83466
83480
  `A fatal error occurred while running commit action:
83467
83481
 
83468
83482
  ${error.message}`,
@@ -83473,14 +83487,14 @@ ${error.message}`,
83473
83487
  }
83474
83488
  async function readmeAction(options) {
83475
83489
  try {
83476
- _chunkXE275LJTcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
83490
+ _chunkMZP2IRY3cjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
83477
83491
  await runReadme(options);
83478
- _chunkXE275LJTcjs.writeSuccess.call(void 0,
83492
+ _chunkMZP2IRY3cjs.writeSuccess.call(void 0,
83479
83493
  "Formatting of the workspace's README.md files is complete\n",
83480
83494
  _config
83481
83495
  );
83482
83496
  } catch (error) {
83483
- _chunkXE275LJTcjs.writeFatal.call(void 0,
83497
+ _chunkMZP2IRY3cjs.writeFatal.call(void 0,
83484
83498
  `A fatal error occurred while running README format action:
83485
83499
 
83486
83500
  ${error.message}`
@@ -83495,7 +83509,7 @@ async function releaseAction({
83495
83509
  dryRun
83496
83510
  }) {
83497
83511
  try {
83498
- _chunkXE275LJTcjs.writeInfo.call(void 0,
83512
+ _chunkMZP2IRY3cjs.writeInfo.call(void 0,
83499
83513
  "\u26A1 Running the Storm Release and Publish process on the workspace",
83500
83514
  _config
83501
83515
  );
@@ -83505,9 +83519,9 @@ async function releaseAction({
83505
83519
  base,
83506
83520
  head
83507
83521
  });
83508
- _chunkXE275LJTcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
83522
+ _chunkMZP2IRY3cjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
83509
83523
  } catch (error) {
83510
- _chunkXE275LJTcjs.writeFatal.call(void 0,
83524
+ _chunkMZP2IRY3cjs.writeFatal.call(void 0,
83511
83525
  `A fatal error occurred while running release action:
83512
83526
 
83513
83527
  ${error.message} ${error.stack ? `
@@ -83525,8 +83539,8 @@ async function commitLintAction({
83525
83539
  file
83526
83540
  }) {
83527
83541
  try {
83528
- _chunkXE275LJTcjs.writeInfo.call(void 0,
83529
- `\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.`,
83542
+ _chunkMZP2IRY3cjs.writeInfo.call(void 0,
83543
+ `\u26A1 Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : typeof _config.organization === "string" ? _config.organization : _optionalChain([_config, 'access', _327 => _327.organization, 'optionalAccess', _328 => _328.name]) ? _optionalChain([_config, 'access', _329 => _329.organization, 'optionalAccess', _330 => _330.name]) : "Storm-Software"} repository's commit messages.`,
83530
83544
  _config
83531
83545
  );
83532
83546
  await runCommitLint(_config, {
@@ -83534,12 +83548,12 @@ async function commitLintAction({
83534
83548
  message: message2,
83535
83549
  file
83536
83550
  });
83537
- _chunkXE275LJTcjs.writeSuccess.call(void 0,
83551
+ _chunkMZP2IRY3cjs.writeSuccess.call(void 0,
83538
83552
  "Linting the commit messages completed successfully!\n",
83539
83553
  _config
83540
83554
  );
83541
83555
  } catch (error) {
83542
- _chunkXE275LJTcjs.writeFatal.call(void 0,
83556
+ _chunkMZP2IRY3cjs.writeFatal.call(void 0,
83543
83557
  `A fatal error occurred while linting the commit messages:
83544
83558
 
83545
83559
  ${error.message}`,
@@ -83551,18 +83565,18 @@ ${error.message}`,
83551
83565
 
83552
83566
  // bin/git.ts
83553
83567
  void (async () => {
83554
- const config = await _chunkXE275LJTcjs.getConfig.call(void 0, );
83568
+ const config = await _chunkMZP2IRY3cjs.getConfig.call(void 0, );
83555
83569
  try {
83556
- _chunkXE275LJTcjs.handleProcess.call(void 0, config);
83570
+ _chunkMZP2IRY3cjs.handleProcess.call(void 0, config);
83557
83571
  const program2 = createProgram(config);
83558
83572
  await program2.parseAsync(process.argv);
83559
- _chunkXE275LJTcjs.writeSuccess.call(void 0,
83573
+ _chunkMZP2IRY3cjs.writeSuccess.call(void 0,
83560
83574
  `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
83561
83575
  config
83562
83576
  );
83563
- _chunkXE275LJTcjs.exitWithSuccess.call(void 0, config);
83577
+ _chunkMZP2IRY3cjs.exitWithSuccess.call(void 0, config);
83564
83578
  } catch (error) {
83565
- _chunkXE275LJTcjs.exitWithError.call(void 0, config);
83579
+ _chunkMZP2IRY3cjs.exitWithError.call(void 0, config);
83566
83580
  process.exit(1);
83567
83581
  }
83568
83582
  })();