@storm-software/git-tools 2.124.22 → 2.124.23

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 chunkX6SBCQZO_cjs = require('./chunk-X6SBCQZO.cjs');
6
+ var chunkF65GQVIX_cjs = require('./chunk-F65GQVIX.cjs');
7
7
  var TOML = require('@ltd/j-toml');
8
8
  var commander = require('commander');
9
9
  var prompts = require('@inquirer/prompts');
@@ -390,9 +390,9 @@ function getRuleFromScopeEnum(scopeEnum) {
390
390
 
391
391
  // ../conventional-changelog/src/index.ts
392
392
  async function createPreset(variant = "monorepo") {
393
- const workspaceConfig = await chunkX6SBCQZO_cjs.getWorkspaceConfig();
393
+ const workspaceConfig = await chunkF65GQVIX_cjs.getWorkspaceConfig();
394
394
  if (variant === "minimal") {
395
- return chunkX6SBCQZO_cjs.defu(
395
+ return chunkF65GQVIX_cjs.defu(
396
396
  await createBasePreset__default.default({ ...COMMIT_CONFIGS.minimal.changelogs.props }),
397
397
  {
398
398
  ...COMMIT_CONFIGS.minimal,
@@ -406,7 +406,7 @@ async function createPreset(variant = "monorepo") {
406
406
  );
407
407
  }
408
408
  const nxScopes = await getNxScopes({ config: workspaceConfig });
409
- return chunkX6SBCQZO_cjs.defu(
409
+ return chunkF65GQVIX_cjs.defu(
410
410
  await createBasePreset__default.default({
411
411
  ...COMMIT_CONFIGS.monorepo.changelogs.props,
412
412
  scope: nxScopes
@@ -958,7 +958,7 @@ async function lint(message, config5) {
958
958
  // src/commitlint/run.ts
959
959
  var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
960
960
  async function runCommitLint(workspaceConfig, options) {
961
- chunkX6SBCQZO_cjs.writeInfo(
961
+ chunkF65GQVIX_cjs.writeInfo(
962
962
  "\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
963
963
  workspaceConfig
964
964
  );
@@ -966,7 +966,7 @@ async function runCommitLint(workspaceConfig, options) {
966
966
  if (options.message && options.message !== COMMIT_EDITMSG_PATH) {
967
967
  commitMessage = options.message;
968
968
  } else {
969
- const commitFile = chunkX6SBCQZO_cjs.joinPaths(
969
+ const commitFile = chunkF65GQVIX_cjs.joinPaths(
970
970
  workspaceConfig.workspaceRoot,
971
971
  options.file || options.message || COMMIT_EDITMSG_PATH
972
972
  );
@@ -983,17 +983,17 @@ async function runCommitLint(workspaceConfig, options) {
983
983
  if (upstreamRemote) {
984
984
  const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
985
985
  if (!upstreamRemoteIdentifier) {
986
- chunkX6SBCQZO_cjs.writeWarning(
986
+ chunkF65GQVIX_cjs.writeWarning(
987
987
  `No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison.`,
988
988
  workspaceConfig
989
989
  );
990
990
  return;
991
991
  }
992
- chunkX6SBCQZO_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
992
+ chunkF65GQVIX_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
993
993
  const currentBranch = childProcess__default.default.execSync("git branch --show-current").toString().trim();
994
994
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
995
995
  } else {
996
- chunkX6SBCQZO_cjs.writeWarning(
996
+ chunkF65GQVIX_cjs.writeWarning(
997
997
  `No upstream remote found for ${workspaceConfig.name}.git. Skipping comparison against upstream main.`,
998
998
  workspaceConfig
999
999
  );
@@ -1001,7 +1001,7 @@ async function runCommitLint(workspaceConfig, options) {
1001
1001
  }
1002
1002
  commitMessage = childProcess__default.default.execSync(gitLogCmd).toString().trim();
1003
1003
  if (!commitMessage) {
1004
- chunkX6SBCQZO_cjs.writeWarning(
1004
+ chunkF65GQVIX_cjs.writeWarning(
1005
1005
  "No commits found. Skipping commit message validation.",
1006
1006
  workspaceConfig
1007
1007
  );
@@ -1011,7 +1011,7 @@ async function runCommitLint(workspaceConfig, options) {
1011
1011
  const preset = await createPreset(workspaceConfig.variant);
1012
1012
  const report = await lint(commitMessage, preset);
1013
1013
  if (!preset.commitlint.regex.test(commitMessage) || report.errors.length || report.warnings.length) {
1014
- chunkX6SBCQZO_cjs.writeSuccess(
1014
+ chunkF65GQVIX_cjs.writeSuccess(
1015
1015
  `Commit was processing completed successfully!`,
1016
1016
  workspaceConfig
1017
1017
  );
@@ -1223,7 +1223,7 @@ async function createState(workspaceConfig, configPath) {
1223
1223
  const project = projectConfigurations.projects[scope];
1224
1224
  if (project) {
1225
1225
  let description = `${project.name} - ${project.root}`;
1226
- const packageJsonPath = chunkX6SBCQZO_cjs.joinPaths(project.root, "package.json");
1226
+ const packageJsonPath = chunkF65GQVIX_cjs.joinPaths(project.root, "package.json");
1227
1227
  if (fs$1.existsSync(packageJsonPath)) {
1228
1228
  const packageJsonFile = await fs.readFile(packageJsonPath, "utf8");
1229
1229
  const packageJson = JSON.parse(packageJsonFile);
@@ -1297,10 +1297,10 @@ ${closedIssueEmoji}${config5.settings.closedIssueMessage}${issues}`;
1297
1297
 
1298
1298
  // src/commit/run.ts
1299
1299
  async function runCommit(commitizenFile, dryRun = false) {
1300
- const workspaceConfig = await chunkX6SBCQZO_cjs.getWorkspaceConfig();
1300
+ const workspaceConfig = await chunkF65GQVIX_cjs.getWorkspaceConfig();
1301
1301
  const state = await createState(workspaceConfig);
1302
1302
  if (dryRun) {
1303
- chunkX6SBCQZO_cjs.writeInfo("Running in dry mode.", workspaceConfig);
1303
+ chunkF65GQVIX_cjs.writeInfo("Running in dry mode.", workspaceConfig);
1304
1304
  }
1305
1305
  console.log(chalkTemplate__default.default`
1306
1306
  {bold.#999999 ----------------------------------------}
@@ -1310,7 +1310,7 @@ async function runCommit(commitizenFile, dryRun = false) {
1310
1310
  `);
1311
1311
  state.answers = await askQuestions(state);
1312
1312
  const message = formatCommitMessage(state, workspaceConfig);
1313
- const commitMsgFile = chunkX6SBCQZO_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
1313
+ const commitMsgFile = chunkF65GQVIX_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
1314
1314
  console.log(chalkTemplate__default.default`
1315
1315
  {bold.#999999 ----------------------------------------}
1316
1316
 
@@ -1323,11 +1323,11 @@ async function runCommit(commitizenFile, dryRun = false) {
1323
1323
  commandItems.push(...["--file", commitMsgFile]);
1324
1324
  const command = shellescape__default.default(commandItems);
1325
1325
  if (dryRun) {
1326
- chunkX6SBCQZO_cjs.writeDebug(
1326
+ chunkF65GQVIX_cjs.writeDebug(
1327
1327
  `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
1328
1328
  workspaceConfig
1329
1329
  );
1330
- chunkX6SBCQZO_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
1330
+ chunkF65GQVIX_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
1331
1331
  } else {
1332
1332
  await fs__default.default.writeFile(commitMsgFile, message);
1333
1333
  chunkFH5OSXAJ_cjs.run(workspaceConfig, command);
@@ -2368,7 +2368,7 @@ async function generateChangelogContent(releaseVersion, filepath, newContent, cu
2368
2368
  const header = await prettier.format(
2369
2369
  `![${(typeof workspaceConfig?.release.banner === "string" ? workspaceConfig.organization ? titleCase(
2370
2370
  typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization.name
2371
- ) : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkX6SBCQZO_cjs.STORM_DEFAULT_RELEASE_BANNER})
2371
+ ) : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkF65GQVIX_cjs.STORM_DEFAULT_RELEASE_BANNER})
2372
2372
 
2373
2373
  # Changelog ${project || workspaceConfig?.name ? "for" : ""}${workspaceConfig?.name ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${workspaceConfig?.name ? " -" : ""} ${titleCase(project)}` : ""}
2374
2374
 
@@ -2544,12 +2544,12 @@ async function generateChangelogForProjects({
2544
2544
  projectChangelogs
2545
2545
  )) {
2546
2546
  if (!projectGraph.nodes[projectName]?.data.root) {
2547
- chunkX6SBCQZO_cjs.writeWarning(
2547
+ chunkF65GQVIX_cjs.writeWarning(
2548
2548
  `A changelog was generated for ${projectName}, but it could not be found in the project graph. Skipping writing changelog file.`,
2549
2549
  workspaceConfig
2550
2550
  );
2551
2551
  } else if (projectChangelog.contents) {
2552
- const filePath = chunkX6SBCQZO_cjs.joinPaths(
2552
+ const filePath = chunkF65GQVIX_cjs.joinPaths(
2553
2553
  projectGraph.nodes[projectName].data.root,
2554
2554
  "CHANGELOG.md"
2555
2555
  );
@@ -2557,7 +2557,7 @@ async function generateChangelogForProjects({
2557
2557
  if (fs$1.existsSync(filePath)) {
2558
2558
  currentContent = await fs.readFile(filePath, "utf8");
2559
2559
  }
2560
- chunkX6SBCQZO_cjs.writeDebug(
2560
+ chunkF65GQVIX_cjs.writeDebug(
2561
2561
  `\u270D\uFE0F Writing changelog for project ${projectName} to ${filePath}`,
2562
2562
  workspaceConfig
2563
2563
  );
@@ -2780,7 +2780,7 @@ var StormGithubRemoteReleaseClient = class extends github.GithubRemoteReleaseCli
2780
2780
  }
2781
2781
  async createOrUpdateRelease(releaseVersion, changelogContents, latestCommit, { dryRun }) {
2782
2782
  if (!this.workspaceConfig) {
2783
- this.workspaceConfig = await chunkX6SBCQZO_cjs.getWorkspaceConfig();
2783
+ this.workspaceConfig = await chunkF65GQVIX_cjs.getWorkspaceConfig();
2784
2784
  }
2785
2785
  const name = releaseVersion.gitTag.includes("@") ? releaseVersion.gitTag.replace(new RegExp(`^@${this.workspaceConfig.name}/`), "").replace(/@.*$/, "") : releaseVersion.gitTag;
2786
2786
  return super.createOrUpdateRelease(
@@ -2981,7 +2981,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
2981
2981
  }
2982
2982
  async render() {
2983
2983
  if (!this.workspaceConfig) {
2984
- this.workspaceConfig = await chunkX6SBCQZO_cjs.getWorkspaceConfig();
2984
+ this.workspaceConfig = await chunkF65GQVIX_cjs.getWorkspaceConfig();
2985
2985
  }
2986
2986
  return super.render();
2987
2987
  }
@@ -3235,7 +3235,7 @@ var DEFAULT_RELEASE_CONFIG = {
3235
3235
  function getReleaseGroupConfig(releaseConfig, workspaceConfig) {
3236
3236
  return !releaseConfig?.groups || Object.keys(releaseConfig.groups).length === 0 ? {} : Object.fromEntries(
3237
3237
  Object.entries(releaseConfig.groups).map(([name, group]) => {
3238
- const config5 = chunkX6SBCQZO_cjs.defu(
3238
+ const config5 = chunkF65GQVIX_cjs.defu(
3239
3239
  {
3240
3240
  ...omit(DEFAULT_RELEASE_GROUP_CONFIG, ["changelog"]),
3241
3241
  ...group
@@ -3253,13 +3253,13 @@ function getReleaseGroupConfig(releaseConfig, workspaceConfig) {
3253
3253
  );
3254
3254
  if (workspaceConfig?.workspaceRoot) {
3255
3255
  if (config5.changelog?.renderer && typeof config5.changelog?.renderer === "string" && config5.changelog?.renderer?.toString().startsWith("./")) {
3256
- config5.changelog.renderer = chunkX6SBCQZO_cjs.joinPaths(
3256
+ config5.changelog.renderer = chunkF65GQVIX_cjs.joinPaths(
3257
3257
  workspaceConfig.workspaceRoot,
3258
3258
  config5.changelog.renderer
3259
3259
  );
3260
3260
  }
3261
3261
  if (config5.version?.versionActions && config5.version.versionActions.startsWith("./")) {
3262
- config5.version.versionActions = chunkX6SBCQZO_cjs.joinPaths(
3262
+ config5.version.versionActions = chunkF65GQVIX_cjs.joinPaths(
3263
3263
  workspaceConfig.workspaceRoot,
3264
3264
  config5.version?.versionActions
3265
3265
  );
@@ -3274,7 +3274,7 @@ function getReleaseGroupConfig(releaseConfig, workspaceConfig) {
3274
3274
  var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient {
3275
3275
  static async create(releaseConfig = {}, ignoreNxJsonConfig = false, workspaceConfig) {
3276
3276
  if (!workspaceConfig) {
3277
- workspaceConfig = await chunkX6SBCQZO_cjs.getWorkspaceConfig();
3277
+ workspaceConfig = await chunkF65GQVIX_cjs.getWorkspaceConfig();
3278
3278
  }
3279
3279
  let projectGraph;
3280
3280
  try {
@@ -3327,10 +3327,10 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3327
3327
  */
3328
3328
  constructor(projectGraph, releaseConfig, ignoreNxJsonConfig, workspaceConfig) {
3329
3329
  let nxJson$1;
3330
- if (!ignoreNxJsonConfig && fs$1.existsSync(chunkX6SBCQZO_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
3330
+ if (!ignoreNxJsonConfig && fs$1.existsSync(chunkF65GQVIX_cjs.joinPaths(workspaceConfig.workspaceRoot, "nx.json"))) {
3331
3331
  nxJson$1 = nxJson.readNxJson();
3332
3332
  }
3333
- const config5 = chunkX6SBCQZO_cjs.defu(
3333
+ const config5 = chunkF65GQVIX_cjs.defu(
3334
3334
  {
3335
3335
  changelog: {
3336
3336
  renderOptions: {
@@ -3352,11 +3352,11 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3352
3352
  omit(DEFAULT_RELEASE_CONFIG, ["groups"])
3353
3353
  );
3354
3354
  super(config5, true);
3355
- chunkX6SBCQZO_cjs.writeDebug(
3355
+ chunkF65GQVIX_cjs.writeDebug(
3356
3356
  "Executing release with the following configuration",
3357
3357
  workspaceConfig
3358
3358
  );
3359
- chunkX6SBCQZO_cjs.writeDebug(config5, workspaceConfig);
3359
+ chunkF65GQVIX_cjs.writeDebug(config5, workspaceConfig);
3360
3360
  this.projectGraph = projectGraph;
3361
3361
  this.config = config5;
3362
3362
  this.workspaceConfig = workspaceConfig;
@@ -3500,7 +3500,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3500
3500
  })),
3501
3501
  this.config.conventionalCommits
3502
3502
  );
3503
- chunkX6SBCQZO_cjs.writeDebug(
3503
+ chunkF65GQVIX_cjs.writeDebug(
3504
3504
  `Running changelog generation for the ${releaseGroup.name} release group`,
3505
3505
  this.workspaceConfig
3506
3506
  );
@@ -3571,7 +3571,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3571
3571
  })),
3572
3572
  this.config.conventionalCommits
3573
3573
  );
3574
- chunkX6SBCQZO_cjs.writeDebug(
3574
+ chunkF65GQVIX_cjs.writeDebug(
3575
3575
  `Running changelog generation for the ${releaseGroup.name} release group`,
3576
3576
  this.workspaceConfig
3577
3577
  );
@@ -3600,7 +3600,7 @@ var StormReleaseClient = class _StormReleaseClient extends release.ReleaseClient
3600
3600
  }
3601
3601
  }
3602
3602
  }
3603
- chunkX6SBCQZO_cjs.writeDebug(
3603
+ chunkF65GQVIX_cjs.writeDebug(
3604
3604
  `Generated changelogs for ${Object.keys(allProjectChangelogs).length} projects:
3605
3605
  ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
3606
3606
  `,
@@ -3629,7 +3629,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
3629
3629
  );
3630
3630
  const changes = this.tree.listChanges();
3631
3631
  if (!changes.length) {
3632
- chunkX6SBCQZO_cjs.writeWarning(
3632
+ chunkF65GQVIX_cjs.writeWarning(
3633
3633
  "No changes were detected for any changelog files, so no changelog entries will be generated.",
3634
3634
  this.workspaceConfig
3635
3635
  );
@@ -3651,7 +3651,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
3651
3651
  gitCommitArgs: options.gitCommitArgs || this.config.changelog?.git?.commitArgs
3652
3652
  });
3653
3653
  latestCommit = await git.getCommitHash("HEAD");
3654
- chunkX6SBCQZO_cjs.writeDebug(
3654
+ chunkF65GQVIX_cjs.writeDebug(
3655
3655
  `Creating git tags: ${gitTagValues.join(", ")}`,
3656
3656
  this.workspaceConfig
3657
3657
  );
@@ -3664,7 +3664,7 @@ ${Object.keys(allProjectChangelogs).map((p) => ` - ${p}`).join("\n")}
3664
3664
  verbose: options.verbose
3665
3665
  });
3666
3666
  }
3667
- chunkX6SBCQZO_cjs.writeDebug(
3667
+ chunkF65GQVIX_cjs.writeDebug(
3668
3668
  `Pushing to git remote "${options.gitRemote ?? "origin"}"`,
3669
3669
  this.workspaceConfig
3670
3670
  );
@@ -3696,7 +3696,7 @@ var runRelease = async (config5, {
3696
3696
  throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
3697
3697
  }
3698
3698
  if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
3699
- chunkX6SBCQZO_cjs.writeFatal(
3699
+ chunkF65GQVIX_cjs.writeFatal(
3700
3700
  "You must be a member of the Storm Software organization to run the release process.",
3701
3701
  config5
3702
3702
  );
@@ -3713,26 +3713,26 @@ var runRelease = async (config5, {
3713
3713
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
3714
3714
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
3715
3715
  process.env.NPM_CONFIG_PROVENANCE = "true";
3716
- chunkX6SBCQZO_cjs.writeDebug("Creating Storm release client...", config5);
3716
+ chunkF65GQVIX_cjs.writeDebug("Creating Storm release client...", config5);
3717
3717
  const releaseClient = await StormReleaseClient.create(
3718
3718
  releaseConfig,
3719
3719
  ignoreNxJsonConfig,
3720
3720
  config5
3721
3721
  );
3722
- chunkX6SBCQZO_cjs.writeDebug("Reading in the workspaces release configuration", config5);
3722
+ chunkF65GQVIX_cjs.writeDebug("Reading in the workspaces release configuration", config5);
3723
3723
  const to = head || process.env.NX_HEAD;
3724
3724
  const from = base || process.env.NX_BASE;
3725
- chunkX6SBCQZO_cjs.writeDebug(
3725
+ chunkF65GQVIX_cjs.writeDebug(
3726
3726
  `Using the following Git SHAs to determine the release content:
3727
3727
  - From: ${from}
3728
3728
  - To: ${to}
3729
3729
  `,
3730
3730
  config5
3731
3731
  );
3732
- chunkX6SBCQZO_cjs.writeDebug("Determining the current release versions...", config5);
3732
+ chunkF65GQVIX_cjs.writeDebug("Determining the current release versions...", config5);
3733
3733
  const { workspaceVersion, projectsVersionData, releaseGraph } = await releaseClient.releaseVersion({
3734
3734
  dryRun,
3735
- verbose: chunkX6SBCQZO_cjs.isVerbose(config5.logLevel),
3735
+ verbose: chunkF65GQVIX_cjs.isVerbose(config5.logLevel),
3736
3736
  preid: config5.preid,
3737
3737
  stageChanges: true,
3738
3738
  gitCommit: false
@@ -3741,14 +3741,14 @@ var runRelease = async (config5, {
3741
3741
  version: releaseConfig?.projectsRelationship === "fixed" ? workspaceVersion : void 0,
3742
3742
  versionData: projectsVersionData,
3743
3743
  dryRun,
3744
- verbose: chunkX6SBCQZO_cjs.isVerbose(config5.logLevel),
3744
+ verbose: chunkF65GQVIX_cjs.isVerbose(config5.logLevel),
3745
3745
  to,
3746
3746
  from,
3747
3747
  releaseGraph
3748
3748
  });
3749
- chunkX6SBCQZO_cjs.writeDebug("Tagging commit with git", config5);
3749
+ chunkF65GQVIX_cjs.writeDebug("Tagging commit with git", config5);
3750
3750
  if (skipPublish) {
3751
- chunkX6SBCQZO_cjs.writeWarning(
3751
+ chunkF65GQVIX_cjs.writeWarning(
3752
3752
  "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
3753
3753
  config5
3754
3754
  );
@@ -3757,7 +3757,7 @@ var runRelease = async (config5, {
3757
3757
  (key) => projectsVersionData[key]?.newVersion
3758
3758
  );
3759
3759
  if (changedProjects.length > 0) {
3760
- chunkX6SBCQZO_cjs.writeInfo(
3760
+ chunkF65GQVIX_cjs.writeInfo(
3761
3761
  `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
3762
3762
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
3763
3763
  `,
@@ -3766,7 +3766,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
3766
3766
  await updatePackageManifests(projectsVersionData, config5);
3767
3767
  const result = await releaseClient.releasePublish({
3768
3768
  dryRun,
3769
- verbose: chunkX6SBCQZO_cjs.isVerbose(config5.logLevel)
3769
+ verbose: chunkF65GQVIX_cjs.isVerbose(config5.logLevel)
3770
3770
  });
3771
3771
  const failedProjects = Object.keys(result).filter(
3772
3772
  (key) => result[key]?.code && result[key]?.code > 0
@@ -3781,10 +3781,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
3781
3781
  );
3782
3782
  }
3783
3783
  } else {
3784
- chunkX6SBCQZO_cjs.writeWarning("Skipped publishing packages.", config5);
3784
+ chunkF65GQVIX_cjs.writeWarning("Skipped publishing packages.", config5);
3785
3785
  }
3786
3786
  }
3787
- chunkX6SBCQZO_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
3787
+ chunkF65GQVIX_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
3788
3788
  };
3789
3789
  async function updatePackageManifests(projectsVersionData, config5) {
3790
3790
  let projectGraph;
@@ -3799,7 +3799,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
3799
3799
  Object.keys(projectsVersionData).map(async (node) => {
3800
3800
  const projectNode = projectGraph.nodes[node];
3801
3801
  if (!projectNode?.data.root) {
3802
- chunkX6SBCQZO_cjs.writeWarning(
3802
+ chunkF65GQVIX_cjs.writeWarning(
3803
3803
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
3804
3804
  config5
3805
3805
  );
@@ -3807,17 +3807,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
3807
3807
  }
3808
3808
  const versionData = projectsVersionData[node];
3809
3809
  if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
3810
- chunkX6SBCQZO_cjs.writeTrace(
3810
+ chunkF65GQVIX_cjs.writeTrace(
3811
3811
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
3812
3812
  `,
3813
3813
  config5
3814
3814
  );
3815
- const projectRoot = chunkX6SBCQZO_cjs.joinPaths(
3815
+ const projectRoot = chunkF65GQVIX_cjs.joinPaths(
3816
3816
  config5.workspaceRoot,
3817
3817
  projectNode.data.root
3818
3818
  );
3819
- const packageJsonPath = chunkX6SBCQZO_cjs.joinPaths(projectRoot, "package.json");
3820
- const cargoTomlPath = chunkX6SBCQZO_cjs.joinPaths(projectRoot, "Cargo.toml");
3819
+ const packageJsonPath = chunkF65GQVIX_cjs.joinPaths(projectRoot, "package.json");
3820
+ const cargoTomlPath = chunkF65GQVIX_cjs.joinPaths(projectRoot, "Cargo.toml");
3821
3821
  if (fs$1.existsSync(packageJsonPath)) {
3822
3822
  const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
3823
3823
  const packageJson = JSON.parse(packageJsonContent);
@@ -3835,7 +3835,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
3835
3835
  })
3836
3836
  );
3837
3837
  } else {
3838
- chunkX6SBCQZO_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
3838
+ chunkF65GQVIX_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
3839
3839
  }
3840
3840
  }
3841
3841
 
@@ -3843,8 +3843,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
3843
3843
  var _config = {};
3844
3844
  function createProgram(config5) {
3845
3845
  _config = config5;
3846
- chunkX6SBCQZO_cjs.writeInfo("\u26A1 Running Storm Git Tools", config5);
3847
- const root = chunkX6SBCQZO_cjs.findWorkspaceRootSafe(process.cwd());
3846
+ chunkF65GQVIX_cjs.writeInfo("\u26A1 Running Storm Git Tools", config5);
3847
+ const root = chunkF65GQVIX_cjs.findWorkspaceRootSafe(process.cwd());
3848
3848
  process.env.STORM_WORKSPACE_ROOT ??= root;
3849
3849
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
3850
3850
  if (root) {
@@ -3884,12 +3884,12 @@ async function commitAction({
3884
3884
  dryRun = false
3885
3885
  }) {
3886
3886
  try {
3887
- chunkX6SBCQZO_cjs.writeInfo(
3887
+ chunkF65GQVIX_cjs.writeInfo(
3888
3888
  `\u26A1 Preparing to commit your changes. Please provide the requested details below...`,
3889
3889
  _config
3890
3890
  );
3891
3891
  await runCommit(config5, dryRun);
3892
- chunkX6SBCQZO_cjs.writeSuccess(
3892
+ chunkF65GQVIX_cjs.writeSuccess(
3893
3893
  `\u{1F389} Storm Commit processing completed successfully!
3894
3894
 
3895
3895
  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}
@@ -3897,7 +3897,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
3897
3897
  _config
3898
3898
  );
3899
3899
  } catch (error) {
3900
- chunkX6SBCQZO_cjs.writeFatal(
3900
+ chunkF65GQVIX_cjs.writeFatal(
3901
3901
  `A fatal error occurred while running commit action:
3902
3902
 
3903
3903
  ${error.message}${error.stack ? `
@@ -3912,14 +3912,14 @@ Please fix any errors and try committing again.`,
3912
3912
  }
3913
3913
  async function readmeAction(options) {
3914
3914
  try {
3915
- chunkX6SBCQZO_cjs.writeInfo("\u26A1 Formatting the workspace's README.md files", _config);
3915
+ chunkF65GQVIX_cjs.writeInfo("\u26A1 Formatting the workspace's README.md files", _config);
3916
3916
  await runReadme(options);
3917
- chunkX6SBCQZO_cjs.writeSuccess(
3917
+ chunkF65GQVIX_cjs.writeSuccess(
3918
3918
  "Formatting of the workspace's README.md files is complete\n",
3919
3919
  _config
3920
3920
  );
3921
3921
  } catch (error) {
3922
- chunkX6SBCQZO_cjs.writeFatal(
3922
+ chunkF65GQVIX_cjs.writeFatal(
3923
3923
  `A fatal error occurred while running README format action:
3924
3924
 
3925
3925
  ${error.message}`
@@ -3934,7 +3934,7 @@ async function releaseAction({
3934
3934
  dryRun
3935
3935
  }) {
3936
3936
  try {
3937
- chunkX6SBCQZO_cjs.writeInfo(
3937
+ chunkF65GQVIX_cjs.writeInfo(
3938
3938
  "\u26A1 Running the Storm Release and Publish process on the workspace",
3939
3939
  _config
3940
3940
  );
@@ -3944,9 +3944,9 @@ async function releaseAction({
3944
3944
  base,
3945
3945
  head
3946
3946
  });
3947
- chunkX6SBCQZO_cjs.writeSuccess("Release completed successfully!\n", _config);
3947
+ chunkF65GQVIX_cjs.writeSuccess("Release completed successfully!\n", _config);
3948
3948
  } catch (error) {
3949
- chunkX6SBCQZO_cjs.writeFatal(
3949
+ chunkF65GQVIX_cjs.writeFatal(
3950
3950
  `A fatal error occurred while running release action:
3951
3951
 
3952
3952
  ${error.message} ${error.stack ? `
@@ -3960,17 +3960,17 @@ Stacktrace: ${error.stack}` : ""}`,
3960
3960
  }
3961
3961
  async function commitLintAction(options) {
3962
3962
  try {
3963
- chunkX6SBCQZO_cjs.writeInfo(
3963
+ chunkF65GQVIX_cjs.writeInfo(
3964
3964
  `\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.`,
3965
3965
  _config
3966
3966
  );
3967
3967
  await runCommitLint(_config, options);
3968
- chunkX6SBCQZO_cjs.writeSuccess(
3968
+ chunkF65GQVIX_cjs.writeSuccess(
3969
3969
  "Linting the commit messages completed successfully!\n",
3970
3970
  _config
3971
3971
  );
3972
3972
  } catch (error) {
3973
- chunkX6SBCQZO_cjs.writeFatal(
3973
+ chunkF65GQVIX_cjs.writeFatal(
3974
3974
  `A fatal error occurred while linting the commit messages:
3975
3975
 
3976
3976
  ${error.message}`,
@@ -3982,18 +3982,18 @@ ${error.message}`,
3982
3982
 
3983
3983
  // bin/git.ts
3984
3984
  void (async () => {
3985
- const config5 = await chunkX6SBCQZO_cjs.getConfig();
3985
+ const config5 = await chunkF65GQVIX_cjs.getConfig();
3986
3986
  try {
3987
- chunkX6SBCQZO_cjs.handleProcess(config5);
3987
+ chunkF65GQVIX_cjs.handleProcess(config5);
3988
3988
  const program = createProgram(config5);
3989
3989
  await program.parseAsync(process.argv);
3990
- chunkX6SBCQZO_cjs.writeSuccess(
3990
+ chunkF65GQVIX_cjs.writeSuccess(
3991
3991
  `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
3992
3992
  config5
3993
3993
  );
3994
- chunkX6SBCQZO_cjs.exitWithSuccess(config5);
3994
+ chunkF65GQVIX_cjs.exitWithSuccess(config5);
3995
3995
  } catch (error) {
3996
- chunkX6SBCQZO_cjs.exitWithError(config5);
3996
+ chunkF65GQVIX_cjs.exitWithError(config5);
3997
3997
  process.exit(1);
3998
3998
  }
3999
3999
  })();
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-WL4UK5RI.js';
4
+ import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, isVerbose, writeWarning, defu, writeTrace, STORM_DEFAULT_RELEASE_BANNER } from './chunk-WB7NYAEQ.js';
5
5
  import TOML from '@ltd/j-toml';
6
6
  import { Command } from 'commander';
7
7
  import { select, confirm, input } from '@inquirer/prompts';
@@ -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 chunkX6SBCQZO_cjs = require('./chunk-X6SBCQZO.cjs');
6
+ var chunkF65GQVIX_cjs = require('./chunk-F65GQVIX.cjs');
7
7
 
8
8
  // bin/post-checkout.ts
9
9
  void (async () => {
10
- const config = await chunkX6SBCQZO_cjs.getConfig();
10
+ const config = await chunkF65GQVIX_cjs.getConfig();
11
11
  try {
12
- chunkX6SBCQZO_cjs.handleProcess(config);
13
- chunkX6SBCQZO_cjs.writeInfo("Running post-checkout hook...", config);
12
+ chunkF65GQVIX_cjs.handleProcess(config);
13
+ chunkF65GQVIX_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
- chunkX6SBCQZO_cjs.writeError(
18
+ chunkF65GQVIX_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
- chunkX6SBCQZO_cjs.exitWithError(config);
23
+ chunkF65GQVIX_cjs.exitWithError(config);
24
24
  }
25
25
  chunkFH5OSXAJ_cjs.run(config, "git lfs post-checkout");
26
- chunkX6SBCQZO_cjs.exitWithSuccess(config);
26
+ chunkF65GQVIX_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunkX6SBCQZO_cjs.writeFatal(
28
+ chunkF65GQVIX_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunkX6SBCQZO_cjs.exitWithError(config);
32
+ chunkF65GQVIX_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-WL4UK5RI.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-WB7NYAEQ.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 chunkX6SBCQZO_cjs = require('./chunk-X6SBCQZO.cjs');
6
+ var chunkF65GQVIX_cjs = require('./chunk-F65GQVIX.cjs');
7
7
 
8
8
  // bin/post-commit.ts
9
9
  void (async () => {
10
- const config = await chunkX6SBCQZO_cjs.getConfig();
10
+ const config = await chunkF65GQVIX_cjs.getConfig();
11
11
  try {
12
- chunkX6SBCQZO_cjs.handleProcess(config);
13
- chunkX6SBCQZO_cjs.writeInfo("Running post-commit hook...", config);
12
+ chunkF65GQVIX_cjs.handleProcess(config);
13
+ chunkF65GQVIX_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
- chunkX6SBCQZO_cjs.writeError(
18
+ chunkF65GQVIX_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
- chunkX6SBCQZO_cjs.exitWithError(config);
23
+ chunkF65GQVIX_cjs.exitWithError(config);
24
24
  }
25
25
  chunkFH5OSXAJ_cjs.run(config, "git lfs post-commit");
26
- chunkX6SBCQZO_cjs.exitWithSuccess(config);
26
+ chunkF65GQVIX_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunkX6SBCQZO_cjs.writeFatal(
28
+ chunkF65GQVIX_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunkX6SBCQZO_cjs.exitWithError(config);
32
+ chunkF65GQVIX_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-WL4UK5RI.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-WB7NYAEQ.js';
5
5
 
6
6
  // bin/post-commit.ts
7
7
  void (async () => {