@storm-software/git-tools 2.124.68 → 2.124.70

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.
Files changed (48) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-GU6JHGME.cjs → chunk-2JUV6SZN.cjs} +96 -563
  3. package/bin/chunk-2JUV6SZN.cjs.map +1 -0
  4. package/bin/{chunk-SAG2FKFE.js → chunk-FD6LP4AO.js} +96 -563
  5. package/bin/chunk-FD6LP4AO.js.map +1 -0
  6. package/bin/git.cjs +82 -80
  7. package/bin/git.cjs.map +1 -1
  8. package/bin/git.js +3 -1
  9. package/bin/git.js.map +1 -1
  10. package/bin/post-checkout.cjs +9 -9
  11. package/bin/post-checkout.js +1 -1
  12. package/bin/post-commit.cjs +9 -9
  13. package/bin/post-commit.js +1 -1
  14. package/bin/post-merge.cjs +9 -9
  15. package/bin/post-merge.js +1 -1
  16. package/bin/pre-commit.cjs +9 -9
  17. package/bin/pre-commit.js +1 -1
  18. package/bin/pre-install.cjs +9 -9
  19. package/bin/pre-install.js +1 -1
  20. package/bin/pre-push.cjs +13 -13
  21. package/bin/pre-push.js +1 -1
  22. package/bin/prepare.cjs +7 -7
  23. package/bin/prepare.js +1 -1
  24. package/bin/version-warning.cjs +5 -5
  25. package/bin/version-warning.js +1 -1
  26. package/dist/{chunk-56CSIOQW.cjs → chunk-EMYFDYKP.cjs} +95 -557
  27. package/dist/{chunk-JEIQJXD6.js → chunk-VVJA5N2W.js} +95 -557
  28. package/dist/commit/minimal.cjs +0 -1
  29. package/dist/commit/minimal.js +0 -1
  30. package/dist/commit/monorepo.cjs +0 -1
  31. package/dist/commit/monorepo.js +0 -1
  32. package/dist/commitlint/minimal.cjs +0 -1
  33. package/dist/commitlint/minimal.js +0 -1
  34. package/dist/commitlint/monorepo.cjs +0 -1
  35. package/dist/commitlint/monorepo.js +0 -1
  36. package/dist/index.cjs +8 -9
  37. package/dist/index.js +1 -2
  38. package/dist/release/config.cjs +8 -9
  39. package/dist/release/config.d.cts +1 -0
  40. package/dist/release/config.d.ts +1 -0
  41. package/dist/release/config.js +1 -2
  42. package/dist/types.cjs +0 -1
  43. package/dist/types.js +0 -1
  44. package/package.json +12 -12
  45. package/bin/chunk-GU6JHGME.cjs.map +0 -1
  46. package/bin/chunk-SAG2FKFE.js.map +0 -1
  47. package/dist/chunk-75ZPJI57.cjs +0 -9
  48. package/dist/chunk-MLKGABMK.js +0 -7
package/bin/git.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  require('./chunk-AU5PZKTN.cjs');
5
5
  var chunkFH5OSXAJ_cjs = require('./chunk-FH5OSXAJ.cjs');
6
- var chunkGU6JHGME_cjs = require('./chunk-GU6JHGME.cjs');
6
+ var chunk2JUV6SZN_cjs = require('./chunk-2JUV6SZN.cjs');
7
7
  var TOML = require('@ltd/j-toml');
8
8
  var commander = require('commander');
9
9
  require('@inquirer/checkbox');
