@storm-software/git-tools 2.124.59 → 2.124.60

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
@@ -3,7 +3,7 @@
3
3
 
4
4
  require('./chunk-AU5PZKTN.cjs');
5
5
  var chunkFH5OSXAJ_cjs = require('./chunk-FH5OSXAJ.cjs');
6
- var chunkNUGDUPXJ_cjs = require('./chunk-NUGDUPXJ.cjs');
6
+ var chunkZWFRZLHA_cjs = require('./chunk-ZWFRZLHA.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 chunkNUGDUPXJ_cjs.getWorkspaceConfig();
405
+ const workspaceConfig = await chunkZWFRZLHA_cjs.getWorkspaceConfig();
406
406
  if (variant === "minimal") {
407
- return chunkNUGDUPXJ_cjs.defu(
407
+ return chunkZWFRZLHA_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 chunkNUGDUPXJ_cjs.defu(
421
+ return chunkZWFRZLHA_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
- chunkNUGDUPXJ_cjs.writeInfo(
973
+ chunkZWFRZLHA_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 = chunkNUGDUPXJ_cjs.joinPaths(
981
+ const commitFile = chunkZWFRZLHA_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
- chunkNUGDUPXJ_cjs.writeWarning(
998
+ chunkZWFRZLHA_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
- chunkNUGDUPXJ_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
1004
+ chunkZWFRZLHA_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
- chunkNUGDUPXJ_cjs.writeWarning(
1008
+ chunkZWFRZLHA_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
- chunkNUGDUPXJ_cjs.writeWarning(
1016
+ chunkZWFRZLHA_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
- chunkNUGDUPXJ_cjs.writeSuccess(
1026
+ chunkZWFRZLHA_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 = chunkNUGDUPXJ_cjs.joinPaths(project.root, "package.json");
1238
+ const packageJsonPath = chunkZWFRZLHA_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,10 +1309,10 @@ ${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 chunkNUGDUPXJ_cjs.getWorkspaceConfig();
1312
+ const workspaceConfig = await chunkZWFRZLHA_cjs.getWorkspaceConfig();
1313
1313
  const state = await createState(workspaceConfig);
1314
1314
  if (dryRun) {
1315
- chunkNUGDUPXJ_cjs.writeInfo("Running in dry mode.", workspaceConfig);
1315
+ chunkZWFRZLHA_cjs.writeInfo("Running in dry mode.", workspaceConfig);
1316
1316
  }
1317
1317
  console.log(chalkTemplate__default.default`
1318
1318
  {bold.#999999 ----------------------------------------}
@@ -1322,7 +1322,7 @@ async function runCommit(commitizenFile, dryRun = false) {
1322
1322
  `);
1323
1323
  state.answers = await askQuestions(state);
1324
1324
  const message = formatCommitMessage(state, workspaceConfig);
1325
- const commitMsgFile = chunkNUGDUPXJ_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
1325
+ const commitMsgFile = chunkZWFRZLHA_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
- chunkNUGDUPXJ_cjs.writeDebug(
1338
+ chunkZWFRZLHA_cjs.writeDebug(
1339
1339
  `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
1340
1340
  workspaceConfig
1341
1341
  );
1342
- chunkNUGDUPXJ_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
1342
+ chunkZWFRZLHA_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 || chunkNUGDUPXJ_cjs.STORM_DEFAULT_RELEASE_BANNER})
2383
+ ) : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkZWFRZLHA_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
- chunkNUGDUPXJ_cjs.writeWarning(
2559
+ chunkZWFRZLHA_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 = chunkNUGDUPXJ_cjs.joinPaths(
2564
+ const filePath = chunkZWFRZLHA_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
- chunkNUGDUPXJ_cjs.writeDebug(
2572
+ chunkZWFRZLHA_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 chunkNUGDUPXJ_cjs.getWorkspaceConfig();
2795
+ this.workspaceConfig = await chunkZWFRZLHA_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 chunkNUGDUPXJ_cjs.getWorkspaceConfig();
2996
+ this.workspaceConfig = await chunkZWFRZLHA_cjs.getWorkspaceConfig();
2997
2997
  }
2998
2998
  return super.render();
2999
2999
  }
@@ -3247,7 +3247,7 @@ var DEFAULT_RELEASE_CONFIG = {
3247
3247
  function getReleaseGroupConfig(releaseConfig, workspaceConfig) {
3248
3248
  return !releaseConfig?.groups || Object.keys(releaseConfig.groups).length === 0 ? {} : Object.fromEntries(
3249
3249
  Object.entries(releaseConfig.groups).map(([name, group]) => {
3250
- const config5 = chunkNUGDUPXJ_cjs.defu(
3250
+ const config5 = chunkZWFRZLHA_cjs.defu(
3251
3251
  {
3252
3252
  ...omit(DEFAULT_RELEASE_GROUP_CONFIG, ["changelog", "version"]),
3253
3253
  ...group
@@ -3270,13 +3270,13 @@ function getReleaseGroupConfig(releaseConfig, workspaceConfig) {
3270
3270
  );
3271
3271
  if (workspaceConfig?.workspaceRoot) {
3272
3272
  if (config5.changelog?.renderer && typeof config5.changelog?.renderer === "string" && config5.changelog?.renderer?.toString().startsWith("./")) {
3273
- config5.changelog.renderer = chunkNUGDUPXJ_cjs.joinPaths(
3273
+ config5.changelog.renderer = chunkZWFRZLHA_cjs.joinPaths(
3274
3274
  workspaceConfig.workspaceRoot,
3275
3275
  config5.changelog.renderer
3276
3276
  );
3277
3277
  }
3278
3278
  if (config5.version?.versionActions && config5.version.versionActions.startsWith("./")) {
3279
- config5.version.versionActions = chunkNUGDUPXJ_cjs.joinPaths(
3279
+ config5.version.versionActions = chunkZWFRZLHA_cjs.joinPaths(
3280
3280
  workspaceConfig.workspaceRoot,
3281
3281
  config5.version?.versionActions
3282
3282
  );
@@ -3291,7 +3291,7 @@ function getReleaseGroupConfig(releaseConfig, workspaceConfig) {
3291
3291
  var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
3292
3292
  static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
3293
3293
  if (!workspaceConfig) {
3294
- workspaceConfig = await chunkNUGDUPXJ_cjs.getWorkspaceConfig();
3294
+ workspaceConfig = await chunkZWFRZLHA_cjs.getWorkspaceConfig();
3295
3295
  }
3296
3296
  let projectGraph;
3297
3297
  try {
@@ -3344,10 +3344,10 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3344
3344
  */
3345
3345
  constructor(projectGraph, releaseConfig, ignoreNxJsonConfig, workspaceConfig) {
3346
3346
  let nxJson$1;
3347
- if (!ignoreNxJsonConfig && fs$1.existsSync(chunkNUGDUPXJ_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
3347
+ if (!ignoreNxJsonConfig && fs$1.existsSync(chunkZWFRZLHA_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
3348
3348
  nxJson$1 = nxJson.readNxJson();
3349
3349
  }
3350
- const config5 = chunkNUGDUPXJ_cjs.defu(
3350
+ const config5 = chunkZWFRZLHA_cjs.defu(
3351
3351
  {
3352
3352
  changelog: {
3353
3353
  renderOptions: {
@@ -3369,11 +3369,11 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3369
3369
  omit(DEFAULT_RELEASE_CONFIG, ["groups"])
3370
3370
  );
3371
3371
  super(config5, true);
3372
- chunkNUGDUPXJ_cjs.writeDebug(
3372
+ chunkZWFRZLHA_cjs.writeDebug(
3373
3373
  "Executing release with the following configuration",
3374
3374
  workspaceConfig
3375
3375
  );
3376
- chunkNUGDUPXJ_cjs.writeDebug(config5, workspaceConfig);
3376
+ chunkZWFRZLHA_cjs.writeDebug(config5, workspaceConfig);
3377
3377
  this.projectGraph = projectGraph;
3378
3378
  this.config = config5;
3379
3379
  this.workspaceConfig = workspaceConfig;
@@ -3517,7 +3517,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3517
3517
  })),
3518
3518
  this.config.conventionalCommits
3519
3519
  );
3520
- chunkNUGDUPXJ_cjs.writeDebug(
3520
+ chunkZWFRZLHA_cjs.writeDebug(
3521
3521
  `Running changelog generation for the ${releaseGroup.name} release group`,
3522
3522
  this.workspaceConfig
3523
3523
  );
@@ -3588,7 +3588,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3588
3588
  })),
3589
3589
  this.config.conventionalCommits
3590
3590
  );
3591
- chunkNUGDUPXJ_cjs.writeDebug(
3591
+ chunkZWFRZLHA_cjs.writeDebug(
3592
3592
  `Running changelog generation for the ${releaseGroup.name} release group`,
3593
3593
  this.workspaceConfig
3594
3594
  );
@@ -3617,7 +3617,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3617
3617
  }
3618
3618
  }
3619
3619
  }
3620
- chunkNUGDUPXJ_cjs.writeDebug(
3620
+ chunkZWFRZLHA_cjs.writeDebug(
3621
3621
  `Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
3622
3622
  ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
3623
3623
  `,
@@ -3646,7 +3646,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
3646
3646
  );
3647
3647
  const changes = this.tree.listChanges();
3648
3648
  if (!changes.length) {
3649
- chunkNUGDUPXJ_cjs.writeWarning(
3649
+ chunkZWFRZLHA_cjs.writeWarning(
3650
3650
  "No changes were detected for any changelog files, so no changelog entries will be generated.",
3651
3651
  this.workspaceConfig
3652
3652
  );
@@ -3668,7 +3668,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
3668
3668
  gitCommitArgs: options.gitCommitArgs || this.config.changelog?.git?.commitArgs
3669
3669
  });
3670
3670
  latestCommit = await git.getCommitHash("HEAD");
3671
- chunkNUGDUPXJ_cjs.writeDebug(
3671
+ chunkZWFRZLHA_cjs.writeDebug(
3672
3672
  `Creating git tags: ${gitTagValues.join(", ")}`,
3673
3673
  this.workspaceConfig
3674
3674
  );
@@ -3681,7 +3681,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
3681
3681
  verbose: options.verbose
3682
3682
  });
3683
3683
  }
3684
- chunkNUGDUPXJ_cjs.writeDebug(
3684
+ chunkZWFRZLHA_cjs.writeDebug(
3685
3685
  `Pushing to git remote "${options.gitRemote ?? "origin"}"`,
3686
3686
  this.workspaceConfig
3687
3687
  );
@@ -3713,7 +3713,7 @@ var runRelease = async (config5, {
3713
3713
  throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
3714
3714
  }
3715
3715
  if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
3716
- chunkNUGDUPXJ_cjs.writeFatal(
3716
+ chunkZWFRZLHA_cjs.writeFatal(
3717
3717
  "You must be a member of the Storm Software organization to run the release process.",
3718
3718
  config5
3719
3719
  );
@@ -3730,26 +3730,26 @@ var runRelease = async (config5, {
3730
3730
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
3731
3731
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
3732
3732
  process.env.NPM_CONFIG_PROVENANCE = "true";
3733
- chunkNUGDUPXJ_cjs.writeDebug("Creating Storm release client...", config5);
3733
+ chunkZWFRZLHA_cjs.writeDebug("Creating Storm release client...", config5);
3734
3734
  const releaseClient = await StormReleaseClient.create(
3735
3735
  releaseConfig,
3736
3736
  ignoreNxJsonConfig,
3737
3737
  config5
3738
3738
  );
3739
- chunkNUGDUPXJ_cjs.writeDebug("Reading in the workspaces release configuration", config5);
3739
+ chunkZWFRZLHA_cjs.writeDebug("Reading in the workspaces release configuration", config5);
3740
3740
  const to = head || process.env.NX_HEAD;
3741
3741
  const from = base || process.env.NX_BASE;
3742
- chunkNUGDUPXJ_cjs.writeDebug(
3742
+ chunkZWFRZLHA_cjs.writeDebug(
3743
3743
  `Using the following Git SHAs to determine the release content:
3744
3744
  - From: ${from}
3745
3745
  - To: ${to}
3746
3746
  `,
3747
3747
  config5
3748
3748
  );
3749
- chunkNUGDUPXJ_cjs.writeDebug("Determining the current release versions...", config5);
3749
+ chunkZWFRZLHA_cjs.writeDebug("Determining the current release versions...", config5);
3750
3750
  const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
3751
3751
  dryRun,
3752
- verbose: chunkNUGDUPXJ_cjs.isVerbose(config5.logLevel),
3752
+ verbose: chunkZWFRZLHA_cjs.isVerbose(config5.logLevel),
3753
3753
  preid: config5.preid,
3754
3754
  stageChanges: true,
3755
3755
  gitCommit: false
@@ -3758,14 +3758,14 @@ var runRelease = async (config5, {
3758
3758
  version: releaseConfig?.projectsRelationship === "fixed" ? workspaceVersion : void 0,
3759
3759
  versionData: projectsVersionData,
3760
3760
  dryRun,
3761
- verbose: chunkNUGDUPXJ_cjs.isVerbose(config5.logLevel),
3761
+ verbose: chunkZWFRZLHA_cjs.isVerbose(config5.logLevel),
3762
3762
  to,
3763
3763
  from,
3764
3764
  releaseGraph
3765
3765
  });
3766
- chunkNUGDUPXJ_cjs.writeDebug("Tagging commit with git", config5);
3766
+ chunkZWFRZLHA_cjs.writeDebug("Tagging commit with git", config5);
3767
3767
  if (skipPublish) {
3768
- chunkNUGDUPXJ_cjs.writeWarning(
3768
+ chunkZWFRZLHA_cjs.writeWarning(
3769
3769
  "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
3770
3770
  config5
3771
3771
  );
@@ -3774,7 +3774,7 @@ var runRelease = async (config5, {
3774
3774
  (key) => projectsVersionData[key]?.newVersion
3775
3775
  );
3776
3776
  if (changedProjects.length > 0) {
3777
- chunkNUGDUPXJ_cjs.writeInfo(
3777
+ chunkZWFRZLHA_cjs.writeInfo(
3778
3778
  `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
3779
3779
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
3780
3780
  `,
@@ -3783,7 +3783,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
3783
3783
  await updatePackageManifests(projectsVersionData, config5);
3784
3784
  const result = await releaseClient.releasePublish({
3785
3785
  dryRun,
3786
- verbose: chunkNUGDUPXJ_cjs.isVerbose(config5.logLevel)
3786
+ verbose: chunkZWFRZLHA_cjs.isVerbose(config5.logLevel)
3787
3787
  });
3788
3788
  const failedProjects = Object.keys(result).filter(
3789
3789
  (key) => result[key]?.code && result[key]?.code > 0
@@ -3798,10 +3798,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
3798
3798
  );
3799
3799
  }
3800
3800
  } else {
3801
- chunkNUGDUPXJ_cjs.writeWarning("Skipped publishing packages.", config5);
3801
+ chunkZWFRZLHA_cjs.writeWarning("Skipped publishing packages.", config5);
3802
3802
  }
3803
3803
  }
3804
- chunkNUGDUPXJ_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
3804
+ chunkZWFRZLHA_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
3805
3805
  };
3806
3806
  async function updatePackageManifests(projectsVersionData, config5) {
3807
3807
  let projectGraph;
@@ -3816,7 +3816,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
3816
3816
  Object.keys(projectsVersionData).map(async (node) => {
3817
3817
  const projectNode = projectGraph.nodes[node];
3818
3818
  if (!projectNode?.data.root) {
3819
- chunkNUGDUPXJ_cjs.writeWarning(
3819
+ chunkZWFRZLHA_cjs.writeWarning(
3820
3820
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
3821
3821
  config5
3822
3822
  );
@@ -3824,17 +3824,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
3824
3824
  }
3825
3825
  const versionData = projectsVersionData[node];
3826
3826
  if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
3827
- chunkNUGDUPXJ_cjs.writeTrace(
3827
+ chunkZWFRZLHA_cjs.writeTrace(
3828
3828
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
3829
3829
  `,
3830
3830
  config5
3831
3831
  );
3832
- const projectRoot = chunkNUGDUPXJ_cjs.joinPaths(
3832
+ const projectRoot = chunkZWFRZLHA_cjs.joinPaths(
3833
3833
  config5.workspaceRoot,
3834
3834
  projectNode.data.root
3835
3835
  );
3836
- const packageJsonPath = chunkNUGDUPXJ_cjs.joinPaths(projectRoot, "package.json");
3837
- const cargoTomlPath = chunkNUGDUPXJ_cjs.joinPaths(projectRoot, "Cargo.toml");
3836
+ const packageJsonPath = chunkZWFRZLHA_cjs.joinPaths(projectRoot, "package.json");
3837
+ const cargoTomlPath = chunkZWFRZLHA_cjs.joinPaths(projectRoot, "Cargo.toml");
3838
3838
  if (fs$1.existsSync(packageJsonPath)) {
3839
3839
  const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
3840
3840
  const packageJson = JSON.parse(packageJsonContent);
@@ -3852,7 +3852,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
3852
3852
  })
3853
3853
  );
3854
3854
  } else {
3855
- chunkNUGDUPXJ_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
3855
+ chunkZWFRZLHA_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
3856
3856
  }
3857
3857
  }
3858
3858
 
@@ -3860,8 +3860,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
3860
3860
  var _config = {};
3861
3861
  function createProgram(config5) {
3862
3862
  _config = config5;
3863
- chunkNUGDUPXJ_cjs.writeInfo("\u26A1 Running Storm Git Tools", config5);
3864
- const root = chunkNUGDUPXJ_cjs.findWorkspaceRootSafe(process.cwd());
3863
+ chunkZWFRZLHA_cjs.writeInfo("\u26A1 Running Storm Git Tools", config5);
3864
+ const root = chunkZWFRZLHA_cjs.findWorkspaceRootSafe(process.cwd());
3865
3865
  process.env.STORM_WORKSPACE_ROOT ??= root;
3866
3866
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
3867
3867
  if (root) {
@@ -3901,12 +3901,12 @@ async function commitAction({
3901
3901
  dryRun = false
3902
3902
  }) {
3903
3903
  try {
3904
- chunkNUGDUPXJ_cjs.writeInfo(
3904
+ chunkZWFRZLHA_cjs.writeInfo(
3905
3905
  `\u26A1 Preparing to commit your changes. Please provide the requested details below...`,
3906
3906
  _config
3907
3907
  );
3908
3908
  await runCommit(config5, dryRun);
3909
- chunkNUGDUPXJ_cjs.writeSuccess(
3909
+ chunkZWFRZLHA_cjs.writeSuccess(
3910
3910
  `\u{1F389} Storm Commit processing completed successfully!
3911
3911
 
3912
3912
  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 +3914,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
3914
3914
  _config
3915
3915
  );
3916
3916
  } catch (error) {
3917
- chunkNUGDUPXJ_cjs.writeFatal(
3917
+ chunkZWFRZLHA_cjs.writeFatal(
3918
3918
  `A fatal error occurred while running commit action:
3919
3919
 
3920
3920
  ${error.message}${error.stack ? `
@@ -3929,14 +3929,14 @@ Please fix any errors and try committing again.`,
3929
3929
  }
3930
3930
  async function readmeAction(options) {
3931
3931
  try {
3932
- chunkNUGDUPXJ_cjs.writeInfo("\u26A1 Formatting the workspace's README.md files", _config);
3932
+ chunkZWFRZLHA_cjs.writeInfo("\u26A1 Formatting the workspace's README.md files", _config);
3933
3933
  await runReadme(options);
3934
- chunkNUGDUPXJ_cjs.writeSuccess(
3934
+ chunkZWFRZLHA_cjs.writeSuccess(
3935
3935
  "Formatting of the workspace's README.md files is complete\n",
3936
3936
  _config
3937
3937
  );
3938
3938
  } catch (error) {
3939
- chunkNUGDUPXJ_cjs.writeFatal(
3939
+ chunkZWFRZLHA_cjs.writeFatal(
3940
3940
  `A fatal error occurred while running README format action:
3941
3941
 
3942
3942
  ${error.message}`
@@ -3951,7 +3951,7 @@ async function releaseAction({
3951
3951
  dryRun
3952
3952
  }) {
3953
3953
  try {
3954
- chunkNUGDUPXJ_cjs.writeInfo(
3954
+ chunkZWFRZLHA_cjs.writeInfo(
3955
3955
  "\u26A1 Running the Storm Release and Publish process on the workspace",
3956
3956
  _config
3957
3957
  );
@@ -3961,9 +3961,9 @@ async function releaseAction({
3961
3961
  base,
3962
3962
  head
3963
3963
  });
3964
- chunkNUGDUPXJ_cjs.writeSuccess("Release completed successfully!\n", _config);
3964
+ chunkZWFRZLHA_cjs.writeSuccess("Release completed successfully!\n", _config);
3965
3965
  } catch (error) {
3966
- chunkNUGDUPXJ_cjs.writeFatal(
3966
+ chunkZWFRZLHA_cjs.writeFatal(
3967
3967
  `A fatal error occurred while running release action:
3968
3968
 
3969
3969
  ${error.message} ${error.stack ? `
@@ -3977,17 +3977,17 @@ Stacktrace: ${error.stack}` : ""}`,
3977
3977
  }
3978
3978
  async function commitLintAction(options) {
3979
3979
  try {
3980
- chunkNUGDUPXJ_cjs.writeInfo(
3980
+ chunkZWFRZLHA_cjs.writeInfo(
3981
3981
  `\u26A1 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.`,
3982
3982
  _config
3983
3983
  );
3984
3984
  await runCommitLint(_config, options);
3985
- chunkNUGDUPXJ_cjs.writeSuccess(
3985
+ chunkZWFRZLHA_cjs.writeSuccess(
3986
3986
  "Linting the commit messages completed successfully!\n",
3987
3987
  _config
3988
3988
  );
3989
3989
  } catch (error) {
3990
- chunkNUGDUPXJ_cjs.writeFatal(
3990
+ chunkZWFRZLHA_cjs.writeFatal(
3991
3991
  `A fatal error occurred while linting the commit messages:
3992
3992
 
3993
3993
  ${error.message}`,
@@ -3999,18 +3999,18 @@ ${error.message}`,
3999
3999
 
4000
4000
  // bin/git.ts
4001
4001
  void (async () => {
4002
- const config5 = await chunkNUGDUPXJ_cjs.getConfig();
4002
+ const config5 = await chunkZWFRZLHA_cjs.getConfig();
4003
4003
  try {
4004
- chunkNUGDUPXJ_cjs.handleProcess(config5);
4004
+ chunkZWFRZLHA_cjs.handleProcess(config5);
4005
4005
  const program = createProgram(config5);
4006
4006
  await program.parseAsync(process.argv);
4007
- chunkNUGDUPXJ_cjs.writeSuccess(
4007
+ chunkZWFRZLHA_cjs.writeSuccess(
4008
4008
  `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
4009
4009
  config5
4010
4010
  );
4011
- chunkNUGDUPXJ_cjs.exitWithSuccess(config5);
4011
+ chunkZWFRZLHA_cjs.exitWithSuccess(config5);
4012
4012
  } catch (error) {
4013
- chunkNUGDUPXJ_cjs.exitWithError(config5);
4013
+ chunkZWFRZLHA_cjs.exitWithError(config5);
4014
4014
  process.exit(1);
4015
4015
  }
4016
4016
  })();
package/bin/git.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import './chunk-Q3DQKTOI.js';
3
3
  import { run } from './chunk-G3YPGVPS.js';
4
- import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, isVerbose, writeWarning, defu, writeTrace, STORM_DEFAULT_RELEASE_BANNER } from './chunk-UKNYCUVS.js';
4
+ import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, isVerbose, writeWarning, defu, writeTrace, STORM_DEFAULT_RELEASE_BANNER } from './chunk-GJVVJ34O.js';
5
5
  import TOML from '@ltd/j-toml';
6
6
  import { Command } from 'commander';
7
7
  import '@inquirer/checkbox';
@@ -3,33 +3,33 @@
3
3
 
4
4
  var chunkAU5PZKTN_cjs = require('./chunk-AU5PZKTN.cjs');
5
5
  var chunkFH5OSXAJ_cjs = require('./chunk-FH5OSXAJ.cjs');
6
- var chunkNUGDUPXJ_cjs = require('./chunk-NUGDUPXJ.cjs');
6
+ var chunkZWFRZLHA_cjs = require('./chunk-ZWFRZLHA.cjs');
7
7
 
8
8
  // bin/post-checkout.ts
9
9
  void (async () => {
10
- const config = await chunkNUGDUPXJ_cjs.getConfig();
10
+ const config = await chunkZWFRZLHA_cjs.getConfig();
11
11
  try {
12
- chunkNUGDUPXJ_cjs.handleProcess(config);
13
- chunkNUGDUPXJ_cjs.writeInfo("Running post-checkout hook...", config);
12
+ chunkZWFRZLHA_cjs.handleProcess(config);
13
+ chunkZWFRZLHA_cjs.writeInfo("Running post-checkout hook...", config);
14
14
  chunkAU5PZKTN_cjs.checkPackageVersion(process.argv?.slice(1));
15
15
  try {
16
16
  chunkFH5OSXAJ_cjs.run(config, "git-lfs version");
17
17
  } catch (error) {
18
- chunkNUGDUPXJ_cjs.writeError(
18
+ chunkZWFRZLHA_cjs.writeError(
19
19
  `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.
20
20
  Error: ${error?.message}`,
21
21
  config
22
22
  );
23
- chunkNUGDUPXJ_cjs.exitWithError(config);
23
+ chunkZWFRZLHA_cjs.exitWithError(config);
24
24
  }
25
25
  chunkFH5OSXAJ_cjs.run(config, "git lfs post-checkout");
26
- chunkNUGDUPXJ_cjs.exitWithSuccess(config);
26
+ chunkZWFRZLHA_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunkNUGDUPXJ_cjs.writeFatal(
28
+ chunkZWFRZLHA_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunkNUGDUPXJ_cjs.exitWithError(config);
32
+ chunkZWFRZLHA_cjs.exitWithError(config);
33
33
  process.exit(1);
34
34
  }
35
35
  })();
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { checkPackageVersion } from './chunk-Q3DQKTOI.js';
3
3
  import { run } from './chunk-G3YPGVPS.js';
4
- import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-UKNYCUVS.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-GJVVJ34O.js';
5
5
 
6
6
  // bin/post-checkout.ts
7
7
  void (async () => {
@@ -3,33 +3,33 @@
3
3
 
4
4
  var chunkAU5PZKTN_cjs = require('./chunk-AU5PZKTN.cjs');
5
5
  var chunkFH5OSXAJ_cjs = require('./chunk-FH5OSXAJ.cjs');
6
- var chunkNUGDUPXJ_cjs = require('./chunk-NUGDUPXJ.cjs');
6
+ var chunkZWFRZLHA_cjs = require('./chunk-ZWFRZLHA.cjs');
7
7
 
8
8
  // bin/post-commit.ts
9
9
  void (async () => {
10
- const config = await chunkNUGDUPXJ_cjs.getConfig();
10
+ const config = await chunkZWFRZLHA_cjs.getConfig();
11
11
  try {
12
- chunkNUGDUPXJ_cjs.handleProcess(config);
13
- chunkNUGDUPXJ_cjs.writeInfo("Running post-commit hook...", config);
12
+ chunkZWFRZLHA_cjs.handleProcess(config);
13
+ chunkZWFRZLHA_cjs.writeInfo("Running post-commit hook...", config);
14
14
  chunkAU5PZKTN_cjs.checkPackageVersion(process.argv?.slice(1));
15
15
  try {
16
16
  chunkFH5OSXAJ_cjs.run(config, "git-lfs version");
17
17
  } catch (error) {
18
- chunkNUGDUPXJ_cjs.writeError(
18
+ chunkZWFRZLHA_cjs.writeError(
19
19
  `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.
20
20
  Error: ${error?.message}`,
21
21
  config
22
22
  );
23
- chunkNUGDUPXJ_cjs.exitWithError(config);
23
+ chunkZWFRZLHA_cjs.exitWithError(config);
24
24
  }
25
25
  chunkFH5OSXAJ_cjs.run(config, "git lfs post-commit");
26
- chunkNUGDUPXJ_cjs.exitWithSuccess(config);
26
+ chunkZWFRZLHA_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunkNUGDUPXJ_cjs.writeFatal(
28
+ chunkZWFRZLHA_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunkNUGDUPXJ_cjs.exitWithError(config);
32
+ chunkZWFRZLHA_cjs.exitWithError(config);
33
33
  process.exit(1);
34
34
  }
35
35
  })();
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { checkPackageVersion } from './chunk-Q3DQKTOI.js';
3
3
  import { run } from './chunk-G3YPGVPS.js';
4
- import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-UKNYCUVS.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-GJVVJ34O.js';
5
5
 
6
6
  // bin/post-commit.ts
7
7
  void (async () => {