@storm-software/git-tools 2.113.23 → 2.113.24

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.113.21-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.113.22-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 -->
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
-
44
43
  ## Table of Contents
45
44
 
46
45
  - [Storm Git Tools](#storm-git-tools)
@@ -455,7 +455,6 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
455
455
 
456
456
  // ../config-tools/src/utilities/find-workspace-root.ts
457
457
  var rootFiles = [
458
- "storm-workspace.json",
459
458
  "storm-workspace.json",
460
459
  "storm-workspace.yaml",
461
460
  "storm-workspace.yml",
@@ -430,7 +430,6 @@ function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
430
430
 
431
431
  // ../config-tools/src/utilities/find-workspace-root.ts
432
432
  var rootFiles = [
433
- "storm-workspace.json",
434
433
  "storm-workspace.json",
435
434
  "storm-workspace.yaml",
436
435
  "storm-workspace.yml",
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 chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
5
+ var chunk3MTHCLGM_cjs = require('./chunk-3MTHCLGM.cjs');
6
6
  var TOML = require('@ltd/j-toml');
7
7
  var commander = require('commander');
8
8
  var prompts = require('@inquirer/prompts');
@@ -915,7 +915,7 @@ function getRuleFromScopeEnum(scopeEnum) {
915
915
  // src/commitlint/run.ts
916
916
  var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
917
917
  var runCommitLint = async (config, params) => {
918
- chunkDDGJVTT5_cjs.writeInfo(
918
+ chunk3MTHCLGM_cjs.writeInfo(
919
919
  "\u{1F4DD} Validating git commit message aligns with the Storm Software specification",
920
920
  config
921
921
  );
@@ -923,7 +923,7 @@ var runCommitLint = async (config, params) => {
923
923
  if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
924
924
  commitMessage = params.message;
925
925
  } else {
926
- const commitFile = chunkDDGJVTT5_cjs.joinPaths(
926
+ const commitFile = chunk3MTHCLGM_cjs.joinPaths(
927
927
  config.workspaceRoot,
928
928
  params.file || params.message || COMMIT_EDITMSG_PATH
929
929
  );
@@ -940,17 +940,17 @@ var runCommitLint = async (config, params) => {
940
940
  if (upstreamRemote) {
941
941
  const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
942
942
  if (!upstreamRemoteIdentifier) {
943
- chunkDDGJVTT5_cjs.writeWarning(
943
+ chunk3MTHCLGM_cjs.writeWarning(
944
944
  `No upstream remote found for ${config.name}.git. Skipping comparison.`,
945
945
  config
946
946
  );
947
947
  return;
948
948
  }
949
- chunkDDGJVTT5_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
949
+ chunk3MTHCLGM_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
950
950
  const currentBranch = childProcess__default.default.execSync("git branch --show-current").toString().trim();
951
951
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
952
952
  } else {
953
- chunkDDGJVTT5_cjs.writeWarning(
953
+ chunk3MTHCLGM_cjs.writeWarning(
954
954
  `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`,
955
955
  config
956
956
  );
@@ -958,7 +958,7 @@ var runCommitLint = async (config, params) => {
958
958
  }
959
959
  commitMessage = childProcess__default.default.execSync(gitLogCmd).toString().trim();
960
960
  if (!commitMessage) {
961
- chunkDDGJVTT5_cjs.writeWarning(
961
+ chunk3MTHCLGM_cjs.writeWarning(
962
962
  "No commits found. Skipping commit message validation.",
963
963
  config
964
964
  );
@@ -971,7 +971,7 @@ var runCommitLint = async (config, params) => {
971
971
  });
972
972
  const commitMsgRegex = `(${allowedTypes})\\((${allowedScopes})\\)!?:\\s(([a-z0-9:-s])+)`;
973
973
  const matchCommit = new RegExp(commitMsgRegex, "g").test(commitMessage);
974
- const commitlintConfig = chunkDDGJVTT5_cjs.defu(
974
+ const commitlintConfig = chunk3MTHCLGM_cjs.defu(
975
975
  params.config ?? {},
976
976
  { rules: { "scope-enum": getRuleFromScopeEnum(allowedScopes) } },
977
977
  DEFAULT_COMMITLINT_CONFIG
@@ -981,7 +981,7 @@ var runCommitLint = async (config, params) => {
981
981
  helpUrl: commitlintConfig.helpUrl
982
982
  });
983
983
  if (!matchCommit || report.errors.length || report.warnings.length) {
984
- chunkDDGJVTT5_cjs.writeSuccess(`Commit was processing completed successfully!`, config);
984
+ chunk3MTHCLGM_cjs.writeSuccess(`Commit was processing completed successfully!`, config);
985
985
  } else {
986
986
  let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
987
987
  errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
@@ -1053,14 +1053,14 @@ async function createState(config, commitizenFile = "@storm-software/git-tools/c
1053
1053
  answers: {}
1054
1054
  };
1055
1055
  } else {
1056
- chunkDDGJVTT5_cjs.writeInfo(`Using custom commit config file: ${commitizenFile}`, config);
1056
+ chunk3MTHCLGM_cjs.writeInfo(`Using custom commit config file: ${commitizenFile}`, config);
1057
1057
  let commitizenConfig = await import(commitizenFile);
1058
1058
  if (commitizenConfig?.default) {
1059
1059
  commitizenConfig = commitizenConfig?.default;
1060
1060
  }
1061
1061
  state = {
1062
1062
  config: await resolveCommitOptions(
1063
- chunkDDGJVTT5_cjs.defu(commitizenConfig ?? {}, DEFAULT_COMMIT_CONFIG),
1063
+ chunk3MTHCLGM_cjs.defu(commitizenConfig ?? {}, DEFAULT_COMMIT_CONFIG),
1064
1064
  config
1065
1065
  ),
1066
1066
  root,
@@ -1116,7 +1116,7 @@ async function createState(config, commitizenFile = "@storm-software/git-tools/c
1116
1116
  const project = projectConfigurations.projects[scope];
1117
1117
  if (project) {
1118
1118
  let description = `${project.name} - ${project.root}`;
1119
- const packageJsonPath = chunkDDGJVTT5_cjs.joinPaths(project.root, "package.json");
1119
+ const packageJsonPath = chunk3MTHCLGM_cjs.joinPaths(project.root, "package.json");
1120
1120
  if (fs$1.existsSync(packageJsonPath)) {
1121
1121
  const packageJsonFile = await fs.readFile(packageJsonPath, "utf8");
1122
1122
  const packageJson = JSON.parse(packageJsonFile);
@@ -1193,10 +1193,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
1193
1193
 
1194
1194
  // src/commit/run.ts
1195
1195
  var runCommit = async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
1196
- const config = await chunkDDGJVTT5_cjs.getConfig();
1196
+ const config = await chunk3MTHCLGM_cjs.getConfig();
1197
1197
  const state = await createState(config, commitizenFile);
1198
1198
  if (dryRun) {
1199
- chunkDDGJVTT5_cjs.writeInfo("Running in dry mode.", config);
1199
+ chunk3MTHCLGM_cjs.writeInfo("Running in dry mode.", config);
1200
1200
  }
1201
1201
  console.log(chalkTemplate__default.default`
1202
1202
  {bold.#999999 ----------------------------------------}
@@ -1206,7 +1206,7 @@ var runCommit = async (commitizenFile = "@storm-software/git-tools/commit/config
1206
1206
  `);
1207
1207
  state.answers = await askQuestions(state);
1208
1208
  const message = formatCommitMessage(state);
1209
- const commitMsgFile = chunkDDGJVTT5_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
1209
+ const commitMsgFile = chunk3MTHCLGM_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
1210
1210
  console.log(chalkTemplate__default.default`
1211
1211
  {bold.#999999 ----------------------------------------}
1212
1212
 
@@ -1219,11 +1219,11 @@ var runCommit = async (commitizenFile = "@storm-software/git-tools/commit/config
1219
1219
  commandItems.push(...["--file", commitMsgFile]);
1220
1220
  const command = shellescape__default.default(commandItems);
1221
1221
  if (dryRun) {
1222
- chunkDDGJVTT5_cjs.writeDebug(
1222
+ chunk3MTHCLGM_cjs.writeDebug(
1223
1223
  `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
1224
1224
  config
1225
1225
  );
1226
- chunkDDGJVTT5_cjs.writeDebug(`Message [dry-run]: ${message}`, config);
1226
+ chunk3MTHCLGM_cjs.writeDebug(`Message [dry-run]: ${message}`, config);
1227
1227
  } else {
1228
1228
  await fs__default.default.writeFile(commitMsgFile, message);
1229
1229
  chunkCIJVSMK2_cjs.run(config, command);
@@ -2457,7 +2457,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
2457
2457
  };
2458
2458
  }
2459
2459
  async render() {
2460
- this.workspaceConfig = await chunkDDGJVTT5_cjs.getWorkspaceConfig();
2460
+ this.workspaceConfig = await chunk3MTHCLGM_cjs.getWorkspaceConfig();
2461
2461
  return await super.render();
2462
2462
  }
2463
2463
  preprocessChanges() {
@@ -2768,7 +2768,7 @@ async function createOrUpdateGithubReleaseInternal(githubRequestConfig, release,
2768
2768
  if (!shouldContinueInGitHub) {
2769
2769
  return;
2770
2770
  }
2771
- const open = chunkDDGJVTT5_cjs.__require("open");
2771
+ const open = chunk3MTHCLGM_cjs.__require("open");
2772
2772
  await open(result.url).then(() => {
2773
2773
  console.info(
2774
2774
  `
@@ -2868,7 +2868,7 @@ async function resolveTokenData(hostname) {
2868
2868
  );
2869
2869
  if (fs$1.existsSync(ghCLIPath)) {
2870
2870
  const yamlContents = await fs$1.promises.readFile(ghCLIPath, "utf8");
2871
- const { load } = chunkDDGJVTT5_cjs.__require("@zkochan/js-yaml");
2871
+ const { load } = chunk3MTHCLGM_cjs.__require("@zkochan/js-yaml");
2872
2872
  const ghCLIConfig = load(yamlContents);
2873
2873
  if (ghCLIConfig[hostname]) {
2874
2874
  if (ghCLIConfig[hostname].oauth_token) {
@@ -2982,7 +2982,7 @@ async function isUserAnOrganizationMember(userId, config, remoteName = "origin")
2982
2982
  // src/release/changelog.ts
2983
2983
  function createAPI(overrideReleaseConfig) {
2984
2984
  return async function releaseChangelog(args) {
2985
- const workspaceConfig = await chunkDDGJVTT5_cjs.getWorkspaceConfig();
2985
+ const workspaceConfig = await chunk3MTHCLGM_cjs.getWorkspaceConfig();
2986
2986
  const projectGraph$1 = await projectGraph.createProjectGraphAsync({ exitOnError: true });
2987
2987
  const nxJson$1 = nxJson.readNxJson();
2988
2988
  const userProvidedReleaseConfig = deepMergeJson.deepMergeJson(
@@ -3683,7 +3683,7 @@ async function generateChangelogForWorkspace({
3683
3683
  workspaceChangelogVersion,
3684
3684
  changes
3685
3685
  }) {
3686
- const workspaceConfig = await chunkDDGJVTT5_cjs.getWorkspaceConfig();
3686
+ const workspaceConfig = await chunk3MTHCLGM_cjs.getWorkspaceConfig();
3687
3687
  if (!workspaceConfig) {
3688
3688
  throw new Error(
3689
3689
  `Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
@@ -3797,7 +3797,7 @@ async function generateChangelogForProjects({
3797
3797
  nxReleaseConfig,
3798
3798
  projectToAdditionalDependencyBumps
3799
3799
  }) {
3800
- const workspaceConfig = await chunkDDGJVTT5_cjs.getWorkspaceConfig();
3800
+ const workspaceConfig = await chunk3MTHCLGM_cjs.getWorkspaceConfig();
3801
3801
  if (!workspaceConfig) {
3802
3802
  throw new Error(
3803
3803
  `Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
@@ -4102,7 +4102,7 @@ var runRelease = async (config, options) => {
4102
4102
  throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
4103
4103
  }
4104
4104
  if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config)) {
4105
- chunkDDGJVTT5_cjs.writeFatal(
4105
+ chunk3MTHCLGM_cjs.writeFatal(
4106
4106
  "You must be a member of the Storm Software organization to run the release process.",
4107
4107
  config
4108
4108
  );
@@ -4119,12 +4119,12 @@ var runRelease = async (config, options) => {
4119
4119
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
4120
4120
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
4121
4121
  process.env.NPM_CONFIG_PROVENANCE = "true";
4122
- chunkDDGJVTT5_cjs.writeDebug("Creating workspace Project Graph data...", config);
4122
+ chunk3MTHCLGM_cjs.writeDebug("Creating workspace Project Graph data...", config);
4123
4123
  const nxJson = nxJson_js.readNxJson();
4124
- chunkDDGJVTT5_cjs.writeDebug("Reading in the workspaces release configuration", config);
4124
+ chunk3MTHCLGM_cjs.writeDebug("Reading in the workspaces release configuration", config);
4125
4125
  const to = options.head || process.env.NX_HEAD;
4126
4126
  const from = options.base || process.env.NX_BASE;
4127
- chunkDDGJVTT5_cjs.writeDebug(
4127
+ chunk3MTHCLGM_cjs.writeDebug(
4128
4128
  `Using the following Git SHAs to determine the release content:
4129
4129
  - From: ${from}
4130
4130
  - To: ${to}
@@ -4135,28 +4135,28 @@ var runRelease = async (config, options) => {
4135
4135
  nxJson.release.groups = Object.keys(nxJson.release.groups).reduce(
4136
4136
  (ret, groupName) => {
4137
4137
  const groupConfig = nxJson.release?.groups?.[groupName];
4138
- ret[groupName] = chunkDDGJVTT5_cjs.defu(groupConfig, DEFAULT_RELEASE_GROUP_CONFIG);
4138
+ ret[groupName] = chunk3MTHCLGM_cjs.defu(groupConfig, DEFAULT_RELEASE_GROUP_CONFIG);
4139
4139
  return ret;
4140
4140
  },
4141
4141
  {}
4142
4142
  );
4143
4143
  }
4144
- const nxReleaseConfig = chunkDDGJVTT5_cjs.defu(
4144
+ const nxReleaseConfig = chunk3MTHCLGM_cjs.defu(
4145
4145
  nxJson.release,
4146
4146
  DEFAULT_RELEASE_CONFIG
4147
4147
  );
4148
- chunkDDGJVTT5_cjs.writeInfo(
4148
+ chunk3MTHCLGM_cjs.writeInfo(
4149
4149
  "Using the following `nx.json` release configuration values",
4150
4150
  config
4151
4151
  );
4152
- chunkDDGJVTT5_cjs.writeInfo(nxReleaseConfig, config);
4152
+ chunk3MTHCLGM_cjs.writeInfo(nxReleaseConfig, config);
4153
4153
  const releaseVersion = version_js.createAPI(nxReleaseConfig);
4154
4154
  const releaseChangelog = createAPI(nxReleaseConfig);
4155
4155
  const releasePublish = publish_js.createAPI(nxReleaseConfig);
4156
- chunkDDGJVTT5_cjs.writeDebug("Determining the current release versions...", config);
4156
+ chunk3MTHCLGM_cjs.writeDebug("Determining the current release versions...", config);
4157
4157
  const { workspaceVersion, projectsVersionData } = await releaseVersion({
4158
4158
  dryRun: false,
4159
- verbose: chunkDDGJVTT5_cjs.isVerbose(config.logLevel),
4159
+ verbose: chunk3MTHCLGM_cjs.isVerbose(config.logLevel),
4160
4160
  preid: config.preid,
4161
4161
  deleteVersionPlans: false,
4162
4162
  stageChanges: true,
@@ -4167,15 +4167,15 @@ var runRelease = async (config, options) => {
4167
4167
  version: nxReleaseConfig?.projectsRelationship !== "fixed" ? void 0 : workspaceVersion,
4168
4168
  versionData: projectsVersionData,
4169
4169
  dryRun: false,
4170
- verbose: chunkDDGJVTT5_cjs.isVerbose(config.logLevel),
4170
+ verbose: chunk3MTHCLGM_cjs.isVerbose(config.logLevel),
4171
4171
  to,
4172
4172
  from,
4173
4173
  gitCommit: true,
4174
4174
  gitCommitMessage: "release(monorepo): Publish workspace release updates"
4175
4175
  });
4176
- chunkDDGJVTT5_cjs.writeDebug("Tagging commit with git", config);
4176
+ chunk3MTHCLGM_cjs.writeDebug("Tagging commit with git", config);
4177
4177
  if (options.skipPublish) {
4178
- chunkDDGJVTT5_cjs.writeWarning(
4178
+ chunk3MTHCLGM_cjs.writeWarning(
4179
4179
  "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
4180
4180
  config
4181
4181
  );
@@ -4184,7 +4184,7 @@ var runRelease = async (config, options) => {
4184
4184
  (key) => projectsVersionData[key]?.newVersion
4185
4185
  );
4186
4186
  if (changedProjects.length > 0) {
4187
- chunkDDGJVTT5_cjs.writeInfo(
4187
+ chunk3MTHCLGM_cjs.writeInfo(
4188
4188
  `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
4189
4189
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
4190
4190
  `,
@@ -4194,7 +4194,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
4194
4194
  const result = await releasePublish({
4195
4195
  ...options,
4196
4196
  dryRun: !!options.dryRun,
4197
- verbose: chunkDDGJVTT5_cjs.isVerbose(config.logLevel)
4197
+ verbose: chunk3MTHCLGM_cjs.isVerbose(config.logLevel)
4198
4198
  });
4199
4199
  const failedProjects = Object.keys(result).filter(
4200
4200
  (key) => result[key]?.code && result[key]?.code > 0
@@ -4209,10 +4209,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
4209
4209
  );
4210
4210
  }
4211
4211
  } else {
4212
- chunkDDGJVTT5_cjs.writeWarning("Skipped publishing packages.", config);
4212
+ chunk3MTHCLGM_cjs.writeWarning("Skipped publishing packages.", config);
4213
4213
  }
4214
4214
  }
4215
- chunkDDGJVTT5_cjs.writeSuccess("Completed the Storm workspace release process!", config);
4215
+ chunk3MTHCLGM_cjs.writeSuccess("Completed the Storm workspace release process!", config);
4216
4216
  };
4217
4217
  async function updatePackageManifests(projectsVersionData, config) {
4218
4218
  let projectGraph;
@@ -4227,7 +4227,7 @@ async function updatePackageManifests(projectsVersionData, config) {
4227
4227
  Object.keys(projectsVersionData).map(async (node) => {
4228
4228
  const projectNode = projectGraph.nodes[node];
4229
4229
  if (!projectNode?.data.root) {
4230
- chunkDDGJVTT5_cjs.writeWarning(
4230
+ chunk3MTHCLGM_cjs.writeWarning(
4231
4231
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
4232
4232
  config
4233
4233
  );
@@ -4235,17 +4235,17 @@ async function updatePackageManifests(projectsVersionData, config) {
4235
4235
  }
4236
4236
  const versionData = projectsVersionData[node];
4237
4237
  if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
4238
- chunkDDGJVTT5_cjs.writeTrace(
4238
+ chunk3MTHCLGM_cjs.writeTrace(
4239
4239
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
4240
4240
  `,
4241
4241
  config
4242
4242
  );
4243
- const projectRoot = chunkDDGJVTT5_cjs.joinPaths(
4243
+ const projectRoot = chunk3MTHCLGM_cjs.joinPaths(
4244
4244
  config.workspaceRoot,
4245
4245
  projectNode.data.root
4246
4246
  );
4247
- const packageJsonPath = chunkDDGJVTT5_cjs.joinPaths(projectRoot, "package.json");
4248
- const cargoTomlPath = chunkDDGJVTT5_cjs.joinPaths(projectRoot, "Cargo.toml");
4247
+ const packageJsonPath = chunk3MTHCLGM_cjs.joinPaths(projectRoot, "package.json");
4248
+ const cargoTomlPath = chunk3MTHCLGM_cjs.joinPaths(projectRoot, "Cargo.toml");
4249
4249
  if (fs$1.existsSync(packageJsonPath)) {
4250
4250
  const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
4251
4251
  const packageJson = JSON.parse(packageJsonContent);
@@ -4263,7 +4263,7 @@ async function updatePackageManifests(projectsVersionData, config) {
4263
4263
  })
4264
4264
  );
4265
4265
  } else {
4266
- chunkDDGJVTT5_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config);
4266
+ chunk3MTHCLGM_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config);
4267
4267
  }
4268
4268
  }
4269
4269
 
@@ -4271,8 +4271,8 @@ async function updatePackageManifests(projectsVersionData, config) {
4271
4271
  var _config = {};
4272
4272
  function createProgram(config) {
4273
4273
  _config = config;
4274
- chunkDDGJVTT5_cjs.writeInfo("\u26A1 Running Storm Git Tools", config);
4275
- const root = chunkDDGJVTT5_cjs.findWorkspaceRootSafe(process.cwd());
4274
+ chunk3MTHCLGM_cjs.writeInfo("\u26A1 Running Storm Git Tools", config);
4275
+ const root = chunk3MTHCLGM_cjs.findWorkspaceRootSafe(process.cwd());
4276
4276
  process.env.STORM_WORKSPACE_ROOT ??= root;
4277
4277
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
4278
4278
  if (root) {
@@ -4337,12 +4337,12 @@ async function commitAction({
4337
4337
  dryRun = false
4338
4338
  }) {
4339
4339
  try {
4340
- chunkDDGJVTT5_cjs.writeInfo(
4340
+ chunk3MTHCLGM_cjs.writeInfo(
4341
4341
  `\u26A1 Preparing to commit your changes. Please provide the requested details below...`,
4342
4342
  _config
4343
4343
  );
4344
4344
  await runCommit(config, dryRun);
4345
- chunkDDGJVTT5_cjs.writeSuccess(
4345
+ chunk3MTHCLGM_cjs.writeSuccess(
4346
4346
  `\u{1F389} Storm Commit processing completed successfully!
4347
4347
 
4348
4348
  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}
@@ -4350,7 +4350,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
4350
4350
  _config
4351
4351
  );
4352
4352
  } catch (error) {
4353
- chunkDDGJVTT5_cjs.writeFatal(
4353
+ chunk3MTHCLGM_cjs.writeFatal(
4354
4354
  `A fatal error occurred while running commit action:
4355
4355
 
4356
4356
  ${error.message}`,
@@ -4361,14 +4361,14 @@ ${error.message}`,
4361
4361
  }
4362
4362
  async function readmeAction(options) {
4363
4363
  try {
4364
- chunkDDGJVTT5_cjs.writeInfo("\u26A1 Formatting the workspace's README.md files", _config);
4364
+ chunk3MTHCLGM_cjs.writeInfo("\u26A1 Formatting the workspace's README.md files", _config);
4365
4365
  await runReadme(options);
4366
- chunkDDGJVTT5_cjs.writeSuccess(
4366
+ chunk3MTHCLGM_cjs.writeSuccess(
4367
4367
  "Formatting of the workspace's README.md files is complete\n",
4368
4368
  _config
4369
4369
  );
4370
4370
  } catch (error) {
4371
- chunkDDGJVTT5_cjs.writeFatal(
4371
+ chunk3MTHCLGM_cjs.writeFatal(
4372
4372
  `A fatal error occurred while running README format action:
4373
4373
 
4374
4374
  ${error.message}`
@@ -4383,7 +4383,7 @@ async function releaseAction({
4383
4383
  dryRun
4384
4384
  }) {
4385
4385
  try {
4386
- chunkDDGJVTT5_cjs.writeInfo(
4386
+ chunk3MTHCLGM_cjs.writeInfo(
4387
4387
  "\u26A1 Running the Storm Release and Publish process on the workspace",
4388
4388
  _config
4389
4389
  );
@@ -4393,9 +4393,9 @@ async function releaseAction({
4393
4393
  base,
4394
4394
  head
4395
4395
  });
4396
- chunkDDGJVTT5_cjs.writeSuccess("Release completed successfully!\n", _config);
4396
+ chunk3MTHCLGM_cjs.writeSuccess("Release completed successfully!\n", _config);
4397
4397
  } catch (error) {
4398
- chunkDDGJVTT5_cjs.writeFatal(
4398
+ chunk3MTHCLGM_cjs.writeFatal(
4399
4399
  `A fatal error occurred while running release action:
4400
4400
 
4401
4401
  ${error.message} ${error.stack ? `
@@ -4413,7 +4413,7 @@ async function commitLintAction({
4413
4413
  file
4414
4414
  }) {
4415
4415
  try {
4416
- chunkDDGJVTT5_cjs.writeInfo(
4416
+ chunk3MTHCLGM_cjs.writeInfo(
4417
4417
  `\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.`,
4418
4418
  _config
4419
4419
  );
@@ -4422,12 +4422,12 @@ async function commitLintAction({
4422
4422
  message,
4423
4423
  file
4424
4424
  });
4425
- chunkDDGJVTT5_cjs.writeSuccess(
4425
+ chunk3MTHCLGM_cjs.writeSuccess(
4426
4426
  "Linting the commit messages completed successfully!\n",
4427
4427
  _config
4428
4428
  );
4429
4429
  } catch (error) {
4430
- chunkDDGJVTT5_cjs.writeFatal(
4430
+ chunk3MTHCLGM_cjs.writeFatal(
4431
4431
  `A fatal error occurred while linting the commit messages:
4432
4432
 
4433
4433
  ${error.message}`,
@@ -4439,18 +4439,18 @@ ${error.message}`,
4439
4439
 
4440
4440
  // bin/git.ts
4441
4441
  void (async () => {
4442
- const config = await chunkDDGJVTT5_cjs.getConfig();
4442
+ const config = await chunk3MTHCLGM_cjs.getConfig();
4443
4443
  try {
4444
- chunkDDGJVTT5_cjs.handleProcess(config);
4444
+ chunk3MTHCLGM_cjs.handleProcess(config);
4445
4445
  const program = createProgram(config);
4446
4446
  await program.parseAsync(process.argv);
4447
- chunkDDGJVTT5_cjs.writeSuccess(
4447
+ chunk3MTHCLGM_cjs.writeSuccess(
4448
4448
  `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
4449
4449
  config
4450
4450
  );
4451
- chunkDDGJVTT5_cjs.exitWithSuccess(config);
4451
+ chunk3MTHCLGM_cjs.exitWithSuccess(config);
4452
4452
  } catch (error) {
4453
- chunkDDGJVTT5_cjs.exitWithError(config);
4453
+ chunk3MTHCLGM_cjs.exitWithError(config);
4454
4454
  process.exit(1);
4455
4455
  }
4456
4456
  })();
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, joinPaths, writeDebug, defu, isVerbose, writeWarning, getWorkspaceConfig, writeTrace, __require } from './chunk-NRQQ6RND.js';
3
+ import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, joinPaths, writeDebug, defu, isVerbose, writeWarning, getWorkspaceConfig, writeTrace, __require } from './chunk-7FHPOB4N.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 chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
6
+ var chunk3MTHCLGM_cjs = require('./chunk-3MTHCLGM.cjs');
7
7
 
8
8
  // bin/post-checkout.ts
9
9
  void (async () => {
10
- const config = await chunkDDGJVTT5_cjs.getConfig();
10
+ const config = await chunk3MTHCLGM_cjs.getConfig();
11
11
  try {
12
- chunkDDGJVTT5_cjs.handleProcess(config);
13
- chunkDDGJVTT5_cjs.writeInfo("Running post-checkout hook...", config);
12
+ chunk3MTHCLGM_cjs.handleProcess(config);
13
+ chunk3MTHCLGM_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
- chunkDDGJVTT5_cjs.writeError(
18
+ chunk3MTHCLGM_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
- chunkDDGJVTT5_cjs.exitWithError(config);
23
+ chunk3MTHCLGM_cjs.exitWithError(config);
24
24
  }
25
25
  chunkCIJVSMK2_cjs.run(config, "git lfs post-checkout");
26
- chunkDDGJVTT5_cjs.exitWithSuccess(config);
26
+ chunk3MTHCLGM_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunkDDGJVTT5_cjs.writeFatal(
28
+ chunk3MTHCLGM_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunkDDGJVTT5_cjs.exitWithError(config);
32
+ chunk3MTHCLGM_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-NRQQ6RND.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-7FHPOB4N.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 chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
6
+ var chunk3MTHCLGM_cjs = require('./chunk-3MTHCLGM.cjs');
7
7
 
8
8
  // bin/post-commit.ts
9
9
  void (async () => {
10
- const config = await chunkDDGJVTT5_cjs.getConfig();
10
+ const config = await chunk3MTHCLGM_cjs.getConfig();
11
11
  try {
12
- chunkDDGJVTT5_cjs.handleProcess(config);
13
- chunkDDGJVTT5_cjs.writeInfo("Running post-commit hook...", config);
12
+ chunk3MTHCLGM_cjs.handleProcess(config);
13
+ chunk3MTHCLGM_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
- chunkDDGJVTT5_cjs.writeError(
18
+ chunk3MTHCLGM_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
- chunkDDGJVTT5_cjs.exitWithError(config);
23
+ chunk3MTHCLGM_cjs.exitWithError(config);
24
24
  }
25
25
  chunkCIJVSMK2_cjs.run(config, "git lfs post-commit");
26
- chunkDDGJVTT5_cjs.exitWithSuccess(config);
26
+ chunk3MTHCLGM_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunkDDGJVTT5_cjs.writeFatal(
28
+ chunk3MTHCLGM_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunkDDGJVTT5_cjs.exitWithError(config);
32
+ chunk3MTHCLGM_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-NRQQ6RND.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-7FHPOB4N.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 chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
6
+ var chunk3MTHCLGM_cjs = require('./chunk-3MTHCLGM.cjs');
7
7
 
8
8
  // bin/post-merge.ts
9
9
  void (async () => {
10
- const config = await chunkDDGJVTT5_cjs.getConfig();
10
+ const config = await chunk3MTHCLGM_cjs.getConfig();
11
11
  try {
12
- chunkDDGJVTT5_cjs.handleProcess(config);
13
- chunkDDGJVTT5_cjs.writeInfo("Running post-merge hook...", config);
12
+ chunk3MTHCLGM_cjs.handleProcess(config);
13
+ chunk3MTHCLGM_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
- chunkDDGJVTT5_cjs.writeError(
18
+ chunk3MTHCLGM_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
- chunkDDGJVTT5_cjs.exitWithError(config);
23
+ chunk3MTHCLGM_cjs.exitWithError(config);
24
24
  }
25
25
  chunkCIJVSMK2_cjs.run(config, "git lfs post-merge");
26
- chunkDDGJVTT5_cjs.exitWithSuccess(config);
26
+ chunk3MTHCLGM_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunkDDGJVTT5_cjs.writeFatal(
28
+ chunk3MTHCLGM_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunkDDGJVTT5_cjs.exitWithError(config);
32
+ chunk3MTHCLGM_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-NRQQ6RND.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-7FHPOB4N.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 chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
5
+ var chunk3MTHCLGM_cjs = require('./chunk-3MTHCLGM.cjs');
6
6
 
7
7
  // bin/pre-commit.ts
8
8
  void (async () => {
9
- const config = await chunkDDGJVTT5_cjs.getConfig();
9
+ const config = await chunk3MTHCLGM_cjs.getConfig();
10
10
  try {
11
- chunkDDGJVTT5_cjs.handleProcess(config);
12
- chunkDDGJVTT5_cjs.writeInfo("Running pre-commit hook...", config);
11
+ chunk3MTHCLGM_cjs.handleProcess(config);
12
+ chunk3MTHCLGM_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
- chunkDDGJVTT5_cjs.writeError(
15
+ chunk3MTHCLGM_cjs.writeError(
16
16
  "Please regenerate the package lock file before committing...",
17
17
  config
18
18
  );
19
- chunkDDGJVTT5_cjs.exitWithError(config);
19
+ chunk3MTHCLGM_cjs.exitWithError(config);
20
20
  }
21
- chunkDDGJVTT5_cjs.exitWithSuccess(config);
21
+ chunk3MTHCLGM_cjs.exitWithSuccess(config);
22
22
  } catch (error) {
23
- chunkDDGJVTT5_cjs.writeFatal(
23
+ chunk3MTHCLGM_cjs.writeFatal(
24
24
  `A fatal error occurred while running the program: ${error.message}`,
25
25
  config
26
26
  );
27
- chunkDDGJVTT5_cjs.exitWithError(config);
27
+ chunk3MTHCLGM_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-NRQQ6RND.js';
3
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-7FHPOB4N.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 chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
5
+ var chunk3MTHCLGM_cjs = require('./chunk-3MTHCLGM.cjs');
6
6
 
7
7
  // bin/pre-install.ts
8
8
  void (async () => {
9
- const config = await chunkDDGJVTT5_cjs.getConfig();
9
+ const config = await chunk3MTHCLGM_cjs.getConfig();
10
10
  try {
11
- chunkDDGJVTT5_cjs.handleProcess(config);
12
- chunkDDGJVTT5_cjs.writeInfo("Running pre-install hook...", config);
11
+ chunk3MTHCLGM_cjs.handleProcess(config);
12
+ chunk3MTHCLGM_cjs.writeInfo("Running pre-install hook...", config);
13
13
  if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
14
- chunkDDGJVTT5_cjs.writeInfo("Skipping pre-install for CI process...", config);
15
- chunkDDGJVTT5_cjs.exitWithSuccess(config);
14
+ chunk3MTHCLGM_cjs.writeInfo("Skipping pre-install for CI process...", config);
15
+ chunk3MTHCLGM_cjs.exitWithSuccess(config);
16
16
  }
17
17
  chunkCIJVSMK2_cjs.run(config, "npx -y only-allow pnpm");
18
- chunkDDGJVTT5_cjs.exitWithSuccess(config);
18
+ chunk3MTHCLGM_cjs.exitWithSuccess(config);
19
19
  } catch (error) {
20
- chunkDDGJVTT5_cjs.writeFatal(
20
+ chunk3MTHCLGM_cjs.writeFatal(
21
21
  `A fatal error occurred while running the program: ${error.message}`,
22
22
  config
23
23
  );
24
- chunkDDGJVTT5_cjs.exitWithError(config);
24
+ chunk3MTHCLGM_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-NRQQ6RND.js';
3
+ import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-7FHPOB4N.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 chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
6
+ var chunk3MTHCLGM_cjs = require('./chunk-3MTHCLGM.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 chunkDDGJVTT5_cjs.getConfig();
17
+ const config = await chunk3MTHCLGM_cjs.getConfig();
18
18
  try {
19
- chunkDDGJVTT5_cjs.handleProcess(config);
20
- chunkDDGJVTT5_cjs.writeInfo("Running pre-push hook...", config);
19
+ chunk3MTHCLGM_cjs.handleProcess(config);
20
+ chunk3MTHCLGM_cjs.writeInfo("Running pre-push hook...", config);
21
21
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
22
- chunkDDGJVTT5_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
22
+ chunk3MTHCLGM_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
- chunkDDGJVTT5_cjs.writeError("\u274C Lock file validation failed", config);
57
+ chunk3MTHCLGM_cjs.writeError("\u274C Lock file validation failed", config);
58
58
  for (const error of errors) {
59
59
  console.error(error);
60
60
  }
61
- chunkDDGJVTT5_cjs.exitWithError(config);
61
+ chunk3MTHCLGM_cjs.exitWithError(config);
62
62
  }
63
- chunkDDGJVTT5_cjs.writeSuccess("Lock file is valid \u2705", config);
63
+ chunk3MTHCLGM_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
- chunkDDGJVTT5_cjs.writeError(
68
+ chunk3MTHCLGM_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
- chunkDDGJVTT5_cjs.exitWithError(config);
73
+ chunk3MTHCLGM_cjs.exitWithError(config);
74
74
  }
75
75
  chunkCIJVSMK2_cjs.run(config, "git lfs pre-push origin");
76
- chunkDDGJVTT5_cjs.exitWithSuccess(config);
76
+ chunk3MTHCLGM_cjs.exitWithSuccess(config);
77
77
  } catch (error) {
78
- chunkDDGJVTT5_cjs.writeFatal(
78
+ chunk3MTHCLGM_cjs.writeFatal(
79
79
  `A fatal error occurred while running the program: ${error.message}`,
80
80
  config
81
81
  );
82
- chunkDDGJVTT5_cjs.exitWithError(config);
82
+ chunk3MTHCLGM_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-NRQQ6RND.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, writeSuccess, exitWithSuccess, writeFatal } from './chunk-7FHPOB4N.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 chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
5
+ var chunk3MTHCLGM_cjs = require('./chunk-3MTHCLGM.cjs');
6
6
 
7
7
  // bin/prepare.ts
8
8
  void (async () => {
9
- const config = await chunkDDGJVTT5_cjs.getConfig();
9
+ const config = await chunk3MTHCLGM_cjs.getConfig();
10
10
  try {
11
- chunkDDGJVTT5_cjs.handleProcess(config);
12
- chunkDDGJVTT5_cjs.writeInfo("Running prepare hook...", config);
11
+ chunk3MTHCLGM_cjs.handleProcess(config);
12
+ chunk3MTHCLGM_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
- chunkDDGJVTT5_cjs.exitWithSuccess(config);
16
+ chunk3MTHCLGM_cjs.exitWithSuccess(config);
17
17
  } catch (error) {
18
- chunkDDGJVTT5_cjs.writeFatal(
18
+ chunk3MTHCLGM_cjs.writeFatal(
19
19
  `A fatal error occurred while running the program: ${error.message}`,
20
20
  config
21
21
  );
22
- chunkDDGJVTT5_cjs.exitWithError(config);
22
+ chunk3MTHCLGM_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-NRQQ6RND.js';
3
+ import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-7FHPOB4N.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 chunkDDGJVTT5_cjs = require('./chunk-DDGJVTT5.cjs');
5
+ var chunk3MTHCLGM_cjs = require('./chunk-3MTHCLGM.cjs');
6
6
 
7
7
  // bin/version-warning.ts
8
8
  void (async () => {
9
- const config = await chunkDDGJVTT5_cjs.getConfig();
9
+ const config = await chunk3MTHCLGM_cjs.getConfig();
10
10
  try {
11
- chunkDDGJVTT5_cjs.handleProcess(config);
11
+ chunk3MTHCLGM_cjs.handleProcess(config);
12
12
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv.slice(1));
13
13
  } catch (error) {
14
- chunkDDGJVTT5_cjs.writeFatal(
14
+ chunk3MTHCLGM_cjs.writeFatal(
15
15
  `A fatal error occurred while running the program: ${error.message}`,
16
16
  config
17
17
  );
18
- chunkDDGJVTT5_cjs.exitWithError(config);
18
+ chunk3MTHCLGM_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-NRQQ6RND.js';
3
+ import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-7FHPOB4N.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.113.23",
3
+ "version": "2.113.24",
4
4
  "type": "module",
5
5
  "description": "Tools for managing Git repositories within a Nx workspace.",
6
6
  "repository": {
@@ -221,8 +221,8 @@
221
221
  "@inquirer/prompts": "7.2.1",
222
222
  "@nx/devkit": "^21.3.10",
223
223
  "@nx/js": "^21.3.10",
224
- "@storm-software/config": "^1.125.21",
225
- "@storm-software/config-tools": "^1.176.23",
224
+ "@storm-software/config": "^1.125.22",
225
+ "@storm-software/config-tools": "^1.176.24",
226
226
  "@textlint/ast-node-types": "14.4.2",
227
227
  "@textlint/markdown-to-ast": "14.4.2",
228
228
  "anchor-markdown-header": "0.7.0",
@@ -251,5 +251,5 @@
251
251
  "tsup": "8.4.0"
252
252
  },
253
253
  "publishConfig": { "access": "public" },
254
- "gitHead": "a4728ac16328228608f32db774e1968a9835b6e1"
254
+ "gitHead": "f63566d09672df3e8f30ec67936afaad49ebd749"
255
255
  }