@@ -402,9 +402,9 @@ function getRuleFromScopeEnum(scopeEnum) {
402
402
 
403
403
  // ../conventional-changelog/src/index.ts
404
404
  async function createPreset(variant = "monorepo") {
405
- const workspaceConfig = await chunkGU6JHGME_cjs.getWorkspaceConfig();
405
+ const workspaceConfig = await chunk2JUV6SZN_cjs.getWorkspaceConfig();
406
406
  if (variant === "minimal") {
407
- return chunkGU6JHGME_cjs.defu(
407
+ return chunk2JUV6SZN_cjs.defu(
408
408
  await createBasePreset__default.default({ ...COMMIT_CONFIGS.minimal.changelogs.props }),
409
409
  {
410
410
  ...COMMIT_CONFIGS.minimal,
@@ -418,7 +418,7 @@ async function createPreset(variant = "monorepo") {
418
418
  );
419
419
  }
420
420
  const nxScopes = await getNxScopes({ config: workspaceConfig });
421
- return chunkGU6JHGME_cjs.defu(
421
+ return chunk2JUV6SZN_cjs.defu(
422
422
  await createBasePreset__default.default({
423
423
  ...COMMIT_CONFIGS.monorepo.changelogs.props,
424
424
  scope: nxScopes
@@ -970,7 +970,7 @@ async function lint(message, config5) {
970
970
  // src/commitlint/run.ts
971
971
  var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
972
972
  async function runCommitLint(workspaceConfig, options) {
973
- chunkGU6JHGME_cjs.writeInfo(
973
+ chunk2JUV6SZN_cjs.writeInfo(
974
974
  "\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
975
975
  workspaceConfig
976
976
  );
@@ -978,7 +978,7 @@ async function runCommitLint(workspaceConfig, options) {
978
978
  if (options.message && options.message !== COMMIT_EDITMSG_PATH) {
979
979
  commitMessage = options.message;
980
980
  } else {
981
- const commitFile = chunkGU6JHGME_cjs.joinPaths(
981
+ const commitFile = chunk2JUV6SZN_cjs.joinPaths(
982
982
  workspaceConfig.workspaceRoot,
983
983
  options.file || options.message || COMMIT_EDITMSG_PATH
984
984
  );
@@ -995,17 +995,17 @@ async function runCommitLint(workspaceConfig, options) {
995
995
  if (upstreamRemote) {
996
996
  const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
997
997
  if (!upstreamRemoteIdentifier) {
998
- chunkGU6JHGME_cjs.writeWarning(
998
+ chunk2JUV6SZN_cjs.writeWarning(
999
999
  `No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison.`,
1000
1000
  workspaceConfig
1001
1001
  );
1002
1002
  return;
1003
1003
  }
1004
- chunkGU6JHGME_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
1004
+ chunk2JUV6SZN_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
1005
1005
  const currentBranch = childProcess__default.default.execSync("git branch --show-current").toString().trim();
1006
1006
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
1007
1007
  } else {
1008
- chunkGU6JHGME_cjs.writeWarning(
1008
+ chunk2JUV6SZN_cjs.writeWarning(
1009
1009
  `No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison against upstream main.`,
1010
1010
  workspaceConfig
1011
1011
  );
@@ -1013,7 +1013,7 @@ async function runCommitLint(workspaceConfig, options) {
1013
1013
  }
1014
1014
  commitMessage = childProcess__default.default.execSync(gitLogCmd).toString().trim();
1015
1015
  if (!commitMessage) {
1016
- chunkGU6JHGME_cjs.writeWarning(
1016
+ chunk2JUV6SZN_cjs.writeWarning(
1017
1017
  "No commits found. Skipping commit message validation.",
1018
1018
  workspaceConfig
1019
1019
  );
@@ -1023,7 +1023,7 @@ async function runCommitLint(workspaceConfig, options) {
1023
1023
  const preset = await createPreset(workspaceConfig.variant);
1024
1024
  const report = await lint(commitMessage, preset);
1025
1025
  if (!preset.commitlint.regex.test(commitMessage) || report.errors.length || report.warnings.length) {
1026
- chunkGU6JHGME_cjs.writeSuccess(
1026
+ chunk2JUV6SZN_cjs.writeSuccess(
1027
1027
  `Commit was processing completed successfully!`,
1028
1028
  workspaceConfig
1029
1029
  );
@@ -1235,7 +1235,7 @@ async function createState(workspaceConfig, configPath) {
1235
1235
  const project = projectConfigurations.projects[scope];
1236
1236
  if (project) {
1237
1237
  let description = `${project.name} - ${project.root}`;
1238
- const packageJsonPath = chunkGU6JHGME_cjs.joinPaths(project.root, "package.json");
1238
+ const packageJsonPath = chunk2JUV6SZN_cjs.joinPaths(project.root, "package.json");
1239
1239
  if (fs$1.existsSync(packageJsonPath)) {
1240
1240
  const packageJsonFile = await fs.readFile(packageJsonPath, "utf8");
1241
1241
  const packageJson = JSON.parse(packageJsonFile);
@@ -1309,20 +1309,20 @@ ${closedIssueEmoji}${config5.settings.closedIssueMessage}${issues}`;
1309
1309
 
1310
1310
  // src/commit/run.ts
1311
1311
  async function runCommit(commitizenFile, dryRun = false) {
1312
- const workspaceConfig = await chunkGU6JHGME_cjs.getWorkspaceConfig();
1312
+ const workspaceConfig = await chunk2JUV6SZN_cjs.getWorkspaceConfig();
1313
1313
  const state = await createState(workspaceConfig);
1314
1314
  if (dryRun) {
1315
- chunkGU6JHGME_cjs.writeInfo("Running in dry mode.", workspaceConfig);
1315
+ chunk2JUV6SZN_cjs.writeInfo("Running in dry mode.", workspaceConfig);
1316
1316
  }
1317
1317
  console.log(chalkTemplate__default.default`
1318
1318
  {bold.#999999 ----------------------------------------}
1319
1319
 
1320
- {bold.#FFFFFF ${chunkGU6JHGME_cjs.brandIcon(workspaceConfig)} Storm Software Git-Tools - Commit}
1320
+ {bold.#FFFFFF ${chunk2JUV6SZN_cjs.brandIcon(workspaceConfig)} Storm Software Git-Tools - Commit}
1321
1321
  {#CCCCCC Please provide the requested details below...}
1322
1322
  `);
1323
1323
  state.answers = await askQuestions(state);
1324
1324
  const message = formatCommitMessage(state, workspaceConfig);
1325
- const commitMsgFile = chunkGU6JHGME_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
1325
+ const commitMsgFile = chunk2JUV6SZN_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
1326
1326
  console.log(chalkTemplate__default.default`
1327
1327
  {bold.#999999 ----------------------------------------}
1328
1328
 
@@ -1335,11 +1335,11 @@ async function runCommit(commitizenFile, dryRun = false) {
1335
1335
  commandItems.push(...["--file", commitMsgFile]);
1336
1336
  const command = shellescape__default.default(commandItems);
1337
1337
  if (dryRun) {
1338
- chunkGU6JHGME_cjs.writeDebug(
1338
+ chunk2JUV6SZN_cjs.writeDebug(
1339
1339
  `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
1340
1340
  workspaceConfig
1341
1341
  );
1342
- chunkGU6JHGME_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
1342
+ chunk2JUV6SZN_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
1343
1343
  } else {
1344
1344
  await fs__default.default.writeFile(commitMsgFile, message);
1345
1345
  chunkFH5OSXAJ_cjs.run(workspaceConfig, command);
@@ -2380,7 +2380,7 @@ async function generateChangelogContent(releaseVersion, filepath, newContent, cu
2380
2380
  const header = await prettier.format(
2381
2381
  `![${(typeof workspaceConfig?.release.banner === "string" ? workspaceConfig.organization ? titleCase(
2382
2382
  typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization.name
2383
- ) : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkGU6JHGME_cjs.STORM_DEFAULT_RELEASE_BANNER})
2383
+ ) : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunk2JUV6SZN_cjs.STORM_DEFAULT_RELEASE_BANNER})
2384
2384
 
2385
2385
  # Changelog ${project || workspaceConfig?.name ? "for" : ""}${workspaceConfig?.name ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${workspaceConfig?.name ? " -" : ""} ${titleCase(project)}` : ""}
2386
2386
 
@@ -2556,12 +2556,12 @@ async function generateChangelogForProjects({
2556
2556
  projectChangelogs
2557
2557
  )) {
2558
2558
  if (!projectGraph.nodes[projectName]?.data.root) {
2559
- chunkGU6JHGME_cjs.writeWarning(
2559
+ chunk2JUV6SZN_cjs.writeWarning(
2560
2560
  `A changelog was generated for ${projectName}, but it could not be found in the project graph. Skipping writing changelog file.`,
2561
2561
  workspaceConfig
2562
2562
  );
2563
2563
  } else if (projectChangelog.contents) {
2564
- const filePath = chunkGU6JHGME_cjs.joinPaths(
2564
+ const filePath = chunk2JUV6SZN_cjs.joinPaths(
2565
2565
  projectGraph.nodes[projectName].data.root,
2566
2566
  "CHANGELOG.md"
2567
2567
  );
@@ -2569,7 +2569,7 @@ async function generateChangelogForProjects({
2569
2569
  if (fs$1.existsSync(filePath)) {
2570
2570
  currentContent = await fs.readFile(filePath, "utf8");
2571
2571
  }
2572
- chunkGU6JHGME_cjs.writeDebug(
2572
+ chunk2JUV6SZN_cjs.writeDebug(
2573
2573
  `\u270D\uFE0F Writing changelog for project ${projectName} to ${filePath}`,
2574
2574
  workspaceConfig
2575
2575
  );
@@ -2792,7 +2792,7 @@ var StormGithubRemoteReleaseClient = class extends github.GithubRemoteReleaseCli
2792
2792
  }
2793
2793
  async createOrUpdateRelease(releaseVersion, changelogContents, latestCommit, { dryRun }) {
2794
2794
  if (!this.workspaceConfig) {
2795
- this.workspaceConfig = await chunkGU6JHGME_cjs.getWorkspaceConfig();
2795
+ this.workspaceConfig = await chunk2JUV6SZN_cjs.getWorkspaceConfig();
2796
2796
  }
2797
2797
  const name = releaseVersion.gitTag.includes("@") ? releaseVersion.gitTag.replace(new RegExp(`^@${this.workspaceConfig.name}/`), "").replace(/@.*$/, "") : releaseVersion.gitTag;
2798
2798
  return super.createOrUpdateRelease(
@@ -2993,7 +2993,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
2993
2993
  }
2994
2994
  async render() {
2995
2995
  if (!this.workspaceConfig) {
2996
- this.workspaceConfig = await chunkGU6JHGME_cjs.getWorkspaceConfig();
2996
+ this.workspaceConfig = await chunk2JUV6SZN_cjs.getWorkspaceConfig();
2997
2997
  }
2998
2998
  return super.render();
2999
2999
  }
@@ -3019,6 +3019,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
3019
3019
  }
3020
3020
  if (this.isVersionPlans) {
3021
3021
  this.conventionalCommitsConfig = {
3022
+ useCommitScope: this.workspaceConfig?.variant === "monorepo",
3022
3023
  types: {
3023
3024
  feat: conventionalCommits.DEFAULT_CONVENTIONAL_COMMITS_CONFIG.types.feat,
3024
3025
  fix: conventionalCommits.DEFAULT_CONVENTIONAL_COMMITS_CONFIG.types.fix
@@ -3175,6 +3176,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
3175
3176
 
3176
3177
  // src/release/config.ts
3177
3178
  var DEFAULT_CONVENTIONAL_COMMITS_CONFIG2 = {
3179
+ useCommitScope: true,
3178
3180
  questions: DEFAULT_MONOREPO_COMMIT_QUESTIONS,
3179
3181
  types: DEFAULT_COMMIT_TYPES
3180
3182
  };
@@ -3247,7 +3249,7 @@ var DEFAULT_RELEASE_CONFIG = {
3247
3249
  function getReleaseGroupConfig(releaseConfig, workspaceConfig) {
3248
3250
  return !releaseConfig?.groups || Object.keys(releaseConfig.groups).length === 0 ? {} : Object.fromEntries(
3249
3251
  Object.entries(releaseConfig.groups).map(([name, group]) => {
3250
- const config5 = chunkGU6JHGME_cjs.defu(
3252
+ const config5 = chunk2JUV6SZN_cjs.defu(
3251
3253
  {
3252
3254
  ...omit(DEFAULT_RELEASE_GROUP_CONFIG, ["changelog", "version"]),
3253
3255
  ...group
@@ -3270,13 +3272,13 @@ function getReleaseGroupConfig(releaseConfig, workspaceConfig) {
3270
3272
  );
3271
3273
  if (workspaceConfig?.workspaceRoot) {
3272
3274
  if (config5.changelog?.renderer && typeof config5.changelog?.renderer === "string" && config5.changelog?.renderer?.toString().startsWith("./")) {
3273
- config5.changelog.renderer = chunkGU6JHGME_cjs.joinPaths(
3275
+ config5.changelog.renderer = chunk2JUV6SZN_cjs.joinPaths(
3274
3276
  workspaceConfig.workspaceRoot,
3275
3277
  config5.changelog.renderer
3276
3278
  );
3277
3279
  }
3278
3280
  if (config5.version?.versionActions && config5.version.versionActions.startsWith("./")) {
3279
- config5.version.versionActions = chunkGU6JHGME_cjs.joinPaths(
3281
+ config5.version.versionActions = chunk2JUV6SZN_cjs.joinPaths(
3280
3282
  workspaceConfig.workspaceRoot,
3281
3283
  config5.version?.versionActions
3282
3284
  );
@@ -3291,7 +3293,7 @@ function getReleaseGroupConfig(releaseConfig, workspaceConfig) {
3291
3293
  var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
3292
3294
  static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
3293
3295
  if (!workspaceConfig) {
3294
- workspaceConfig = await chunkGU6JHGME_cjs.getWorkspaceConfig();
3296
+ workspaceConfig = await chunk2JUV6SZN_cjs.getWorkspaceConfig();
3295
3297
  }
3296
3298
  let projectGraph;
3297
3299
  try {
@@ -3344,10 +3346,10 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3344
3346
  */
3345
3347
  constructor(projectGraph, releaseConfig, ignoreNxJsonConfig, workspaceConfig) {
3346
3348
  let nxJson$1;
3347
- if (!ignoreNxJsonConfig && fs$1.existsSync(chunkGU6JHGME_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
3349
+ if (!ignoreNxJsonConfig && fs$1.existsSync(chunk2JUV6SZN_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
3348
3350
  nxJson$1 = nxJson.readNxJson();
3349
3351
  }
3350
- const config5 = chunkGU6JHGME_cjs.defu(
3352
+ const config5 = chunk2JUV6SZN_cjs.defu(
3351
3353
  {
3352
3354
  changelog: {
3353
3355
  renderOptions: {
@@ -3369,11 +3371,11 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3369
3371
  omit(DEFAULT_RELEASE_CONFIG, ["groups"])
3370
3372
  );
3371
3373
  super(config5, true);
3372
- chunkGU6JHGME_cjs.writeDebug(
3374
+ chunk2JUV6SZN_cjs.writeDebug(
3373
3375
  "Executing release with the following configuration",
3374
3376
  workspaceConfig
3375
3377
  );
3376
- chunkGU6JHGME_cjs.writeDebug(config5, workspaceConfig);
3378
+ chunk2JUV6SZN_cjs.writeDebug(config5, workspaceConfig);
3377
3379
  this.projectGraph = projectGraph;
3378
3380
  this.config = config5;
3379
3381
  this.workspaceConfig = workspaceConfig;
@@ -3517,7 +3519,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3517
3519
  })),
3518
3520
  this.config.conventionalCommits
3519
3521
  );
3520
- chunkGU6JHGME_cjs.writeDebug(
3522
+ chunk2JUV6SZN_cjs.writeDebug(
3521
3523
  `Running changelog generation for the ${releaseGroup.name} release group`,
3522
3524
  this.workspaceConfig
3523
3525
  );
@@ -3588,7 +3590,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3588
3590
  })),
3589
3591
  this.config.conventionalCommits
3590
3592
  );
3591
- chunkGU6JHGME_cjs.writeDebug(
3593
+ chunk2JUV6SZN_cjs.writeDebug(
3592
3594
  `Running changelog generation for the ${releaseGroup.name} release group`,
3593
3595
  this.workspaceConfig
3594
3596
  );
@@ -3617,7 +3619,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3617
3619
  }
3618
3620
  }
3619
3621
  }
3620
- chunkGU6JHGME_cjs.writeDebug(
3622
+ chunk2JUV6SZN_cjs.writeDebug(
3621
3623
  `Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
3622
3624
  ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
3623
3625
  `,
@@ -3646,7 +3648,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
3646
3648
  );
3647
3649
  const changes = this.tree.listChanges();
3648
3650
  if (!changes.length) {
3649
- chunkGU6JHGME_cjs.writeWarning(
3651
+ chunk2JUV6SZN_cjs.writeWarning(
3650
3652
  "No changes were detected for any changelog files, so no changelog entries will be generated.",
3651
3653
  this.workspaceConfig
3652
3654
  );
@@ -3668,7 +3670,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
3668
3670
  gitCommitArgs: options.gitCommitArgs || this.config.changelog?.git?.commitArgs
3669
3671
  });
3670
3672
  latestCommit = await git.getCommitHash("HEAD");
3671
- chunkGU6JHGME_cjs.writeDebug(
3673
+ chunk2JUV6SZN_cjs.writeDebug(
3672
3674
  `Creating git tags: ${gitTagValues.join(", ")}`,
3673
3675
  this.workspaceConfig
3674
3676
  );
@@ -3681,7 +3683,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
3681
3683
  verbose: options.verbose
3682
3684
  });
3683
3685
  }
3684
- chunkGU6JHGME_cjs.writeDebug(
3686
+ chunk2JUV6SZN_cjs.writeDebug(
3685
3687
  `Pushing to git remote "${options.gitRemote ?? "origin"}"`,
3686
3688
  this.workspaceConfig
3687
3689
  );
@@ -3713,7 +3715,7 @@ var runRelease = async (config5, {
3713
3715
  throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
3714
3716
  }
3715
3717
  if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
3716
- chunkGU6JHGME_cjs.writeFatal(
3718
+ chunk2JUV6SZN_cjs.writeFatal(
3717
3719
  "You must be a member of the Storm Software organization to run the release process.",
3718
3720
  config5
3719
3721
  );
@@ -3730,26 +3732,26 @@ var runRelease = async (config5, {
3730
3732
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
3731
3733
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
3732
3734
  process.env.NPM_CONFIG_PROVENANCE = "true";
3733
- chunkGU6JHGME_cjs.writeDebug("Creating Storm release client...", config5);
3735
+ chunk2JUV6SZN_cjs.writeDebug("Creating Storm release client...", config5);
3734
3736
  const releaseClient = await StormReleaseClient.create(
3735
3737
  releaseConfig,
3736
3738
  ignoreNxJsonConfig,
3737
3739
  config5
3738
3740
  );
3739
- chunkGU6JHGME_cjs.writeDebug("Reading in the workspaces release configuration", config5);
3741
+ chunk2JUV6SZN_cjs.writeDebug("Reading in the workspaces release configuration", config5);
3740
3742
  const to = head || process.env.NX_HEAD;
3741
3743
  const from = base || process.env.NX_BASE;
3742
- chunkGU6JHGME_cjs.writeDebug(
3744
+ chunk2JUV6SZN_cjs.writeDebug(
3743
3745
  `Using the following Git SHAs to determine the release content:
3744
3746
  - From: ${from}
3745
3747
  - To: ${to}
3746
3748
  `,
3747
3749
  config5
3748
3750
  );
3749
- chunkGU6JHGME_cjs.writeDebug("Determining the current release versions...", config5);
3751
+ chunk2JUV6SZN_cjs.writeDebug("Determining the current release versions...", config5);
3750
3752
  const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
3751
3753
  dryRun,
3752
- verbose: chunkGU6JHGME_cjs.isVerbose(config5.logLevel),
3754
+ verbose: chunk2JUV6SZN_cjs.isVerbose(config5.logLevel),
3753
3755
  preid: config5.preid,
3754
3756
  stageChanges: true,
3755
3757
  gitCommit: false
@@ -3758,14 +3760,14 @@ var runRelease = async (config5, {
3758
3760
  version: releaseConfig?.projectsRelationship === "fixed" ? workspaceVersion : void 0,
3759
3761
  versionData: projectsVersionData,
3760
3762
  dryRun,
3761
- verbose: chunkGU6JHGME_cjs.isVerbose(config5.logLevel),
3763
+ verbose: chunk2JUV6SZN_cjs.isVerbose(config5.logLevel),
3762
3764
  to,
3763
3765
  from,
3764
3766
  releaseGraph
3765
3767
  });
3766
- chunkGU6JHGME_cjs.writeDebug("Tagging commit with git", config5);
3768
+ chunk2JUV6SZN_cjs.writeDebug("Tagging commit with git", config5);
3767
3769
  if (skipPublish) {
3768
- chunkGU6JHGME_cjs.writeWarning(
3770
+ chunk2JUV6SZN_cjs.writeWarning(
3769
3771
  "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
3770
3772
  config5
3771
3773
  );
@@ -3774,7 +3776,7 @@ var runRelease = async (config5, {
3774
3776
  (key) => projectsVersionData[key]?.newVersion
3775
3777
  );
3776
3778
  if (changedProjects.length > 0) {
3777
- chunkGU6JHGME_cjs.writeInfo(
3779
+ chunk2JUV6SZN_cjs.writeInfo(
3778
3780
  `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
3779
3781
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
3780
3782
  `,
@@ -3783,7 +3785,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
3783
3785
  await updatePackageManifests(projectsVersionData, config5);
3784
3786
  const result = await releaseClient.releasePublish({
3785
3787
  dryRun,
3786
- verbose: chunkGU6JHGME_cjs.isVerbose(config5.logLevel)
3788
+ verbose: chunk2JUV6SZN_cjs.isVerbose(config5.logLevel)
3787
3789
  });
3788
3790
  const failedProjects = Object.keys(result).filter(
3789
3791
  (key) => result[key]?.code && result[key]?.code > 0
@@ -3798,10 +3800,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
3798
3800
  );
3799
3801
  }
3800
3802
  } else {
3801
- chunkGU6JHGME_cjs.writeWarning("Skipped publishing packages.", config5);
3803
+ chunk2JUV6SZN_cjs.writeWarning("Skipped publishing packages.", config5);
3802
3804
  }
3803
3805
  }
3804
- chunkGU6JHGME_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
3806
+ chunk2JUV6SZN_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
3805
3807
  };
3806
3808
  async function updatePackageManifests(projectsVersionData, config5) {
3807
3809
  let projectGraph;
@@ -3816,7 +3818,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
3816
3818
  Object.keys(projectsVersionData).map(async (node) => {
3817
3819
  const projectNode = projectGraph.nodes[node];
3818
3820
  if (!projectNode?.data.root) {
3819
- chunkGU6JHGME_cjs.writeWarning(
3821
+ chunk2JUV6SZN_cjs.writeWarning(
3820
3822
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
3821
3823
  config5
3822
3824
  );
@@ -3824,17 +3826,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
3824
3826
  }
3825
3827
  const versionData = projectsVersionData[node];
3826
3828
  if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
3827
- chunkGU6JHGME_cjs.writeTrace(
3829
+ chunk2JUV6SZN_cjs.writeTrace(
3828
3830
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
3829
3831
  `,
3830
3832
  config5
3831
3833
  );
3832
- const projectRoot = chunkGU6JHGME_cjs.joinPaths(
3834
+ const projectRoot = chunk2JUV6SZN_cjs.joinPaths(
3833
3835
  config5.workspaceRoot,
3834
3836
  projectNode.data.root
3835
3837
  );
3836
- const packageJsonPath = chunkGU6JHGME_cjs.joinPaths(projectRoot, "package.json");
3837
- const cargoTomlPath = chunkGU6JHGME_cjs.joinPaths(projectRoot, "Cargo.toml");
3838
+ const packageJsonPath = chunk2JUV6SZN_cjs.joinPaths(projectRoot, "package.json");
3839
+ const cargoTomlPath = chunk2JUV6SZN_cjs.joinPaths(projectRoot, "Cargo.toml");
3838
3840
  if (fs$1.existsSync(packageJsonPath)) {
3839
3841
  const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
3840
3842
  const packageJson = JSON.parse(packageJsonContent);
@@ -3852,7 +3854,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
3852
3854
  })
3853
3855
  );
3854
3856
  } else {
3855
- chunkGU6JHGME_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
3857
+ chunk2JUV6SZN_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
3856
3858
  }
3857
3859
  }
3858
3860
 
@@ -3860,8 +3862,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
3860
3862
  var _config = {};
3861
3863
  function createProgram(config5) {
3862
3864
  _config = config5;
3863
- chunkGU6JHGME_cjs.writeInfo(`${chunkGU6JHGME_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
3864
- const root = chunkGU6JHGME_cjs.findWorkspaceRootSafe(process.cwd());
3865
+ chunk2JUV6SZN_cjs.writeInfo(`${chunk2JUV6SZN_cjs.brandIcon(_config)} Running Storm Git Tools`, config5);
3866
+ const root = chunk2JUV6SZN_cjs.findWorkspaceRootSafe(process.cwd());
3865
3867
  process.env.STORM_WORKSPACE_ROOT ??= root;
3866
3868
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
3867
3869
  if (root) {
@@ -3901,12 +3903,12 @@ async function commitAction({
3901
3903
  dryRun = false
3902
3904
  }) {
3903
3905
  try {
3904
- chunkGU6JHGME_cjs.writeInfo(
3905
- `${chunkGU6JHGME_cjs.brandIcon(config5)} Preparing to commit your changes. Please provide the requested details below...`,
3906
+ chunk2JUV6SZN_cjs.writeInfo(
3907
+ `${chunk2JUV6SZN_cjs.brandIcon(config5)} Preparing to commit your changes. Please provide the requested details below...`,
3906
3908
  _config
3907
3909
  );
3908
3910
  await runCommit(config5, dryRun);
3909
- chunkGU6JHGME_cjs.writeSuccess(
3911
+ chunk2JUV6SZN_cjs.writeSuccess(
3910
3912
  `\u{1F389} Storm Commit processing completed successfully!
3911
3913
 
3912
3914
  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}
@@ -3914,7 +3916,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
3914
3916
  _config
3915
3917
  );
3916
3918
  } catch (error) {
3917
- chunkGU6JHGME_cjs.writeFatal(
3919
+ chunk2JUV6SZN_cjs.writeFatal(
3918
3920
  `A fatal error occurred while running commit action:
3919
3921
 
3920
3922
  ${error.message}${error.stack ? `
@@ -3929,17 +3931,17 @@ Please fix any errors and try committing again.`,
3929
3931
  }
3930
3932
  async function readmeAction(options) {
3931
3933
  try {
3932
- chunkGU6JHGME_cjs.writeInfo(
3933
- `${chunkGU6JHGME_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
3934
+ chunk2JUV6SZN_cjs.writeInfo(
3935
+ `${chunk2JUV6SZN_cjs.brandIcon(_config)} Formatting the workspace's README.md files`,
3934
3936
  _config
3935
3937
  );
3936
3938
  await runReadme(options);
3937
- chunkGU6JHGME_cjs.writeSuccess(
3939
+ chunk2JUV6SZN_cjs.writeSuccess(
3938
3940
  "Formatting of the workspace's README.md files is complete\n",
3939
3941
  _config
3940
3942
  );
3941
3943
  } catch (error) {
3942
- chunkGU6JHGME_cjs.writeFatal(
3944
+ chunk2JUV6SZN_cjs.writeFatal(
3943
3945
  `A fatal error occurred while running README format action:
3944
3946
 
3945
3947
  ${error.message}`
@@ -3954,8 +3956,8 @@ async function releaseAction({
3954
3956
  dryRun
3955
3957
  }) {
3956
3958
  try {
3957
- chunkGU6JHGME_cjs.writeInfo(
3958
- `${chunkGU6JHGME_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
3959
+ chunk2JUV6SZN_cjs.writeInfo(
3960
+ `${chunk2JUV6SZN_cjs.brandIcon(_config)} Running the Storm Release and Publish process on the workspace`,
3959
3961
  _config
3960
3962
  );
3961
3963
  await runRelease(_config, {
@@ -3964,9 +3966,9 @@ async function releaseAction({
3964
3966
  base,
3965
3967
  head
3966
3968
  });
3967
- chunkGU6JHGME_cjs.writeSuccess("Release completed successfully!\n", _config);
3969
+ chunk2JUV6SZN_cjs.writeSuccess("Release completed successfully!\n", _config);
3968
3970
  } catch (error) {
3969
- chunkGU6JHGME_cjs.writeFatal(
3971
+ chunk2JUV6SZN_cjs.writeFatal(
3970
3972
  `A fatal error occurred while running release action:
3971
3973
 
3972
3974
  ${error.message} ${error.stack ? `
@@ -3980,17 +3982,17 @@ Stacktrace: ${error.stack}` : ""}`,
3980
3982
  }
3981
3983
  async function commitLintAction(options) {
3982
3984
  try {
3983
- chunkGU6JHGME_cjs.writeInfo(
3984
- `${chunkGU6JHGME_cjs.brandIcon(_config)} Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : typeof _config.organization === "string" ? _config.organization : _config.organization?.name ? _config.organization?.name : "Storm-Software"} repository's commit messages.`,
3985
+ chunk2JUV6SZN_cjs.writeInfo(
3986
+ `${chunk2JUV6SZN_cjs.brandIcon(_config)} Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : typeof _config.organization === "string" ? _config.organization : _config.organization?.name ? _config.organization?.name : "Storm-Software"} repository's commit messages.`,
3985
3987
  _config
3986
3988
  );
3987
3989
  await runCommitLint(_config, options);
3988
- chunkGU6JHGME_cjs.writeSuccess(
3990
+ chunk2JUV6SZN_cjs.writeSuccess(
3989
3991
  "Linting the commit messages completed successfully!\n",
3990
3992
  _config
3991
3993
  );
3992
3994
  } catch (error) {
3993
- chunkGU6JHGME_cjs.writeFatal(
3995
+ chunk2JUV6SZN_cjs.writeFatal(
3994
3996
  `A fatal error occurred while linting the commit messages:
3995
3997
 
3996
3998
  ${error.message}`,
@@ -4002,18 +4004,18 @@ ${error.message}`,
4002
4004
 
4003
4005
  // bin/git.ts
4004
4006
  void (async () => {
4005
- const config5 = await chunkGU6JHGME_cjs.getConfig();
4007
+ const config5 = await chunk2JUV6SZN_cjs.getConfig();
4006
4008
  try {
4007
- chunkGU6JHGME_cjs.handleProcess(config5);
4009
+ chunk2JUV6SZN_cjs.handleProcess(config5);
4008
4010
  const program = createProgram(config5);
4009
4011
  await program.parseAsync(process.argv);
4010
- chunkGU6JHGME_cjs.writeSuccess(
4012
+ chunk2JUV6SZN_cjs.writeSuccess(
4011
4013
  `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
4012
4014
  config5
4013
4015
  );
4014
- chunkGU6JHGME_cjs.exitWithSuccess(config5);
4016
+ chunk2JUV6SZN_cjs.exitWithSuccess(config5);
4015
4017
  } catch (error) {
4016
- chunkGU6JHGME_cjs.exitWithError(config5);
4018
+ chunk2JUV6SZN_cjs.exitWithError(config5);
4017
4019
  process.exit(1);
4018
4020
  }
4019
4021
  })();