@storm-software/git-tools 2.122.4 → 2.122.6

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/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-2.122.2-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-2.122.4-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -1,6 +1,6 @@
1
1
  import chalk from 'chalk';
2
- import { loadConfig } from 'c12';
3
2
  import { existsSync } from 'node:fs';
3
+ import { loadConfig } from 'c12';
4
4
  import { join } from 'node:path';
5
5
  import { readFile } from 'node:fs/promises';
6
6
 
@@ -2885,6 +2885,7 @@ var rootFiles = [
2885
2885
  var rootDirectories = [
2886
2886
  ".storm-workspace",
2887
2887
  ".nx",
2888
+ ".git",
2888
2889
  ".github",
2889
2890
  ".vscode",
2890
2891
  ".verdaccio"
@@ -3687,6 +3688,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
3687
3688
  configFile,
3688
3689
  defaultConfig
3689
3690
  );
3691
+ if (!configInput.variant) {
3692
+ configInput.variant = existsSync(joinPaths(_workspaceRoot, "nx.json")) || existsSync(joinPaths(_workspaceRoot, ".nx")) || existsSync(joinPaths(_workspaceRoot, "lerna.json")) || existsSync(joinPaths(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
3693
+ }
3690
3694
  try {
3691
3695
  result = applyDefaultConfig(
3692
3696
  await workspaceConfigSchema.parseAsync(configInput)
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chalk = require('chalk');
4
- var c12 = require('c12');
5
4
  var fs = require('fs');
5
+ var c12 = require('c12');
6
6
  var path = require('path');
7
7
  var promises = require('fs/promises');
8
8
 
@@ -2891,6 +2891,7 @@ var rootFiles = [
2891
2891
  var rootDirectories = [
2892
2892
  ".storm-workspace",
2893
2893
  ".nx",
2894
+ ".git",
2894
2895
  ".github",
2895
2896
  ".vscode",
2896
2897
  ".verdaccio"
@@ -3693,6 +3694,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
3693
3694
  configFile,
3694
3695
  defaultConfig
3695
3696
  );
3697
+ if (!configInput.variant) {
3698
+ configInput.variant = fs.existsSync(joinPaths(_workspaceRoot, "nx.json")) || fs.existsSync(joinPaths(_workspaceRoot, ".nx")) || fs.existsSync(joinPaths(_workspaceRoot, "lerna.json")) || fs.existsSync(joinPaths(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
3699
+ }
3696
3700
  try {
3697
3701
  result = applyDefaultConfig(
3698
3702
  await workspaceConfigSchema.parseAsync(configInput)
package/bin/git.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
5
- var chunk5SPAQH6A_cjs = require('./chunk-5SPAQH6A.cjs');
5
+ var chunkU33ERNJG_cjs = require('./chunk-U33ERNJG.cjs');
6
6
  var TOML = require('@ltd/j-toml');
7
7
  var commander = require('commander');
8
8
  var prompts = require('@inquirer/prompts');
@@ -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 chunk5SPAQH6A_cjs.getWorkspaceConfig();
405
+ const workspaceConfig = await chunkU33ERNJG_cjs.getWorkspaceConfig();
406
406
  if (variant === "minimal") {
407
- return chunk5SPAQH6A_cjs.defu(
407
+ return chunkU33ERNJG_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 chunk5SPAQH6A_cjs.defu(
421
+ return chunkU33ERNJG_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
- chunk5SPAQH6A_cjs.writeInfo(
973
+ chunkU33ERNJG_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 = chunk5SPAQH6A_cjs.joinPaths(
981
+ const commitFile = chunkU33ERNJG_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
- chunk5SPAQH6A_cjs.writeWarning(
998
+ chunkU33ERNJG_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
- chunk5SPAQH6A_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
1004
+ chunkU33ERNJG_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
- chunk5SPAQH6A_cjs.writeWarning(
1008
+ chunkU33ERNJG_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
- chunk5SPAQH6A_cjs.writeWarning(
1016
+ chunkU33ERNJG_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
- chunk5SPAQH6A_cjs.writeSuccess(
1026
+ chunkU33ERNJG_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 = chunk5SPAQH6A_cjs.joinPaths(project.root, "package.json");
1238
+ const packageJsonPath = chunkU33ERNJG_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 chunk5SPAQH6A_cjs.getWorkspaceConfig();
1312
+ const workspaceConfig = await chunkU33ERNJG_cjs.getWorkspaceConfig();
1313
1313
  const state = await createState(workspaceConfig);
1314
1314
  if (dryRun) {
1315
- chunk5SPAQH6A_cjs.writeInfo("Running in dry mode.", workspaceConfig);
1315
+ chunkU33ERNJG_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 = chunk5SPAQH6A_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
1325
+ const commitMsgFile = chunkU33ERNJG_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
- chunk5SPAQH6A_cjs.writeDebug(
1338
+ chunkU33ERNJG_cjs.writeDebug(
1339
1339
  `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
1340
1340
  workspaceConfig
1341
1341
  );
1342
- chunk5SPAQH6A_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
1342
+ chunkU33ERNJG_cjs.writeDebug(`Message [dry-run]: ${message}`, workspaceConfig);
1343
1343
  } else {
1344
1344
  await fs__default.default.writeFile(commitMsgFile, message);
1345
1345
  chunkCIJVSMK2_cjs.run(workspaceConfig, command);
@@ -2371,7 +2371,7 @@ async function generateChangelogContent(releaseVersion, filepath, newContent, cu
2371
2371
  const header = await prettier.format(
2372
2372
  `![${(typeof workspaceConfig?.release.banner === "string" ? workspaceConfig.organization ? titleCase(
2373
2373
  typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization.name
2374
- ) : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunk5SPAQH6A_cjs.STORM_DEFAULT_RELEASE_BANNER})
2374
+ ) : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkU33ERNJG_cjs.STORM_DEFAULT_RELEASE_BANNER})
2375
2375
 
2376
2376
  # Changelog ${project || workspaceConfig?.name ? "for" : ""}${workspaceConfig?.name ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${workspaceConfig?.name ? " -" : ""} ${titleCase(project)}` : ""}
2377
2377
 
@@ -2610,7 +2610,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
2610
2610
  };
2611
2611
  }
2612
2612
  async render() {
2613
- this.workspaceConfig = await chunk5SPAQH6A_cjs.getWorkspaceConfig();
2613
+ this.workspaceConfig = await chunkU33ERNJG_cjs.getWorkspaceConfig();
2614
2614
  return await super.render();
2615
2615
  }
2616
2616
  preprocessChanges() {
@@ -2921,7 +2921,7 @@ async function createOrUpdateGithubReleaseInternal(githubRequestConfig, release,
2921
2921
  if (!shouldContinueInGitHub) {
2922
2922
  return;
2923
2923
  }
2924
- const open = chunk5SPAQH6A_cjs.__require("open");
2924
+ const open = chunkU33ERNJG_cjs.__require("open");
2925
2925
  await open(result.url).then(() => {
2926
2926
  console.info(
2927
2927
  `
@@ -3147,7 +3147,7 @@ async function isUserAnOrganizationMember(userId, config5, remoteName = "origin"
3147
3147
  // src/release/changelog.ts
3148
3148
  function createAPI(overrideReleaseConfig) {
3149
3149
  return async function releaseChangelog(args) {
3150
- const workspaceConfig = await chunk5SPAQH6A_cjs.getWorkspaceConfig();
3150
+ const workspaceConfig = await chunkU33ERNJG_cjs.getWorkspaceConfig();
3151
3151
  const projectGraph$1 = await projectGraph.createProjectGraphAsync({ exitOnError: true });
3152
3152
  const nxJson$1 = nxJson.readNxJson();
3153
3153
  const userProvidedReleaseConfig = deepMergeJson.deepMergeJson(
@@ -3808,7 +3808,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
3808
3808
  });
3809
3809
  latestCommit = await git.getCommitHash("HEAD");
3810
3810
  } else if ((args.stageChanges ?? nxReleaseConfig.changelog?.git.stageChanges) && changes.length) {
3811
- chunk5SPAQH6A_cjs.writeDebug(`Staging changed files with git`);
3811
+ chunkU33ERNJG_cjs.writeDebug(`Staging changed files with git`);
3812
3812
  await git.gitAdd({
3813
3813
  changedFiles,
3814
3814
  deletedFiles,
@@ -3817,7 +3817,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
3817
3817
  });
3818
3818
  }
3819
3819
  if (args.gitTag ?? nxReleaseConfig.changelog?.git.tag) {
3820
- chunk5SPAQH6A_cjs.writeDebug(`Tagging commit with git`);
3820
+ chunkU33ERNJG_cjs.writeDebug(`Tagging commit with git`);
3821
3821
  for (const tag of gitTagValues) {
3822
3822
  await gitTag({
3823
3823
  tag,
@@ -3829,7 +3829,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
3829
3829
  }
3830
3830
  }
3831
3831
  if (args.gitPush ?? nxReleaseConfig.changelog?.git.push) {
3832
- chunk5SPAQH6A_cjs.writeDebug(`Pushing to git remote "${args.gitRemote}"`);
3832
+ chunkU33ERNJG_cjs.writeDebug(`Pushing to git remote "${args.gitRemote}"`);
3833
3833
  await git.gitPush({
3834
3834
  gitRemote: args.gitRemote,
3835
3835
  dryRun: args.dryRun,
@@ -3848,7 +3848,7 @@ async function generateChangelogForWorkspace({
3848
3848
  workspaceChangelogVersion,
3849
3849
  changes
3850
3850
  }) {
3851
- const workspaceConfig = await chunk5SPAQH6A_cjs.getWorkspaceConfig();
3851
+ const workspaceConfig = await chunkU33ERNJG_cjs.getWorkspaceConfig();
3852
3852
  if (!workspaceConfig) {
3853
3853
  throw new Error(
3854
3854
  `Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
@@ -3962,7 +3962,7 @@ async function generateChangelogForProjects({
3962
3962
  nxReleaseConfig,
3963
3963
  projectToAdditionalDependencyBumps
3964
3964
  }) {
3965
- const workspaceConfig = await chunk5SPAQH6A_cjs.getWorkspaceConfig();
3965
+ const workspaceConfig = await chunkU33ERNJG_cjs.getWorkspaceConfig();
3966
3966
  if (!workspaceConfig) {
3967
3967
  throw new Error(
3968
3968
  `Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
@@ -4267,7 +4267,7 @@ var runRelease = async (config5, options) => {
4267
4267
  throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
4268
4268
  }
4269
4269
  if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config5)) {
4270
- chunk5SPAQH6A_cjs.writeFatal(
4270
+ chunkU33ERNJG_cjs.writeFatal(
4271
4271
  "You must be a member of the Storm Software organization to run the release process.",
4272
4272
  config5
4273
4273
  );
@@ -4284,12 +4284,12 @@ var runRelease = async (config5, options) => {
4284
4284
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
4285
4285
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
4286
4286
  process.env.NPM_CONFIG_PROVENANCE = "true";
4287
- chunk5SPAQH6A_cjs.writeDebug("Creating workspace Project Graph data...", config5);
4287
+ chunkU33ERNJG_cjs.writeDebug("Creating workspace Project Graph data...", config5);
4288
4288
  const nxJson = nxJson_js.readNxJson();
4289
- chunk5SPAQH6A_cjs.writeDebug("Reading in the workspaces release configuration", config5);
4289
+ chunkU33ERNJG_cjs.writeDebug("Reading in the workspaces release configuration", config5);
4290
4290
  const to = options.head || process.env.NX_HEAD;
4291
4291
  const from = options.base || process.env.NX_BASE;
4292
- chunk5SPAQH6A_cjs.writeDebug(
4292
+ chunkU33ERNJG_cjs.writeDebug(
4293
4293
  `Using the following Git SHAs to determine the release content:
4294
4294
  - From: ${from}
4295
4295
  - To: ${to}
@@ -4300,28 +4300,28 @@ var runRelease = async (config5, options) => {
4300
4300
  nxJson.release.groups = Object.keys(nxJson.release.groups).reduce(
4301
4301
  (ret, groupName) => {
4302
4302
  const groupConfig = nxJson.release?.groups?.[groupName];
4303
- ret[groupName] = chunk5SPAQH6A_cjs.defu(groupConfig, DEFAULT_RELEASE_GROUP_CONFIG);
4303
+ ret[groupName] = chunkU33ERNJG_cjs.defu(groupConfig, DEFAULT_RELEASE_GROUP_CONFIG);
4304
4304
  return ret;
4305
4305
  },
4306
4306
  {}
4307
4307
  );
4308
4308
  }
4309
- const nxReleaseConfig = chunk5SPAQH6A_cjs.defu(
4309
+ const nxReleaseConfig = chunkU33ERNJG_cjs.defu(
4310
4310
  nxJson.release,
4311
4311
  DEFAULT_RELEASE_CONFIG
4312
4312
  );
4313
- chunk5SPAQH6A_cjs.writeInfo(
4313
+ chunkU33ERNJG_cjs.writeInfo(
4314
4314
  "Using the following `nx.json` release configuration values",
4315
4315
  config5
4316
4316
  );
4317
- chunk5SPAQH6A_cjs.writeInfo(nxReleaseConfig, config5);
4317
+ chunkU33ERNJG_cjs.writeInfo(nxReleaseConfig, config5);
4318
4318
  const releaseVersion = version_js.createAPI(nxReleaseConfig);
4319
4319
  const releaseChangelog = createAPI(nxReleaseConfig);
4320
4320
  const releasePublish = publish_js.createAPI(nxReleaseConfig);
4321
- chunk5SPAQH6A_cjs.writeDebug("Determining the current release versions...", config5);
4321
+ chunkU33ERNJG_cjs.writeDebug("Determining the current release versions...", config5);
4322
4322
  const { workspaceVersion, projectsVersionData } = await releaseVersion({
4323
4323
  dryRun: false,
4324
- verbose: chunk5SPAQH6A_cjs.isVerbose(config5.logLevel),
4324
+ verbose: chunkU33ERNJG_cjs.isVerbose(config5.logLevel),
4325
4325
  preid: config5.preid,
4326
4326
  deleteVersionPlans: false,
4327
4327
  stageChanges: true,
@@ -4332,15 +4332,15 @@ var runRelease = async (config5, options) => {
4332
4332
  version: nxReleaseConfig?.projectsRelationship !== "fixed" ? void 0 : workspaceVersion,
4333
4333
  versionData: projectsVersionData,
4334
4334
  dryRun: false,
4335
- verbose: chunk5SPAQH6A_cjs.isVerbose(config5.logLevel),
4335
+ verbose: chunkU33ERNJG_cjs.isVerbose(config5.logLevel),
4336
4336
  to,
4337
4337
  from,
4338
4338
  gitCommit: true,
4339
4339
  gitCommitMessage: "release(monorepo): Publish workspace release updates"
4340
4340
  });
4341
- chunk5SPAQH6A_cjs.writeDebug("Tagging commit with git", config5);
4341
+ chunkU33ERNJG_cjs.writeDebug("Tagging commit with git", config5);
4342
4342
  if (options.skipPublish) {
4343
- chunk5SPAQH6A_cjs.writeWarning(
4343
+ chunkU33ERNJG_cjs.writeWarning(
4344
4344
  "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
4345
4345
  config5
4346
4346
  );
@@ -4349,7 +4349,7 @@ var runRelease = async (config5, options) => {
4349
4349
  (key) => projectsVersionData[key]?.newVersion
4350
4350
  );
4351
4351
  if (changedProjects.length > 0) {
4352
- chunk5SPAQH6A_cjs.writeInfo(
4352
+ chunkU33ERNJG_cjs.writeInfo(
4353
4353
  `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
4354
4354
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
4355
4355
  `,
@@ -4359,7 +4359,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
4359
4359
  const result = await releasePublish({
4360
4360
  ...options,
4361
4361
  dryRun: !!options.dryRun,
4362
- verbose: chunk5SPAQH6A_cjs.isVerbose(config5.logLevel)
4362
+ verbose: chunkU33ERNJG_cjs.isVerbose(config5.logLevel)
4363
4363
  });
4364
4364
  const failedProjects = Object.keys(result).filter(
4365
4365
  (key) => result[key]?.code && result[key]?.code > 0
@@ -4374,10 +4374,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
4374
4374
  );
4375
4375
  }
4376
4376
  } else {
4377
- chunk5SPAQH6A_cjs.writeWarning("Skipped publishing packages.", config5);
4377
+ chunkU33ERNJG_cjs.writeWarning("Skipped publishing packages.", config5);
4378
4378
  }
4379
4379
  }
4380
- chunk5SPAQH6A_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
4380
+ chunkU33ERNJG_cjs.writeSuccess("Completed the Storm workspace release process!", config5);
4381
4381
  };
4382
4382
  async function updatePackageManifests(projectsVersionData, config5) {
4383
4383
  let projectGraph;
@@ -4392,7 +4392,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
4392
4392
  Object.keys(projectsVersionData).map(async (node) => {
4393
4393
  const projectNode = projectGraph.nodes[node];
4394
4394
  if (!projectNode?.data.root) {
4395
- chunk5SPAQH6A_cjs.writeWarning(
4395
+ chunkU33ERNJG_cjs.writeWarning(
4396
4396
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
4397
4397
  config5
4398
4398
  );
@@ -4400,17 +4400,17 @@ async function updatePackageManifests(projectsVersionData, config5) {
4400
4400
  }
4401
4401
  const versionData = projectsVersionData[node];
4402
4402
  if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
4403
- chunk5SPAQH6A_cjs.writeTrace(
4403
+ chunkU33ERNJG_cjs.writeTrace(
4404
4404
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
4405
4405
  `,
4406
4406
  config5
4407
4407
  );
4408
- const projectRoot = chunk5SPAQH6A_cjs.joinPaths(
4408
+ const projectRoot = chunkU33ERNJG_cjs.joinPaths(
4409
4409
  config5.workspaceRoot,
4410
4410
  projectNode.data.root
4411
4411
  );
4412
- const packageJsonPath = chunk5SPAQH6A_cjs.joinPaths(projectRoot, "package.json");
4413
- const cargoTomlPath = chunk5SPAQH6A_cjs.joinPaths(projectRoot, "Cargo.toml");
4412
+ const packageJsonPath = chunkU33ERNJG_cjs.joinPaths(projectRoot, "package.json");
4413
+ const cargoTomlPath = chunkU33ERNJG_cjs.joinPaths(projectRoot, "Cargo.toml");
4414
4414
  if (fs$1.existsSync(packageJsonPath)) {
4415
4415
  const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
4416
4416
  const packageJson = JSON.parse(packageJsonContent);
@@ -4428,7 +4428,7 @@ async function updatePackageManifests(projectsVersionData, config5) {
4428
4428
  })
4429
4429
  );
4430
4430
  } else {
4431
- chunk5SPAQH6A_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
4431
+ chunkU33ERNJG_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config5);
4432
4432
  }
4433
4433
  }
4434
4434
 
@@ -4436,8 +4436,8 @@ async function updatePackageManifests(projectsVersionData, config5) {
4436
4436
  var _config = {};
4437
4437
  function createProgram(config5) {
4438
4438
  _config = config5;
4439
- chunk5SPAQH6A_cjs.writeInfo("\u26A1 Running Storm Git Tools", config5);
4440
- const root = chunk5SPAQH6A_cjs.findWorkspaceRootSafe(process.cwd());
4439
+ chunkU33ERNJG_cjs.writeInfo("\u26A1 Running Storm Git Tools", config5);
4440
+ const root = chunkU33ERNJG_cjs.findWorkspaceRootSafe(process.cwd());
4441
4441
  process.env.STORM_WORKSPACE_ROOT ??= root;
4442
4442
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
4443
4443
  if (root) {
@@ -4506,12 +4506,12 @@ async function commitAction({
4506
4506
  dryRun = false
4507
4507
  }) {
4508
4508
  try {
4509
- chunk5SPAQH6A_cjs.writeInfo(
4509
+ chunkU33ERNJG_cjs.writeInfo(
4510
4510
  `\u26A1 Preparing to commit your changes. Please provide the requested details below...`,
4511
4511
  _config
4512
4512
  );
4513
4513
  await runCommit(config5, dryRun);
4514
- chunk5SPAQH6A_cjs.writeSuccess(
4514
+ chunkU33ERNJG_cjs.writeSuccess(
4515
4515
  `\u{1F389} Storm Commit processing completed successfully!
4516
4516
 
4517
4517
  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}
@@ -4519,7 +4519,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
4519
4519
  _config
4520
4520
  );
4521
4521
  } catch (error) {
4522
- chunk5SPAQH6A_cjs.writeFatal(
4522
+ chunkU33ERNJG_cjs.writeFatal(
4523
4523
  `A fatal error occurred while running commit action:
4524
4524
 
4525
4525
  ${error.message}${error.stack ? `
@@ -4534,14 +4534,14 @@ Please fix any errors and try committing again.`,
4534
4534
  }
4535
4535
  async function readmeAction(options) {
4536
4536
  try {
4537
- chunk5SPAQH6A_cjs.writeInfo("\u26A1 Formatting the workspace's README.md files", _config);
4537
+ chunkU33ERNJG_cjs.writeInfo("\u26A1 Formatting the workspace's README.md files", _config);
4538
4538
  await runReadme(options);
4539
- chunk5SPAQH6A_cjs.writeSuccess(
4539
+ chunkU33ERNJG_cjs.writeSuccess(
4540
4540
  "Formatting of the workspace's README.md files is complete\n",
4541
4541
  _config
4542
4542
  );
4543
4543
  } catch (error) {
4544
- chunk5SPAQH6A_cjs.writeFatal(
4544
+ chunkU33ERNJG_cjs.writeFatal(
4545
4545
  `A fatal error occurred while running README format action:
4546
4546
 
4547
4547
  ${error.message}`
@@ -4556,7 +4556,7 @@ async function releaseAction({
4556
4556
  dryRun
4557
4557
  }) {
4558
4558
  try {
4559
- chunk5SPAQH6A_cjs.writeInfo(
4559
+ chunkU33ERNJG_cjs.writeInfo(
4560
4560
  "\u26A1 Running the Storm Release and Publish process on the workspace",
4561
4561
  _config
4562
4562
  );
@@ -4566,9 +4566,9 @@ async function releaseAction({
4566
4566
  base,
4567
4567
  head
4568
4568
  });
4569
- chunk5SPAQH6A_cjs.writeSuccess("Release completed successfully!\n", _config);
4569
+ chunkU33ERNJG_cjs.writeSuccess("Release completed successfully!\n", _config);
4570
4570
  } catch (error) {
4571
- chunk5SPAQH6A_cjs.writeFatal(
4571
+ chunkU33ERNJG_cjs.writeFatal(
4572
4572
  `A fatal error occurred while running release action:
4573
4573
 
4574
4574
  ${error.message} ${error.stack ? `
@@ -4582,17 +4582,17 @@ Stacktrace: ${error.stack}` : ""}`,
4582
4582
  }
4583
4583
  async function commitLintAction(options) {
4584
4584
  try {
4585
- chunk5SPAQH6A_cjs.writeInfo(
4585
+ chunkU33ERNJG_cjs.writeInfo(
4586
4586
  `\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.`,
4587
4587
  _config
4588
4588
  );
4589
4589
  await runCommitLint(_config, options);
4590
- chunk5SPAQH6A_cjs.writeSuccess(
4590
+ chunkU33ERNJG_cjs.writeSuccess(
4591
4591
  "Linting the commit messages completed successfully!\n",
4592
4592
  _config
4593
4593
  );
4594
4594
  } catch (error) {
4595
- chunk5SPAQH6A_cjs.writeFatal(
4595
+ chunkU33ERNJG_cjs.writeFatal(
4596
4596
  `A fatal error occurred while linting the commit messages:
4597
4597
 
4598
4598
  ${error.message}`,
@@ -4604,18 +4604,18 @@ ${error.message}`,
4604
4604
 
4605
4605
  // bin/git.ts
4606
4606
  void (async () => {
4607
- const config5 = await chunk5SPAQH6A_cjs.getConfig();
4607
+ const config5 = await chunkU33ERNJG_cjs.getConfig();
4608
4608
  try {
4609
- chunk5SPAQH6A_cjs.handleProcess(config5);
4609
+ chunkU33ERNJG_cjs.handleProcess(config5);
4610
4610
  const program = createProgram(config5);
4611
4611
  await program.parseAsync(process.argv);
4612
- chunk5SPAQH6A_cjs.writeSuccess(
4612
+ chunkU33ERNJG_cjs.writeSuccess(
4613
4613
  `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
4614
4614
  config5
4615
4615
  );
4616
- chunk5SPAQH6A_cjs.exitWithSuccess(config5);
4616
+ chunkU33ERNJG_cjs.exitWithSuccess(config5);
4617
4617
  } catch (error) {
4618
- chunk5SPAQH6A_cjs.exitWithError(config5);
4618
+ chunkU33ERNJG_cjs.exitWithError(config5);
4619
4619
  process.exit(1);
4620
4620
  }
4621
4621
  })();
package/bin/git.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { run } from './chunk-54Q5U5WW.js';
3
- import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, defu, isVerbose, writeWarning, writeTrace, STORM_DEFAULT_RELEASE_BANNER, __require } from './chunk-LBURTJLB.js';
3
+ import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, getWorkspaceConfig, joinPaths, writeDebug, defu, isVerbose, writeWarning, writeTrace, STORM_DEFAULT_RELEASE_BANNER, __require } from './chunk-CPA5SGWF.js';
4
4
  import TOML from '@ltd/j-toml';
5
5
  import { Command, Option } from 'commander';
6
6
  import { select, confirm, input } from '@inquirer/prompts';
@@ -3,33 +3,33 @@
3
3
 
4
4
  var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
5
  var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
6
- var chunk5SPAQH6A_cjs = require('./chunk-5SPAQH6A.cjs');
6
+ var chunkU33ERNJG_cjs = require('./chunk-U33ERNJG.cjs');
7
7
 
8
8
  // bin/post-checkout.ts
9
9
  void (async () => {
10
- const config = await chunk5SPAQH6A_cjs.getConfig();
10
+ const config = await chunkU33ERNJG_cjs.getConfig();
11
11
  try {
12
- chunk5SPAQH6A_cjs.handleProcess(config);
13
- chunk5SPAQH6A_cjs.writeInfo("Running post-checkout hook...", config);
12
+ chunkU33ERNJG_cjs.handleProcess(config);
13
+ chunkU33ERNJG_cjs.writeInfo("Running post-checkout hook...", config);
14
14
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
15
15
  try {
16
16
  chunkCIJVSMK2_cjs.run(config, "git-lfs version");
17
17
  } catch (error) {
18
- chunk5SPAQH6A_cjs.writeError(
18
+ chunkU33ERNJG_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
- chunk5SPAQH6A_cjs.exitWithError(config);
23
+ chunkU33ERNJG_cjs.exitWithError(config);
24
24
  }
25
25
  chunkCIJVSMK2_cjs.run(config, "git lfs post-checkout");
26
- chunk5SPAQH6A_cjs.exitWithSuccess(config);
26
+ chunkU33ERNJG_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunk5SPAQH6A_cjs.writeFatal(
28
+ chunkU33ERNJG_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunk5SPAQH6A_cjs.exitWithError(config);
32
+ chunkU33ERNJG_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-AMSZ7DVW.js';
3
3
  import { run } from './chunk-54Q5U5WW.js';
4
- import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-LBURTJLB.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-CPA5SGWF.js';
5
5
 
6
6
  // bin/post-checkout.ts
7
7
  void (async () => {
@@ -3,33 +3,33 @@
3
3
 
4
4
  var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
5
  var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
6
- var chunk5SPAQH6A_cjs = require('./chunk-5SPAQH6A.cjs');
6
+ var chunkU33ERNJG_cjs = require('./chunk-U33ERNJG.cjs');
7
7
 
8
8
  // bin/post-commit.ts
9
9
  void (async () => {
10
- const config = await chunk5SPAQH6A_cjs.getConfig();
10
+ const config = await chunkU33ERNJG_cjs.getConfig();
11
11
  try {
12
- chunk5SPAQH6A_cjs.handleProcess(config);
13
- chunk5SPAQH6A_cjs.writeInfo("Running post-commit hook...", config);
12
+ chunkU33ERNJG_cjs.handleProcess(config);
13
+ chunkU33ERNJG_cjs.writeInfo("Running post-commit hook...", config);
14
14
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
15
15
  try {
16
16
  chunkCIJVSMK2_cjs.run(config, "git-lfs version");
17
17
  } catch (error) {
18
- chunk5SPAQH6A_cjs.writeError(
18
+ chunkU33ERNJG_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
- chunk5SPAQH6A_cjs.exitWithError(config);
23
+ chunkU33ERNJG_cjs.exitWithError(config);
24
24
  }
25
25
  chunkCIJVSMK2_cjs.run(config, "git lfs post-commit");
26
- chunk5SPAQH6A_cjs.exitWithSuccess(config);
26
+ chunkU33ERNJG_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunk5SPAQH6A_cjs.writeFatal(
28
+ chunkU33ERNJG_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunk5SPAQH6A_cjs.exitWithError(config);
32
+ chunkU33ERNJG_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-AMSZ7DVW.js';
3
3
  import { run } from './chunk-54Q5U5WW.js';
4
- import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-LBURTJLB.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-CPA5SGWF.js';
5
5
 
6
6
  // bin/post-commit.ts
7
7
  void (async () => {
@@ -3,33 +3,33 @@
3
3
 
4
4
  var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
5
  var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
6
- var chunk5SPAQH6A_cjs = require('./chunk-5SPAQH6A.cjs');
6
+ var chunkU33ERNJG_cjs = require('./chunk-U33ERNJG.cjs');
7
7
 
8
8
  // bin/post-merge.ts
9
9
  void (async () => {
10
- const config = await chunk5SPAQH6A_cjs.getConfig();
10
+ const config = await chunkU33ERNJG_cjs.getConfig();
11
11
  try {
12
- chunk5SPAQH6A_cjs.handleProcess(config);
13
- chunk5SPAQH6A_cjs.writeInfo("Running post-merge hook...", config);
12
+ chunkU33ERNJG_cjs.handleProcess(config);
13
+ chunkU33ERNJG_cjs.writeInfo("Running post-merge hook...", config);
14
14
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
15
15
  try {
16
16
  chunkCIJVSMK2_cjs.run(config, "git-lfs version");
17
17
  } catch (error) {
18
- chunk5SPAQH6A_cjs.writeError(
18
+ chunkU33ERNJG_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-merge.
20
20
  Error: ${error?.message}`,
21
21
  config
22
22
  );
23
- chunk5SPAQH6A_cjs.exitWithError(config);
23
+ chunkU33ERNJG_cjs.exitWithError(config);
24
24
  }
25
25
  chunkCIJVSMK2_cjs.run(config, "git lfs post-merge");
26
- chunk5SPAQH6A_cjs.exitWithSuccess(config);
26
+ chunkU33ERNJG_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunk5SPAQH6A_cjs.writeFatal(
28
+ chunkU33ERNJG_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunk5SPAQH6A_cjs.exitWithError(config);
32
+ chunkU33ERNJG_cjs.exitWithError(config);
33
33
  process.exit(1);
34
34
  }
35
35
  })();
package/bin/post-merge.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
3
3
  import { run } from './chunk-54Q5U5WW.js';
4
- import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-LBURTJLB.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-CPA5SGWF.js';
5
5
 
6
6
  // bin/post-merge.ts
7
7
  void (async () => {
@@ -2,29 +2,29 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
- var chunk5SPAQH6A_cjs = require('./chunk-5SPAQH6A.cjs');
5
+ var chunkU33ERNJG_cjs = require('./chunk-U33ERNJG.cjs');
6
6
 
7
7
  // bin/pre-commit.ts
8
8
  void (async () => {
9
- const config = await chunk5SPAQH6A_cjs.getConfig();
9
+ const config = await chunkU33ERNJG_cjs.getConfig();
10
10
  try {
11
- chunk5SPAQH6A_cjs.handleProcess(config);
12
- chunk5SPAQH6A_cjs.writeInfo("Running pre-commit hook...", config);
11
+ chunkU33ERNJG_cjs.handleProcess(config);
12
+ chunkU33ERNJG_cjs.writeInfo("Running pre-commit hook...", config);
13
13
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv.slice(1));
14
14
  if (chunkSWXHQXUT_cjs.isPackageVersionChanged(process.argv?.slice(1))) {
15
- chunk5SPAQH6A_cjs.writeError(
15
+ chunkU33ERNJG_cjs.writeError(
16
16
  "Please regenerate the package lock file before committing...",
17
17
  config
18
18
  );
19
- chunk5SPAQH6A_cjs.exitWithError(config);
19
+ chunkU33ERNJG_cjs.exitWithError(config);
20
20
  }
21
- chunk5SPAQH6A_cjs.exitWithSuccess(config);
21
+ chunkU33ERNJG_cjs.exitWithSuccess(config);
22
22
  } catch (error) {
23
- chunk5SPAQH6A_cjs.writeFatal(
23
+ chunkU33ERNJG_cjs.writeFatal(
24
24
  `A fatal error occurred while running the program: ${error.message}`,
25
25
  config
26
26
  );
27
- chunk5SPAQH6A_cjs.exitWithError(config);
27
+ chunkU33ERNJG_cjs.exitWithError(config);
28
28
  process.exit(1);
29
29
  }
30
30
  })();
package/bin/pre-commit.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { checkPackageVersion, isPackageVersionChanged } from './chunk-AMSZ7DVW.js';
3
- import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-LBURTJLB.js';
3
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-CPA5SGWF.js';
4
4
 
5
5
  // bin/pre-commit.ts
6
6
  void (async () => {
@@ -2,26 +2,26 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
5
- var chunk5SPAQH6A_cjs = require('./chunk-5SPAQH6A.cjs');
5
+ var chunkU33ERNJG_cjs = require('./chunk-U33ERNJG.cjs');
6
6
 
7
7
  // bin/pre-install.ts
8
8
  void (async () => {
9
- const config = await chunk5SPAQH6A_cjs.getConfig();
9
+ const config = await chunkU33ERNJG_cjs.getConfig();
10
10
  try {
11
- chunk5SPAQH6A_cjs.handleProcess(config);
12
- chunk5SPAQH6A_cjs.writeInfo("Running pre-install hook...", config);
11
+ chunkU33ERNJG_cjs.handleProcess(config);
12
+ chunkU33ERNJG_cjs.writeInfo("Running pre-install hook...", config);
13
13
  if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
14
- chunk5SPAQH6A_cjs.writeInfo("Skipping pre-install for CI process...", config);
15
- chunk5SPAQH6A_cjs.exitWithSuccess(config);
14
+ chunkU33ERNJG_cjs.writeInfo("Skipping pre-install for CI process...", config);
15
+ chunkU33ERNJG_cjs.exitWithSuccess(config);
16
16
  }
17
17
  chunkCIJVSMK2_cjs.run(config, "npx -y only-allow pnpm");
18
- chunk5SPAQH6A_cjs.exitWithSuccess(config);
18
+ chunkU33ERNJG_cjs.exitWithSuccess(config);
19
19
  } catch (error) {
20
- chunk5SPAQH6A_cjs.writeFatal(
20
+ chunkU33ERNJG_cjs.writeFatal(
21
21
  `A fatal error occurred while running the program: ${error.message}`,
22
22
  config
23
23
  );
24
- chunk5SPAQH6A_cjs.exitWithError(config);
24
+ chunkU33ERNJG_cjs.exitWithError(config);
25
25
  process.exit(1);
26
26
  }
27
27
  })();
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { run } from './chunk-54Q5U5WW.js';
3
- import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-LBURTJLB.js';
3
+ import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-CPA5SGWF.js';
4
4
 
5
5
  // bin/pre-install.ts
6
6
  void (async () => {
package/bin/pre-push.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
5
  var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
6
- var chunk5SPAQH6A_cjs = require('./chunk-5SPAQH6A.cjs');
6
+ var chunkU33ERNJG_cjs = require('./chunk-U33ERNJG.cjs');
7
7
  var fs = require('fs');
8
8
  var promises = require('fs/promises');
9
9
  var path = require('path');
@@ -14,12 +14,12 @@ var fs__default = /*#__PURE__*/_interopDefault(fs);
14
14
  var path__default = /*#__PURE__*/_interopDefault(path);
15
15
 
16
16
  void (async () => {
17
- const config = await chunk5SPAQH6A_cjs.getConfig();
17
+ const config = await chunkU33ERNJG_cjs.getConfig();
18
18
  try {
19
- chunk5SPAQH6A_cjs.handleProcess(config);
20
- chunk5SPAQH6A_cjs.writeInfo("Running pre-push hook...", config);
19
+ chunkU33ERNJG_cjs.handleProcess(config);
20
+ chunkU33ERNJG_cjs.writeInfo("Running pre-push hook...", config);
21
21
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
22
- chunk5SPAQH6A_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
22
+ chunkU33ERNJG_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
23
23
  const errors = [];
24
24
  if (fs__default.default.existsSync(
25
25
  path__default.default.join(config.workspaceRoot ?? "./", "package-lock.json")
@@ -54,32 +54,32 @@ void (async () => {
54
54
  errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
55
55
  }
56
56
  if (errors.length > 0) {
57
- chunk5SPAQH6A_cjs.writeError("\u274C Lock file validation failed", config);
57
+ chunkU33ERNJG_cjs.writeError("\u274C Lock file validation failed", config);
58
58
  for (const error of errors) {
59
59
  console.error(error);
60
60
  }
61
- chunk5SPAQH6A_cjs.exitWithError(config);
61
+ chunkU33ERNJG_cjs.exitWithError(config);
62
62
  }
63
- chunk5SPAQH6A_cjs.writeSuccess("Lock file is valid \u2705", config);
63
+ chunkU33ERNJG_cjs.writeSuccess("Lock file is valid \u2705", config);
64
64
  chunkCIJVSMK2_cjs.run(config, "git lfs pre-push origin");
65
65
  try {
66
66
  chunkCIJVSMK2_cjs.run(config, "git-lfs version");
67
67
  } catch (error) {
68
- chunk5SPAQH6A_cjs.writeError(
68
+ chunkU33ERNJG_cjs.writeError(
69
69
  `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/pre-push.
70
70
  Error: ${error?.message}`,
71
71
  config
72
72
  );
73
- chunk5SPAQH6A_cjs.exitWithError(config);
73
+ chunkU33ERNJG_cjs.exitWithError(config);
74
74
  }
75
75
  chunkCIJVSMK2_cjs.run(config, "git lfs pre-push origin");
76
- chunk5SPAQH6A_cjs.exitWithSuccess(config);
76
+ chunkU33ERNJG_cjs.exitWithSuccess(config);
77
77
  } catch (error) {
78
- chunk5SPAQH6A_cjs.writeFatal(
78
+ chunkU33ERNJG_cjs.writeFatal(
79
79
  `A fatal error occurred while running the program: ${error.message}`,
80
80
  config
81
81
  );
82
- chunk5SPAQH6A_cjs.exitWithError(config);
82
+ chunkU33ERNJG_cjs.exitWithError(config);
83
83
  process.exit(1);
84
84
  }
85
85
  })();
package/bin/pre-push.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
3
3
  import { run } from './chunk-54Q5U5WW.js';
4
- import { getConfig, handleProcess, writeInfo, writeError, exitWithError, writeSuccess, exitWithSuccess, writeFatal } from './chunk-LBURTJLB.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, writeSuccess, exitWithSuccess, writeFatal } from './chunk-CPA5SGWF.js';
5
5
  import fs from 'node:fs';
6
6
  import { readFile } from 'node:fs/promises';
7
7
  import path from 'node:path';
package/bin/prepare.cjs CHANGED
@@ -2,24 +2,24 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkCIJVSMK2_cjs = require('./chunk-CIJVSMK2.cjs');
5
- var chunk5SPAQH6A_cjs = require('./chunk-5SPAQH6A.cjs');
5
+ var chunkU33ERNJG_cjs = require('./chunk-U33ERNJG.cjs');
6
6
 
7
7
  // bin/prepare.ts
8
8
  void (async () => {
9
- const config = await chunk5SPAQH6A_cjs.getConfig();
9
+ const config = await chunkU33ERNJG_cjs.getConfig();
10
10
  try {
11
- chunk5SPAQH6A_cjs.handleProcess(config);
12
- chunk5SPAQH6A_cjs.writeInfo("Running prepare hook...", config);
11
+ chunkU33ERNJG_cjs.handleProcess(config);
12
+ chunkU33ERNJG_cjs.writeInfo("Running prepare hook...", config);
13
13
  if (!process.env.CI && !process.env.STORM_CI) {
14
14
  chunkCIJVSMK2_cjs.run(config, "lefthook install");
15
15
  }
16
- chunk5SPAQH6A_cjs.exitWithSuccess(config);
16
+ chunkU33ERNJG_cjs.exitWithSuccess(config);
17
17
  } catch (error) {
18
- chunk5SPAQH6A_cjs.writeFatal(
18
+ chunkU33ERNJG_cjs.writeFatal(
19
19
  `A fatal error occurred while running the program: ${error.message}`,
20
20
  config
21
21
  );
22
- chunk5SPAQH6A_cjs.exitWithError(config);
22
+ chunkU33ERNJG_cjs.exitWithError(config);
23
23
  process.exit(1);
24
24
  }
25
25
  })();
package/bin/prepare.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { run } from './chunk-54Q5U5WW.js';
3
- import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-LBURTJLB.js';
3
+ import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-CPA5SGWF.js';
4
4
 
5
5
  // bin/prepare.ts
6
6
  void (async () => {
@@ -2,20 +2,20 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkSWXHQXUT_cjs = require('./chunk-SWXHQXUT.cjs');
5
- var chunk5SPAQH6A_cjs = require('./chunk-5SPAQH6A.cjs');
5
+ var chunkU33ERNJG_cjs = require('./chunk-U33ERNJG.cjs');
6
6
 
7
7
  // bin/version-warning.ts
8
8
  void (async () => {
9
- const config = await chunk5SPAQH6A_cjs.getConfig();
9
+ const config = await chunkU33ERNJG_cjs.getConfig();
10
10
  try {
11
- chunk5SPAQH6A_cjs.handleProcess(config);
11
+ chunkU33ERNJG_cjs.handleProcess(config);
12
12
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv.slice(1));
13
13
  } catch (error) {
14
- chunk5SPAQH6A_cjs.writeFatal(
14
+ chunkU33ERNJG_cjs.writeFatal(
15
15
  `A fatal error occurred while running the program: ${error.message}`,
16
16
  config
17
17
  );
18
- chunk5SPAQH6A_cjs.exitWithError(config);
18
+ chunkU33ERNJG_cjs.exitWithError(config);
19
19
  process.exit(1);
20
20
  }
21
21
  })();
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { checkPackageVersion } from './chunk-AMSZ7DVW.js';
3
- import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-LBURTJLB.js';
3
+ import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-CPA5SGWF.js';
4
4
 
5
5
  // bin/version-warning.ts
6
6
  void (async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.122.4",
3
+ "version": "2.122.6",
4
4
  "type": "module",
5
5
  "description": "Tools for managing Git repositories within a Nx workspace.",
6
6
  "repository": {
@@ -185,8 +185,8 @@
185
185
  "@inquirer/prompts": "7.2.1",
186
186
  "@nx/devkit": "^21.4.1",
187
187
  "@nx/js": "^21.4.1",
188
- "@storm-software/config": "^1.132.2",
189
- "@storm-software/config-tools": "^1.186.4",
188
+ "@storm-software/config": "^1.133.0",
189
+ "@storm-software/config-tools": "^1.187.1",
190
190
  "@textlint/ast-node-types": "14.4.2",
191
191
  "@textlint/markdown-to-ast": "14.4.2",
192
192
  "anchor-markdown-header": "0.7.0",
@@ -194,7 +194,7 @@
194
194
  "axios": "1.8.2",
195
195
  "chalk": "^4.1.2",
196
196
  "chalk-template": "1.1.0",
197
- "conventional-changelog-storm-software": "^0.2.4",
197
+ "conventional-changelog-storm-software": "^0.2.6",
198
198
  "htmlparser2": "10.0.0",
199
199
  "jsonc-parser": "3.2.1",
200
200
  "nx": "^21.4.1",
@@ -216,5 +216,5 @@
216
216
  "tsup": "8.4.0"
217
217
  },
218
218
  "publishConfig": { "access": "public" },
219
- "gitHead": "c5ba51816a1c46071312edc1f6bbe0762a796d61"
219
+ "gitHead": "6928556be32247f000a29f9aa3e3aa14f83149c3"
220
220
  }