@storm-software/git-tools 2.112.13 → 2.113.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
@@ -20,7 +20,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
20
20
 
21
21
 
22
22
 
23
- var _chunkM7I7GGGAcjs = require('./chunk-M7I7GGGA.cjs');
23
+ var _chunk27PMUKGGcjs = require('./chunk-27PMUKGG.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 = _chunkM7I7GGGAcjs.require_ansi_styles.call(void 0, );
3277
+ var ansiStyles2 = _chunk27PMUKGGcjs.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 = _chunkM7I7GGGAcjs.require_supports_color.call(void 0, );
15301
+ const supportsColor2 = _chunk27PMUKGGcjs.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
- _chunkM7I7GGGAcjs.writeInfo.call(void 0,
70472
+ _chunk27PMUKGGcjs.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 = _chunkM7I7GGGAcjs.joinPaths.call(void 0,
70480
+ const commitFile = _chunk27PMUKGGcjs.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
- _chunkM7I7GGGAcjs.writeWarning.call(void 0,
70497
+ _chunk27PMUKGGcjs.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
- _chunkM7I7GGGAcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
70503
+ _chunk27PMUKGGcjs.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
- _chunkM7I7GGGAcjs.writeWarning.call(void 0,
70507
+ _chunk27PMUKGGcjs.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
- _chunkM7I7GGGAcjs.writeWarning.call(void 0,
70515
+ _chunk27PMUKGGcjs.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
- _chunkM7I7GGGAcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
70538
+ _chunk27PMUKGGcjs.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
- _chunkM7I7GGGAcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
71699
+ _chunk27PMUKGGcjs.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 = _chunkM7I7GGGAcjs.joinPaths.call(void 0, project.root, "package.json");
71762
+ const packageJsonPath = _chunk27PMUKGGcjs.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 _chunkM7I7GGGAcjs.getConfig.call(void 0, );
71842
+ const config = await _chunk27PMUKGGcjs.getConfig.call(void 0, );
71843
71843
  const state = await createState(config, commitizenFile);
71844
71844
  if (dryRun) {
71845
- _chunkM7I7GGGAcjs.writeInfo.call(void 0, "Running in dry mode.", config);
71845
+ _chunk27PMUKGGcjs.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 = _chunkM7I7GGGAcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
71855
+ const commitMsgFile = _chunk27PMUKGGcjs.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
- _chunkM7I7GGGAcjs.writeDebug.call(void 0,
71868
+ _chunk27PMUKGGcjs.writeDebug.call(void 0,
71869
71869
  `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
71870
71870
  config
71871
71871
  );
71872
- _chunkM7I7GGGAcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
71872
+ _chunk27PMUKGGcjs.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, _chunkM7I7GGGAcjs.require_source.call(void 0, ), 1);
77655
+ var chalk3 = _chunkIG6EXAQUcjs.__toESM.call(void 0, _chunk27PMUKGGcjs.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);
@@ -81569,7 +81569,7 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
81569
81569
  };
81570
81570
  }
81571
81571
  async render() {
81572
- this.workspaceConfig = await _chunkM7I7GGGAcjs.getWorkspaceConfig.call(void 0, );
81572
+ this.workspaceConfig = await _chunk27PMUKGGcjs.getWorkspaceConfig.call(void 0, );
81573
81573
  return await super.render();
81574
81574
  }
81575
81575
  preprocessChanges() {
@@ -81629,7 +81629,15 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
81629
81629
  // }
81630
81630
  renderVersionTitle() {
81631
81631
  const isMajorVersion = `${(0, import_semver.major)(this.changelogEntryVersion)}.0.0` === this.changelogEntryVersion.replace(/^v/, "");
81632
- return isMajorVersion ? `# ${generateChangelogTitle(this.changelogEntryVersion, this.project, this.workspaceConfig)}` : `## ${generateChangelogTitle(this.changelogEntryVersion, this.project, this.workspaceConfig)}`;
81632
+ return isMajorVersion ? `# ${generateChangelogTitle(
81633
+ this.changelogEntryVersion,
81634
+ this.project,
81635
+ this.workspaceConfig
81636
+ )}` : `## ${generateChangelogTitle(
81637
+ this.changelogEntryVersion,
81638
+ this.project,
81639
+ this.workspaceConfig
81640
+ )}`;
81633
81641
  }
81634
81642
  renderBreakingChanges() {
81635
81643
  return [
@@ -81743,7 +81751,7 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
81743
81751
  // src/release/github.ts
81744
81752
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
81745
81753
  var import_devkit = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_devkit(), 1);
81746
- var chalk2 = _chunkIG6EXAQUcjs.__toESM.call(void 0, _chunkM7I7GGGAcjs.require_source.call(void 0, ), 1);
81754
+ var chalk2 = _chunkIG6EXAQUcjs.__toESM.call(void 0, _chunk27PMUKGGcjs.require_source.call(void 0, ), 1);
81747
81755
  var import_enquirer = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_enquirer(), 1);
81748
81756
 
81749
81757
 
@@ -82108,7 +82116,7 @@ async function isUserAnOrganizationMember(userId, config, remoteName = "origin")
82108
82116
  // src/release/changelog.ts
82109
82117
  function createAPI(overrideReleaseConfig) {
82110
82118
  return async function releaseChangelog(args) {
82111
- const workspaceConfig = await _chunkM7I7GGGAcjs.getWorkspaceConfig.call(void 0, );
82119
+ const workspaceConfig = await _chunk27PMUKGGcjs.getWorkspaceConfig.call(void 0, );
82112
82120
  const projectGraph = await _projectgraph.createProjectGraphAsync.call(void 0, { exitOnError: true });
82113
82121
  const nxJson = _nxjson.readNxJson.call(void 0, );
82114
82122
  const userProvidedReleaseConfig = _deepmergejson.deepMergeJson.call(void 0,
@@ -82803,7 +82811,7 @@ async function generateChangelogForWorkspace({
82803
82811
  workspaceChangelogVersion,
82804
82812
  changes
82805
82813
  }) {
82806
- const workspaceConfig = await _chunkM7I7GGGAcjs.getWorkspaceConfig.call(void 0, );
82814
+ const workspaceConfig = await _chunk27PMUKGGcjs.getWorkspaceConfig.call(void 0, );
82807
82815
  if (!workspaceConfig) {
82808
82816
  throw new Error(
82809
82817
  `Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
@@ -82919,7 +82927,7 @@ async function generateChangelogForProjects({
82919
82927
  nxReleaseConfig,
82920
82928
  projectToAdditionalDependencyBumps
82921
82929
  }) {
82922
- const workspaceConfig = await _chunkM7I7GGGAcjs.getWorkspaceConfig.call(void 0, );
82930
+ const workspaceConfig = await _chunk27PMUKGGcjs.getWorkspaceConfig.call(void 0, );
82923
82931
  if (!workspaceConfig) {
82924
82932
  throw new Error(
82925
82933
  `Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
@@ -83133,7 +83141,7 @@ We at [${workspaceConfig.organization ? titleCase(
83133
83141
 
83134
83142
  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}).
83135
83143
 
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!
83144
+ If you have any questions or comments, feel free to reach out to the team on [Discord](${workspaceConfig.socials.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.socials.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!
83137
83145
 
83138
83146
  ## Release Notes
83139
83147
 
@@ -83228,7 +83236,7 @@ var runRelease = async (config, options) => {
83228
83236
  throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
83229
83237
  }
83230
83238
  if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config)) {
83231
- _chunkM7I7GGGAcjs.writeFatal.call(void 0,
83239
+ _chunk27PMUKGGcjs.writeFatal.call(void 0,
83232
83240
  "You must be a member of the Storm Software organization to run the release process.",
83233
83241
  config
83234
83242
  );
@@ -83245,12 +83253,12 @@ var runRelease = async (config, options) => {
83245
83253
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
83246
83254
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
83247
83255
  process.env.NPM_CONFIG_PROVENANCE = "true";
83248
- _chunkM7I7GGGAcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
83256
+ _chunk27PMUKGGcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
83249
83257
  const nxJson = _nxjsonjs.readNxJson.call(void 0, );
83250
- _chunkM7I7GGGAcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
83258
+ _chunk27PMUKGGcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
83251
83259
  const to = options.head || process.env.NX_HEAD;
83252
83260
  const from = options.base || process.env.NX_BASE;
83253
- _chunkM7I7GGGAcjs.writeDebug.call(void 0,
83261
+ _chunk27PMUKGGcjs.writeDebug.call(void 0,
83254
83262
  `Using the following Git SHAs to determine the release content:
83255
83263
  - From: ${from}
83256
83264
  - To: ${to}
@@ -83271,18 +83279,18 @@ var runRelease = async (config, options) => {
83271
83279
  nxJson.release,
83272
83280
  DEFAULT_RELEASE_CONFIG
83273
83281
  );
83274
- _chunkM7I7GGGAcjs.writeInfo.call(void 0,
83282
+ _chunk27PMUKGGcjs.writeInfo.call(void 0,
83275
83283
  "Using the following `nx.json` release configuration values",
83276
83284
  config
83277
83285
  );
83278
- _chunkM7I7GGGAcjs.writeInfo.call(void 0, nxReleaseConfig, config);
83286
+ _chunk27PMUKGGcjs.writeInfo.call(void 0, nxReleaseConfig, config);
83279
83287
  const releaseVersion = _versionjs.createAPI.call(void 0, nxReleaseConfig);
83280
83288
  const releaseChangelog = createAPI(nxReleaseConfig);
83281
83289
  const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
83282
- _chunkM7I7GGGAcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
83290
+ _chunk27PMUKGGcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
83283
83291
  const { workspaceVersion, projectsVersionData } = await releaseVersion({
83284
83292
  dryRun: false,
83285
- verbose: _chunkM7I7GGGAcjs.isVerbose.call(void 0, config.logLevel),
83293
+ verbose: _chunk27PMUKGGcjs.isVerbose.call(void 0, config.logLevel),
83286
83294
  preid: config.preid,
83287
83295
  deleteVersionPlans: false,
83288
83296
  stageChanges: true,
@@ -83293,15 +83301,15 @@ var runRelease = async (config, options) => {
83293
83301
  version: _optionalChain([nxReleaseConfig, 'optionalAccess', _314 => _314.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
83294
83302
  versionData: projectsVersionData,
83295
83303
  dryRun: false,
83296
- verbose: _chunkM7I7GGGAcjs.isVerbose.call(void 0, config.logLevel),
83304
+ verbose: _chunk27PMUKGGcjs.isVerbose.call(void 0, config.logLevel),
83297
83305
  to,
83298
83306
  from,
83299
83307
  gitCommit: true,
83300
83308
  gitCommitMessage: "release(monorepo): Publish workspace release updates"
83301
83309
  });
83302
- _chunkM7I7GGGAcjs.writeDebug.call(void 0, "Tagging commit with git", config);
83310
+ _chunk27PMUKGGcjs.writeDebug.call(void 0, "Tagging commit with git", config);
83303
83311
  if (options.skipPublish) {
83304
- _chunkM7I7GGGAcjs.writeWarning.call(void 0,
83312
+ _chunk27PMUKGGcjs.writeWarning.call(void 0,
83305
83313
  "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
83306
83314
  config
83307
83315
  );
@@ -83310,7 +83318,7 @@ var runRelease = async (config, options) => {
83310
83318
  (key) => _optionalChain([projectsVersionData, 'access', _315 => _315[key], 'optionalAccess', _316 => _316.newVersion])
83311
83319
  );
83312
83320
  if (changedProjects.length > 0) {
83313
- _chunkM7I7GGGAcjs.writeInfo.call(void 0,
83321
+ _chunk27PMUKGGcjs.writeInfo.call(void 0,
83314
83322
  `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
83315
83323
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
83316
83324
  `,
@@ -83320,7 +83328,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
83320
83328
  const result2 = await releasePublish({
83321
83329
  ...options,
83322
83330
  dryRun: !!options.dryRun,
83323
- verbose: _chunkM7I7GGGAcjs.isVerbose.call(void 0, config.logLevel)
83331
+ verbose: _chunk27PMUKGGcjs.isVerbose.call(void 0, config.logLevel)
83324
83332
  });
83325
83333
  const failedProjects = Object.keys(result2).filter(
83326
83334
  (key) => _optionalChain([result2, 'access', _317 => _317[key], 'optionalAccess', _318 => _318.code]) && _optionalChain([result2, 'access', _319 => _319[key], 'optionalAccess', _320 => _320.code]) > 0
@@ -83335,10 +83343,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
83335
83343
  );
83336
83344
  }
83337
83345
  } else {
83338
- _chunkM7I7GGGAcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
83346
+ _chunk27PMUKGGcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
83339
83347
  }
83340
83348
  }
83341
- _chunkM7I7GGGAcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
83349
+ _chunk27PMUKGGcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
83342
83350
  };
83343
83351
  async function updatePackageManifests(projectsVersionData, config) {
83344
83352
  let projectGraph;
@@ -83353,7 +83361,7 @@ async function updatePackageManifests(projectsVersionData, config) {
83353
83361
  Object.keys(projectsVersionData).map(async (node) => {
83354
83362
  const projectNode = projectGraph.nodes[node];
83355
83363
  if (!_optionalChain([projectNode, 'optionalAccess', _323 => _323.data, 'access', _324 => _324.root])) {
83356
- _chunkM7I7GGGAcjs.writeWarning.call(void 0,
83364
+ _chunk27PMUKGGcjs.writeWarning.call(void 0,
83357
83365
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
83358
83366
  config
83359
83367
  );
@@ -83361,17 +83369,17 @@ async function updatePackageManifests(projectsVersionData, config) {
83361
83369
  }
83362
83370
  const versionData = projectsVersionData[node];
83363
83371
  if (_optionalChain([projectNode, 'optionalAccess', _325 => _325.data, 'access', _326 => _326.root]) && versionData && versionData.newVersion !== null) {
83364
- _chunkM7I7GGGAcjs.writeTrace.call(void 0,
83372
+ _chunk27PMUKGGcjs.writeTrace.call(void 0,
83365
83373
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
83366
83374
  `,
83367
83375
  config
83368
83376
  );
83369
- const projectRoot = _chunkM7I7GGGAcjs.joinPaths.call(void 0,
83377
+ const projectRoot = _chunk27PMUKGGcjs.joinPaths.call(void 0,
83370
83378
  config.workspaceRoot,
83371
83379
  projectNode.data.root
83372
83380
  );
83373
- const packageJsonPath = _chunkM7I7GGGAcjs.joinPaths.call(void 0, projectRoot, "package.json");
83374
- const cargoTomlPath = _chunkM7I7GGGAcjs.joinPaths.call(void 0, projectRoot, "Cargo.toml");
83381
+ const packageJsonPath = _chunk27PMUKGGcjs.joinPaths.call(void 0, projectRoot, "package.json");
83382
+ const cargoTomlPath = _chunk27PMUKGGcjs.joinPaths.call(void 0, projectRoot, "Cargo.toml");
83375
83383
  if (_fs.existsSync.call(void 0, packageJsonPath)) {
83376
83384
  const packageJsonContent = await _promises.readFile.call(void 0, packageJsonPath, "utf8");
83377
83385
  const packageJson = JSON.parse(packageJsonContent);
@@ -83389,7 +83397,7 @@ async function updatePackageManifests(projectsVersionData, config) {
83389
83397
  })
83390
83398
  );
83391
83399
  } else {
83392
- _chunkM7I7GGGAcjs.writeWarning.call(void 0, "No project nodes found. Skipping manifest updates.", config);
83400
+ _chunk27PMUKGGcjs.writeWarning.call(void 0, "No project nodes found. Skipping manifest updates.", config);
83393
83401
  }
83394
83402
  }
83395
83403
 
@@ -83397,8 +83405,8 @@ async function updatePackageManifests(projectsVersionData, config) {
83397
83405
  var _config = {};
83398
83406
  function createProgram(config) {
83399
83407
  _config = config;
83400
- _chunkM7I7GGGAcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
83401
- const root2 = _chunkM7I7GGGAcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
83408
+ _chunk27PMUKGGcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
83409
+ const root2 = _chunk27PMUKGGcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
83402
83410
  process.env.STORM_WORKSPACE_ROOT ??= root2;
83403
83411
  process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
83404
83412
  if (root2) {
@@ -83463,12 +83471,12 @@ async function commitAction({
83463
83471
  dryRun = false
83464
83472
  }) {
83465
83473
  try {
83466
- _chunkM7I7GGGAcjs.writeInfo.call(void 0,
83474
+ _chunk27PMUKGGcjs.writeInfo.call(void 0,
83467
83475
  `\u26A1 Preparing to commit your changes. Please provide the requested details below...`,
83468
83476
  _config
83469
83477
  );
83470
83478
  await runCommit(config, dryRun);
83471
- _chunkM7I7GGGAcjs.writeSuccess.call(void 0,
83479
+ _chunk27PMUKGGcjs.writeSuccess.call(void 0,
83472
83480
  `\u{1F389} Storm Commit processing completed successfully!
83473
83481
 
83474
83482
  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}
@@ -83476,7 +83484,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
83476
83484
  _config
83477
83485
  );
83478
83486
  } catch (error) {
83479
- _chunkM7I7GGGAcjs.writeFatal.call(void 0,
83487
+ _chunk27PMUKGGcjs.writeFatal.call(void 0,
83480
83488
  `A fatal error occurred while running commit action:
83481
83489
 
83482
83490
  ${error.message}`,
@@ -83487,14 +83495,14 @@ ${error.message}`,
83487
83495
  }
83488
83496
  async function readmeAction(options) {
83489
83497
  try {
83490
- _chunkM7I7GGGAcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
83498
+ _chunk27PMUKGGcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
83491
83499
  await runReadme(options);
83492
- _chunkM7I7GGGAcjs.writeSuccess.call(void 0,
83500
+ _chunk27PMUKGGcjs.writeSuccess.call(void 0,
83493
83501
  "Formatting of the workspace's README.md files is complete\n",
83494
83502
  _config
83495
83503
  );
83496
83504
  } catch (error) {
83497
- _chunkM7I7GGGAcjs.writeFatal.call(void 0,
83505
+ _chunk27PMUKGGcjs.writeFatal.call(void 0,
83498
83506
  `A fatal error occurred while running README format action:
83499
83507
 
83500
83508
  ${error.message}`
@@ -83509,7 +83517,7 @@ async function releaseAction({
83509
83517
  dryRun
83510
83518
  }) {
83511
83519
  try {
83512
- _chunkM7I7GGGAcjs.writeInfo.call(void 0,
83520
+ _chunk27PMUKGGcjs.writeInfo.call(void 0,
83513
83521
  "\u26A1 Running the Storm Release and Publish process on the workspace",
83514
83522
  _config
83515
83523
  );
@@ -83519,9 +83527,9 @@ async function releaseAction({
83519
83527
  base,
83520
83528
  head
83521
83529
  });
83522
- _chunkM7I7GGGAcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
83530
+ _chunk27PMUKGGcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
83523
83531
  } catch (error) {
83524
- _chunkM7I7GGGAcjs.writeFatal.call(void 0,
83532
+ _chunk27PMUKGGcjs.writeFatal.call(void 0,
83525
83533
  `A fatal error occurred while running release action:
83526
83534
 
83527
83535
  ${error.message} ${error.stack ? `
@@ -83539,7 +83547,7 @@ async function commitLintAction({
83539
83547
  file
83540
83548
  }) {
83541
83549
  try {
83542
- _chunkM7I7GGGAcjs.writeInfo.call(void 0,
83550
+ _chunk27PMUKGGcjs.writeInfo.call(void 0,
83543
83551
  `\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.`,
83544
83552
  _config
83545
83553
  );
@@ -83548,12 +83556,12 @@ async function commitLintAction({
83548
83556
  message: message2,
83549
83557
  file
83550
83558
  });
83551
- _chunkM7I7GGGAcjs.writeSuccess.call(void 0,
83559
+ _chunk27PMUKGGcjs.writeSuccess.call(void 0,
83552
83560
  "Linting the commit messages completed successfully!\n",
83553
83561
  _config
83554
83562
  );
83555
83563
  } catch (error) {
83556
- _chunkM7I7GGGAcjs.writeFatal.call(void 0,
83564
+ _chunk27PMUKGGcjs.writeFatal.call(void 0,
83557
83565
  `A fatal error occurred while linting the commit messages:
83558
83566
 
83559
83567
  ${error.message}`,
@@ -83565,18 +83573,18 @@ ${error.message}`,
83565
83573
 
83566
83574
  // bin/git.ts
83567
83575
  void (async () => {
83568
- const config = await _chunkM7I7GGGAcjs.getConfig.call(void 0, );
83576
+ const config = await _chunk27PMUKGGcjs.getConfig.call(void 0, );
83569
83577
  try {
83570
- _chunkM7I7GGGAcjs.handleProcess.call(void 0, config);
83578
+ _chunk27PMUKGGcjs.handleProcess.call(void 0, config);
83571
83579
  const program2 = createProgram(config);
83572
83580
  await program2.parseAsync(process.argv);
83573
- _chunkM7I7GGGAcjs.writeSuccess.call(void 0,
83581
+ _chunk27PMUKGGcjs.writeSuccess.call(void 0,
83574
83582
  `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
83575
83583
  config
83576
83584
  );
83577
- _chunkM7I7GGGAcjs.exitWithSuccess.call(void 0, config);
83585
+ _chunk27PMUKGGcjs.exitWithSuccess.call(void 0, config);
83578
83586
  } catch (error) {
83579
- _chunkM7I7GGGAcjs.exitWithError.call(void 0, config);
83587
+ _chunk27PMUKGGcjs.exitWithError.call(void 0, config);
83580
83588
  process.exit(1);
83581
83589
  }
83582
83590
  })();
package/bin/git.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  writeSuccess,
21
21
  writeTrace,
22
22
  writeWarning
23
- } from "./chunk-37GUKAEH.js";
23
+ } from "./chunk-43I63RJT.js";
24
24
  import {
25
25
  defu
26
26
  } from "./chunk-5QFXXGFE.js";
@@ -91879,7 +91879,15 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer {
91879
91879
  // }
91880
91880
  renderVersionTitle() {
91881
91881
  const isMajorVersion = `${(0, import_semver.major)(this.changelogEntryVersion)}.0.0` === this.changelogEntryVersion.replace(/^v/, "");
91882
- return isMajorVersion ? `# ${generateChangelogTitle(this.changelogEntryVersion, this.project, this.workspaceConfig)}` : `## ${generateChangelogTitle(this.changelogEntryVersion, this.project, this.workspaceConfig)}`;
91882
+ return isMajorVersion ? `# ${generateChangelogTitle(
91883
+ this.changelogEntryVersion,
91884
+ this.project,
91885
+ this.workspaceConfig
91886
+ )}` : `## ${generateChangelogTitle(
91887
+ this.changelogEntryVersion,
91888
+ this.project,
91889
+ this.workspaceConfig
91890
+ )}`;
91883
91891
  }
91884
91892
  renderBreakingChanges() {
91885
91893
  return [
@@ -93383,7 +93391,7 @@ We at [${workspaceConfig.organization ? titleCase(
93383
93391
 
93384
93392
  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}).
93385
93393
 
93386
- 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 : workspaceConfig.organization?.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 ? `${titleCase(projectName)?.replaceAll(" ", "%20")}%20` : ""}v${releaseVersion.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization?.name}/${workspaceConfig.name}/releases/tag/${releaseVersion.gitTag}) about this release!
93394
+ If you have any questions or comments, feel free to reach out to the team on [Discord](${workspaceConfig.socials.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 : workspaceConfig.organization?.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.socials.twitter}%20release%20${projectName ? `${titleCase(projectName)?.replaceAll(" ", "%20")}%20` : ""}v${releaseVersion.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization?.name}/${workspaceConfig.name}/releases/tag/${releaseVersion.gitTag}) about this release!
93387
93395
 
93388
93396
  ## Release Notes
93389
93397
 
@@ -13,7 +13,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkM7I7GGGAcjs = require('./chunk-M7I7GGGA.cjs');
16
+ var _chunk27PMUKGGcjs = require('./chunk-27PMUKGG.cjs');
17
17
  require('./chunk-FMYKTN2Z.cjs');
18
18
  require('./chunk-MXO7CLUN.cjs');
19
19
  require('./chunk-GSZ2Y7H4.cjs');
@@ -27,29 +27,29 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
27
27
  // bin/post-checkout.ts
28
28
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
29
29
  void (async () => {
30
- const config = await _chunkM7I7GGGAcjs.getConfig.call(void 0, );
30
+ const config = await _chunk27PMUKGGcjs.getConfig.call(void 0, );
31
31
  try {
32
- _chunkM7I7GGGAcjs.handleProcess.call(void 0, config);
33
- _chunkM7I7GGGAcjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
32
+ _chunk27PMUKGGcjs.handleProcess.call(void 0, config);
33
+ _chunk27PMUKGGcjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
34
34
  _chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
35
35
  try {
36
36
  _chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
37
37
  } catch (error) {
38
- _chunkM7I7GGGAcjs.writeError.call(void 0,
38
+ _chunk27PMUKGGcjs.writeError.call(void 0,
39
39
  `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.
40
40
  Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
41
41
  config
42
42
  );
43
- _chunkM7I7GGGAcjs.exitWithError.call(void 0, config);
43
+ _chunk27PMUKGGcjs.exitWithError.call(void 0, config);
44
44
  }
45
45
  _chunkGWDOCACNcjs.run.call(void 0, config, "git lfs post-checkout");
46
- _chunkM7I7GGGAcjs.exitWithSuccess.call(void 0, config);
46
+ _chunk27PMUKGGcjs.exitWithSuccess.call(void 0, config);
47
47
  } catch (error) {
48
- _chunkM7I7GGGAcjs.writeFatal.call(void 0,
48
+ _chunk27PMUKGGcjs.writeFatal.call(void 0,
49
49
  `A fatal error occurred while running the program: ${error.message}`,
50
50
  config
51
51
  );
52
- _chunkM7I7GGGAcjs.exitWithError.call(void 0, config);
52
+ _chunk27PMUKGGcjs.exitWithError.call(void 0, config);
53
53
  process.exit(1);
54
54
  }
55
55
  })();
@@ -13,7 +13,7 @@ import {
13
13
  writeError,
14
14
  writeFatal,
15
15
  writeInfo
16
- } from "./chunk-37GUKAEH.js";
16
+ } from "./chunk-43I63RJT.js";
17
17
  import "./chunk-5QFXXGFE.js";
18
18
  import "./chunk-QWTKUQL3.js";
19
19
  import "./chunk-5OLGPOTK.js";
@@ -13,7 +13,7 @@ var _chunkGWDOCACNcjs = require('./chunk-GWDOCACN.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkM7I7GGGAcjs = require('./chunk-M7I7GGGA.cjs');
16
+ var _chunk27PMUKGGcjs = require('./chunk-27PMUKGG.cjs');
17
17
  require('./chunk-FMYKTN2Z.cjs');
18
18
  require('./chunk-MXO7CLUN.cjs');
19
19
  require('./chunk-GSZ2Y7H4.cjs');
@@ -27,29 +27,29 @@ var _chunkIG6EXAQUcjs = require('./chunk-IG6EXAQU.cjs');
27
27
  // bin/post-commit.ts
28
28
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
29
29
  void (async () => {
30
- const config = await _chunkM7I7GGGAcjs.getConfig.call(void 0, );
30
+ const config = await _chunk27PMUKGGcjs.getConfig.call(void 0, );
31
31
  try {
32
- _chunkM7I7GGGAcjs.handleProcess.call(void 0, config);
33
- _chunkM7I7GGGAcjs.writeInfo.call(void 0, "Running post-commit hook...", config);
32
+ _chunk27PMUKGGcjs.handleProcess.call(void 0, config);
33
+ _chunk27PMUKGGcjs.writeInfo.call(void 0, "Running post-commit hook...", config);
34
34
  _chunkHTVOKCRJcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
35
35
  try {
36
36
  _chunkGWDOCACNcjs.run.call(void 0, config, "git-lfs version");
37
37
  } catch (error) {
38
- _chunkM7I7GGGAcjs.writeError.call(void 0,
38
+ _chunk27PMUKGGcjs.writeError.call(void 0,
39
39
  `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-commit.
40
40
  Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`,
41
41
  config
42
42
  );
43
- _chunkM7I7GGGAcjs.exitWithError.call(void 0, config);
43
+ _chunk27PMUKGGcjs.exitWithError.call(void 0, config);
44
44
  }
45
45
  _chunkGWDOCACNcjs.run.call(void 0, config, "git lfs post-commit");
46
- _chunkM7I7GGGAcjs.exitWithSuccess.call(void 0, config);
46
+ _chunk27PMUKGGcjs.exitWithSuccess.call(void 0, config);
47
47
  } catch (error) {
48
- _chunkM7I7GGGAcjs.writeFatal.call(void 0,
48
+ _chunk27PMUKGGcjs.writeFatal.call(void 0,
49
49
  `A fatal error occurred while running the program: ${error.message}`,
50
50
  config
51
51
  );
52
- _chunkM7I7GGGAcjs.exitWithError.call(void 0, config);
52
+ _chunk27PMUKGGcjs.exitWithError.call(void 0, config);
53
53
  process.exit(1);
54
54
  }
55
55
  })();
@@ -13,7 +13,7 @@ import {
13
13
  writeError,
14
14
  writeFatal,
15
15
  writeInfo
16
- } from "./chunk-37GUKAEH.js";
16
+ } from "./chunk-43I63RJT.js";
17
17
  import "./chunk-5QFXXGFE.js";
18
18
  import "./chunk-QWTKUQL3.js";
19
19
  import "./chunk-5OLGPOTK.js";