@storm-software/git-tools 2.115.6 → 2.115.7

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.
@@ -1891,10 +1891,10 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1891
1891
  };
1892
1892
  inst.clone = (_def, params) => clone(inst, _def, params);
1893
1893
  inst.brand = () => inst;
1894
- inst.register = (reg, meta) => {
1894
+ inst.register = ((reg, meta) => {
1895
1895
  reg.add(inst, meta);
1896
1896
  return inst;
1897
- };
1897
+ });
1898
1898
  });
1899
1899
  var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
1900
1900
  $ZodString.init(inst, def);
@@ -3083,7 +3083,7 @@ var getConfigEnv = () => {
3083
3083
  support: process.env[`${prefix}SUPPORT`] || void 0,
3084
3084
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
3085
3085
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
3086
- configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
3086
+ configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? correctPaths(process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
3087
3087
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
3088
3088
  directories: {
3089
3089
  cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
@@ -3146,7 +3146,7 @@ var getConfigEnv = () => {
3146
3146
  config2.licensing = `${config2.homepage}/docs`;
3147
3147
  }
3148
3148
  }
3149
- const serializedConfig = process.env[`${prefix}CONFIG`];
3149
+ const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
3150
3150
  if (serializedConfig) {
3151
3151
  const parsed = JSON.parse(serializedConfig);
3152
3152
  config2 = {
@@ -3378,7 +3378,9 @@ var setConfigEnv = (config2) => {
3378
3378
  process.env.LANG = config2.locale ? `${config2.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
3379
3379
  }
3380
3380
  if (config2.configFile) {
3381
- process.env[`${prefix}CONFIG_FILE`] = correctPaths(config2.configFile);
3381
+ process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = correctPaths(
3382
+ config2.configFile
3383
+ );
3382
3384
  }
3383
3385
  if (config2.workspaceRoot) {
3384
3386
  process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config2.workspaceRoot);
@@ -3482,7 +3484,7 @@ var setConfigEnv = (config2) => {
3482
3484
  config2.skipConfigLogging
3483
3485
  );
3484
3486
  }
3485
- process.env[`${prefix}CONFIG`] = JSON.stringify(config2);
3487
+ process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config2);
3486
3488
  for (const key of Object.keys(config2.extensions ?? {})) {
3487
3489
  if (config2.extensions[key] && Object.keys(config2.extensions[key])) {
3488
3490
  setExtensionEnv(key, config2.extensions[key]);
@@ -1897,10 +1897,10 @@ var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1897
1897
  };
1898
1898
  inst.clone = (_def, params) => clone(inst, _def, params);
1899
1899
  inst.brand = () => inst;
1900
- inst.register = (reg, meta) => {
1900
+ inst.register = ((reg, meta) => {
1901
1901
  reg.add(inst, meta);
1902
1902
  return inst;
1903
- };
1903
+ });
1904
1904
  });
1905
1905
  var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
1906
1906
  $ZodString.init(inst, def);
@@ -3089,7 +3089,7 @@ var getConfigEnv = () => {
3089
3089
  support: process.env[`${prefix}SUPPORT`] || void 0,
3090
3090
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
3091
3091
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
3092
- configFile: process.env[`${prefix}CONFIG_FILE`] ? correctPaths(process.env[`${prefix}CONFIG_FILE`]) : void 0,
3092
+ configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? correctPaths(process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
3093
3093
  workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? correctPaths(process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
3094
3094
  directories: {
3095
3095
  cache: process.env[`${prefix}CACHE_DIR`] ? correctPaths(process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? correctPaths(process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
@@ -3152,7 +3152,7 @@ var getConfigEnv = () => {
3152
3152
  config2.licensing = `${config2.homepage}/docs`;
3153
3153
  }
3154
3154
  }
3155
- const serializedConfig = process.env[`${prefix}CONFIG`];
3155
+ const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
3156
3156
  if (serializedConfig) {
3157
3157
  const parsed = JSON.parse(serializedConfig);
3158
3158
  config2 = {
@@ -3384,7 +3384,9 @@ var setConfigEnv = (config2) => {
3384
3384
  process.env.LANG = config2.locale ? `${config2.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
3385
3385
  }
3386
3386
  if (config2.configFile) {
3387
- process.env[`${prefix}CONFIG_FILE`] = correctPaths(config2.configFile);
3387
+ process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = correctPaths(
3388
+ config2.configFile
3389
+ );
3388
3390
  }
3389
3391
  if (config2.workspaceRoot) {
3390
3392
  process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config2.workspaceRoot);
@@ -3488,7 +3490,7 @@ var setConfigEnv = (config2) => {
3488
3490
  config2.skipConfigLogging
3489
3491
  );
3490
3492
  }
3491
- process.env[`${prefix}CONFIG`] = JSON.stringify(config2);
3493
+ process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config2);
3492
3494
  for (const key of Object.keys(config2.extensions ?? {})) {
3493
3495
  if (config2.extensions[key] && Object.keys(config2.extensions[key])) {
3494
3496
  setExtensionEnv(key, config2.extensions[key]);
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 chunkOYO5BO7W_cjs = require('./chunk-OYO5BO7W.cjs');
5
+ var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.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
- chunkOYO5BO7W_cjs.writeInfo(
918
+ chunkXH6F7XTV_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 = chunkOYO5BO7W_cjs.joinPaths(
926
+ const commitFile = chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.writeWarning(
943
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
949
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.writeWarning(
953
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.writeWarning(
961
+ chunkXH6F7XTV_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 = chunkOYO5BO7W_cjs.defu(
974
+ const commitlintConfig = chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.writeSuccess(`Commit was processing completed successfully!`, config);
984
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.writeInfo(`Using custom commit config file: ${commitizenFile}`, config);
1056
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.defu(commitizenConfig ?? {}, DEFAULT_COMMIT_CONFIG),
1063
+ chunkXH6F7XTV_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 = chunkOYO5BO7W_cjs.joinPaths(project.root, "package.json");
1119
+ const packageJsonPath = chunkXH6F7XTV_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 chunkOYO5BO7W_cjs.getConfig();
1196
+ const config = await chunkXH6F7XTV_cjs.getConfig();
1197
1197
  const state = await createState(config, commitizenFile);
1198
1198
  if (dryRun) {
1199
- chunkOYO5BO7W_cjs.writeInfo("Running in dry mode.", config);
1199
+ chunkXH6F7XTV_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 = chunkOYO5BO7W_cjs.joinPaths(getGitDir(), "COMMIT_EDITMSG");
1209
+ const commitMsgFile = chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.writeDebug(
1222
+ chunkXH6F7XTV_cjs.writeDebug(
1223
1223
  `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`,
1224
1224
  config
1225
1225
  );
1226
- chunkOYO5BO7W_cjs.writeDebug(`Message [dry-run]: ${message}`, config);
1226
+ chunkXH6F7XTV_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);
@@ -2255,7 +2255,7 @@ async function generateChangelogContent(releaseVersion, filepath, newContent, cu
2255
2255
  const header = await prettier.format(
2256
2256
  `![${(typeof workspaceConfig?.release.banner === "string" ? workspaceConfig.organization ? titleCase(
2257
2257
  typeof workspaceConfig.organization === "string" ? workspaceConfig.organization : workspaceConfig.organization.name
2258
- ) : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkOYO5BO7W_cjs.STORM_DEFAULT_RELEASE_BANNER})
2258
+ ) : void 0 : workspaceConfig?.release.banner.alt) || "Branded release banner image"}](${bannerUrl || chunkXH6F7XTV_cjs.STORM_DEFAULT_RELEASE_BANNER})
2259
2259
 
2260
2260
  # Changelog ${project || workspaceConfig?.name ? "for" : ""}${workspaceConfig?.name ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${workspaceConfig?.name ? " -" : ""} ${titleCase(project)}` : ""}
2261
2261
 
@@ -2460,7 +2460,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer__default.def
2460
2460
  };
2461
2461
  }
2462
2462
  async render() {
2463
- this.workspaceConfig = await chunkOYO5BO7W_cjs.getWorkspaceConfig();
2463
+ this.workspaceConfig = await chunkXH6F7XTV_cjs.getWorkspaceConfig();
2464
2464
  return await super.render();
2465
2465
  }
2466
2466
  preprocessChanges() {
@@ -2771,7 +2771,7 @@ async function createOrUpdateGithubReleaseInternal(githubRequestConfig, release,
2771
2771
  if (!shouldContinueInGitHub) {
2772
2772
  return;
2773
2773
  }
2774
- const open = chunkOYO5BO7W_cjs.__require("open");
2774
+ const open = chunkXH6F7XTV_cjs.__require("open");
2775
2775
  await open(result.url).then(() => {
2776
2776
  console.info(
2777
2777
  `
@@ -2884,7 +2884,7 @@ async function resolveTokenData(hostname) {
2884
2884
  );
2885
2885
  if (fs$1.existsSync(ghCLIPath)) {
2886
2886
  const yamlContents = await fs$1.promises.readFile(ghCLIPath, "utf8");
2887
- const { load } = chunkOYO5BO7W_cjs.__require("@zkochan/js-yaml");
2887
+ const { load } = chunkXH6F7XTV_cjs.__require("@zkochan/js-yaml");
2888
2888
  const ghCLIConfig = load(yamlContents);
2889
2889
  if (ghCLIConfig[hostname]) {
2890
2890
  if (ghCLIConfig[hostname].oauth_token) {
@@ -2998,7 +2998,7 @@ async function isUserAnOrganizationMember(userId, config, remoteName = "origin")
2998
2998
  // src/release/changelog.ts
2999
2999
  function createAPI(overrideReleaseConfig) {
3000
3000
  return async function releaseChangelog(args) {
3001
- const workspaceConfig = await chunkOYO5BO7W_cjs.getWorkspaceConfig();
3001
+ const workspaceConfig = await chunkXH6F7XTV_cjs.getWorkspaceConfig();
3002
3002
  const projectGraph$1 = await projectGraph.createProjectGraphAsync({ exitOnError: true });
3003
3003
  const nxJson$1 = nxJson.readNxJson();
3004
3004
  const userProvidedReleaseConfig = deepMergeJson.deepMergeJson(
@@ -3699,7 +3699,7 @@ async function generateChangelogForWorkspace({
3699
3699
  workspaceChangelogVersion,
3700
3700
  changes
3701
3701
  }) {
3702
- const workspaceConfig = await chunkOYO5BO7W_cjs.getWorkspaceConfig();
3702
+ const workspaceConfig = await chunkXH6F7XTV_cjs.getWorkspaceConfig();
3703
3703
  if (!workspaceConfig) {
3704
3704
  throw new Error(
3705
3705
  `Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
@@ -3813,7 +3813,7 @@ async function generateChangelogForProjects({
3813
3813
  nxReleaseConfig,
3814
3814
  projectToAdditionalDependencyBumps
3815
3815
  }) {
3816
- const workspaceConfig = await chunkOYO5BO7W_cjs.getWorkspaceConfig();
3816
+ const workspaceConfig = await chunkXH6F7XTV_cjs.getWorkspaceConfig();
3817
3817
  if (!workspaceConfig) {
3818
3818
  throw new Error(
3819
3819
  `Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`
@@ -4118,7 +4118,7 @@ var runRelease = async (config, options) => {
4118
4118
  throw new Error("The `GITHUB_ACTOR` environment variable is not set.");
4119
4119
  }
4120
4120
  if (!await isUserAnOrganizationMember(process.env.GITHUB_ACTOR, config)) {
4121
- chunkOYO5BO7W_cjs.writeFatal(
4121
+ chunkXH6F7XTV_cjs.writeFatal(
4122
4122
  "You must be a member of the Storm Software organization to run the release process.",
4123
4123
  config
4124
4124
  );
@@ -4135,12 +4135,12 @@ var runRelease = async (config, options) => {
4135
4135
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
4136
4136
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
4137
4137
  process.env.NPM_CONFIG_PROVENANCE = "true";
4138
- chunkOYO5BO7W_cjs.writeDebug("Creating workspace Project Graph data...", config);
4138
+ chunkXH6F7XTV_cjs.writeDebug("Creating workspace Project Graph data...", config);
4139
4139
  const nxJson = nxJson_js.readNxJson();
4140
- chunkOYO5BO7W_cjs.writeDebug("Reading in the workspaces release configuration", config);
4140
+ chunkXH6F7XTV_cjs.writeDebug("Reading in the workspaces release configuration", config);
4141
4141
  const to = options.head || process.env.NX_HEAD;
4142
4142
  const from = options.base || process.env.NX_BASE;
4143
- chunkOYO5BO7W_cjs.writeDebug(
4143
+ chunkXH6F7XTV_cjs.writeDebug(
4144
4144
  `Using the following Git SHAs to determine the release content:
4145
4145
  - From: ${from}
4146
4146
  - To: ${to}
@@ -4151,28 +4151,28 @@ var runRelease = async (config, options) => {
4151
4151
  nxJson.release.groups = Object.keys(nxJson.release.groups).reduce(
4152
4152
  (ret, groupName) => {
4153
4153
  const groupConfig = nxJson.release?.groups?.[groupName];
4154
- ret[groupName] = chunkOYO5BO7W_cjs.defu(groupConfig, DEFAULT_RELEASE_GROUP_CONFIG);
4154
+ ret[groupName] = chunkXH6F7XTV_cjs.defu(groupConfig, DEFAULT_RELEASE_GROUP_CONFIG);
4155
4155
  return ret;
4156
4156
  },
4157
4157
  {}
4158
4158
  );
4159
4159
  }
4160
- const nxReleaseConfig = chunkOYO5BO7W_cjs.defu(
4160
+ const nxReleaseConfig = chunkXH6F7XTV_cjs.defu(
4161
4161
  nxJson.release,
4162
4162
  DEFAULT_RELEASE_CONFIG
4163
4163
  );
4164
- chunkOYO5BO7W_cjs.writeInfo(
4164
+ chunkXH6F7XTV_cjs.writeInfo(
4165
4165
  "Using the following `nx.json` release configuration values",
4166
4166
  config
4167
4167
  );
4168
- chunkOYO5BO7W_cjs.writeInfo(nxReleaseConfig, config);
4168
+ chunkXH6F7XTV_cjs.writeInfo(nxReleaseConfig, config);
4169
4169
  const releaseVersion = version_js.createAPI(nxReleaseConfig);
4170
4170
  const releaseChangelog = createAPI(nxReleaseConfig);
4171
4171
  const releasePublish = publish_js.createAPI(nxReleaseConfig);
4172
- chunkOYO5BO7W_cjs.writeDebug("Determining the current release versions...", config);
4172
+ chunkXH6F7XTV_cjs.writeDebug("Determining the current release versions...", config);
4173
4173
  const { workspaceVersion, projectsVersionData } = await releaseVersion({
4174
4174
  dryRun: false,
4175
- verbose: chunkOYO5BO7W_cjs.isVerbose(config.logLevel),
4175
+ verbose: chunkXH6F7XTV_cjs.isVerbose(config.logLevel),
4176
4176
  preid: config.preid,
4177
4177
  deleteVersionPlans: false,
4178
4178
  stageChanges: true,
@@ -4183,15 +4183,15 @@ var runRelease = async (config, options) => {
4183
4183
  version: nxReleaseConfig?.projectsRelationship !== "fixed" ? void 0 : workspaceVersion,
4184
4184
  versionData: projectsVersionData,
4185
4185
  dryRun: false,
4186
- verbose: chunkOYO5BO7W_cjs.isVerbose(config.logLevel),
4186
+ verbose: chunkXH6F7XTV_cjs.isVerbose(config.logLevel),
4187
4187
  to,
4188
4188
  from,
4189
4189
  gitCommit: true,
4190
4190
  gitCommitMessage: "release(monorepo): Publish workspace release updates"
4191
4191
  });
4192
- chunkOYO5BO7W_cjs.writeDebug("Tagging commit with git", config);
4192
+ chunkXH6F7XTV_cjs.writeDebug("Tagging commit with git", config);
4193
4193
  if (options.skipPublish) {
4194
- chunkOYO5BO7W_cjs.writeWarning(
4194
+ chunkXH6F7XTV_cjs.writeWarning(
4195
4195
  "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.",
4196
4196
  config
4197
4197
  );
@@ -4200,7 +4200,7 @@ var runRelease = async (config, options) => {
4200
4200
  (key) => projectsVersionData[key]?.newVersion
4201
4201
  );
4202
4202
  if (changedProjects.length > 0) {
4203
- chunkOYO5BO7W_cjs.writeInfo(
4203
+ chunkXH6F7XTV_cjs.writeInfo(
4204
4204
  `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
4205
4205
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
4206
4206
  `,
@@ -4210,7 +4210,7 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
4210
4210
  const result = await releasePublish({
4211
4211
  ...options,
4212
4212
  dryRun: !!options.dryRun,
4213
- verbose: chunkOYO5BO7W_cjs.isVerbose(config.logLevel)
4213
+ verbose: chunkXH6F7XTV_cjs.isVerbose(config.logLevel)
4214
4214
  });
4215
4215
  const failedProjects = Object.keys(result).filter(
4216
4216
  (key) => result[key]?.code && result[key]?.code > 0
@@ -4225,10 +4225,10 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${res
4225
4225
  );
4226
4226
  }
4227
4227
  } else {
4228
- chunkOYO5BO7W_cjs.writeWarning("Skipped publishing packages.", config);
4228
+ chunkXH6F7XTV_cjs.writeWarning("Skipped publishing packages.", config);
4229
4229
  }
4230
4230
  }
4231
- chunkOYO5BO7W_cjs.writeSuccess("Completed the Storm workspace release process!", config);
4231
+ chunkXH6F7XTV_cjs.writeSuccess("Completed the Storm workspace release process!", config);
4232
4232
  };
4233
4233
  async function updatePackageManifests(projectsVersionData, config) {
4234
4234
  let projectGraph;
@@ -4243,7 +4243,7 @@ async function updatePackageManifests(projectsVersionData, config) {
4243
4243
  Object.keys(projectsVersionData).map(async (node) => {
4244
4244
  const projectNode = projectGraph.nodes[node];
4245
4245
  if (!projectNode?.data.root) {
4246
- chunkOYO5BO7W_cjs.writeWarning(
4246
+ chunkXH6F7XTV_cjs.writeWarning(
4247
4247
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
4248
4248
  config
4249
4249
  );
@@ -4251,17 +4251,17 @@ async function updatePackageManifests(projectsVersionData, config) {
4251
4251
  }
4252
4252
  const versionData = projectsVersionData[node];
4253
4253
  if (projectNode?.data.root && versionData && versionData.newVersion !== null) {
4254
- chunkOYO5BO7W_cjs.writeTrace(
4254
+ chunkXH6F7XTV_cjs.writeTrace(
4255
4255
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
4256
4256
  `,
4257
4257
  config
4258
4258
  );
4259
- const projectRoot = chunkOYO5BO7W_cjs.joinPaths(
4259
+ const projectRoot = chunkXH6F7XTV_cjs.joinPaths(
4260
4260
  config.workspaceRoot,
4261
4261
  projectNode.data.root
4262
4262
  );
4263
- const packageJsonPath = chunkOYO5BO7W_cjs.joinPaths(projectRoot, "package.json");
4264
- const cargoTomlPath = chunkOYO5BO7W_cjs.joinPaths(projectRoot, "Cargo.toml");
4263
+ const packageJsonPath = chunkXH6F7XTV_cjs.joinPaths(projectRoot, "package.json");
4264
+ const cargoTomlPath = chunkXH6F7XTV_cjs.joinPaths(projectRoot, "Cargo.toml");
4265
4265
  if (fs$1.existsSync(packageJsonPath)) {
4266
4266
  const packageJsonContent = await fs.readFile(packageJsonPath, "utf8");
4267
4267
  const packageJson = JSON.parse(packageJsonContent);
@@ -4279,7 +4279,7 @@ async function updatePackageManifests(projectsVersionData, config) {
4279
4279
  })
4280
4280
  );
4281
4281
  } else {
4282
- chunkOYO5BO7W_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config);
4282
+ chunkXH6F7XTV_cjs.writeWarning("No project nodes found. Skipping manifest updates.", config);
4283
4283
  }
4284
4284
  }
4285
4285
 
@@ -4287,8 +4287,8 @@ async function updatePackageManifests(projectsVersionData, config) {
4287
4287
  var _config = {};
4288
4288
  function createProgram(config) {
4289
4289
  _config = config;
4290
- chunkOYO5BO7W_cjs.writeInfo("\u26A1 Running Storm Git Tools", config);
4291
- const root = chunkOYO5BO7W_cjs.findWorkspaceRootSafe(process.cwd());
4290
+ chunkXH6F7XTV_cjs.writeInfo("\u26A1 Running Storm Git Tools", config);
4291
+ const root = chunkXH6F7XTV_cjs.findWorkspaceRootSafe(process.cwd());
4292
4292
  process.env.STORM_WORKSPACE_ROOT ??= root;
4293
4293
  process.env.NX_WORKSPACE_ROOT_PATH ??= root;
4294
4294
  if (root) {
@@ -4353,12 +4353,12 @@ async function commitAction({
4353
4353
  dryRun = false
4354
4354
  }) {
4355
4355
  try {
4356
- chunkOYO5BO7W_cjs.writeInfo(
4356
+ chunkXH6F7XTV_cjs.writeInfo(
4357
4357
  `\u26A1 Preparing to commit your changes. Please provide the requested details below...`,
4358
4358
  _config
4359
4359
  );
4360
4360
  await runCommit(config, dryRun);
4361
- chunkOYO5BO7W_cjs.writeSuccess(
4361
+ chunkXH6F7XTV_cjs.writeSuccess(
4362
4362
  `\u{1F389} Storm Commit processing completed successfully!
4363
4363
 
4364
4364
  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}
@@ -4366,7 +4366,7 @@ Note: Please run "pnpm push" to upload these changes to the remote ${_config.nam
4366
4366
  _config
4367
4367
  );
4368
4368
  } catch (error) {
4369
- chunkOYO5BO7W_cjs.writeFatal(
4369
+ chunkXH6F7XTV_cjs.writeFatal(
4370
4370
  `A fatal error occurred while running commit action:
4371
4371
 
4372
4372
  ${error.message}`,
@@ -4377,14 +4377,14 @@ ${error.message}`,
4377
4377
  }
4378
4378
  async function readmeAction(options) {
4379
4379
  try {
4380
- chunkOYO5BO7W_cjs.writeInfo("\u26A1 Formatting the workspace's README.md files", _config);
4380
+ chunkXH6F7XTV_cjs.writeInfo("\u26A1 Formatting the workspace's README.md files", _config);
4381
4381
  await runReadme(options);
4382
- chunkOYO5BO7W_cjs.writeSuccess(
4382
+ chunkXH6F7XTV_cjs.writeSuccess(
4383
4383
  "Formatting of the workspace's README.md files is complete\n",
4384
4384
  _config
4385
4385
  );
4386
4386
  } catch (error) {
4387
- chunkOYO5BO7W_cjs.writeFatal(
4387
+ chunkXH6F7XTV_cjs.writeFatal(
4388
4388
  `A fatal error occurred while running README format action:
4389
4389
 
4390
4390
  ${error.message}`
@@ -4399,7 +4399,7 @@ async function releaseAction({
4399
4399
  dryRun
4400
4400
  }) {
4401
4401
  try {
4402
- chunkOYO5BO7W_cjs.writeInfo(
4402
+ chunkXH6F7XTV_cjs.writeInfo(
4403
4403
  "\u26A1 Running the Storm Release and Publish process on the workspace",
4404
4404
  _config
4405
4405
  );
@@ -4409,9 +4409,9 @@ async function releaseAction({
4409
4409
  base,
4410
4410
  head
4411
4411
  });
4412
- chunkOYO5BO7W_cjs.writeSuccess("Release completed successfully!\n", _config);
4412
+ chunkXH6F7XTV_cjs.writeSuccess("Release completed successfully!\n", _config);
4413
4413
  } catch (error) {
4414
- chunkOYO5BO7W_cjs.writeFatal(
4414
+ chunkXH6F7XTV_cjs.writeFatal(
4415
4415
  `A fatal error occurred while running release action:
4416
4416
 
4417
4417
  ${error.message} ${error.stack ? `
@@ -4429,7 +4429,7 @@ async function commitLintAction({
4429
4429
  file
4430
4430
  }) {
4431
4431
  try {
4432
- chunkOYO5BO7W_cjs.writeInfo(
4432
+ chunkXH6F7XTV_cjs.writeInfo(
4433
4433
  `\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.`,
4434
4434
  _config
4435
4435
  );
@@ -4438,12 +4438,12 @@ async function commitLintAction({
4438
4438
  message,
4439
4439
  file
4440
4440
  });
4441
- chunkOYO5BO7W_cjs.writeSuccess(
4441
+ chunkXH6F7XTV_cjs.writeSuccess(
4442
4442
  "Linting the commit messages completed successfully!\n",
4443
4443
  _config
4444
4444
  );
4445
4445
  } catch (error) {
4446
- chunkOYO5BO7W_cjs.writeFatal(
4446
+ chunkXH6F7XTV_cjs.writeFatal(
4447
4447
  `A fatal error occurred while linting the commit messages:
4448
4448
 
4449
4449
  ${error.message}`,
@@ -4455,18 +4455,18 @@ ${error.message}`,
4455
4455
 
4456
4456
  // bin/git.ts
4457
4457
  void (async () => {
4458
- const config = await chunkOYO5BO7W_cjs.getConfig();
4458
+ const config = await chunkXH6F7XTV_cjs.getConfig();
4459
4459
  try {
4460
- chunkOYO5BO7W_cjs.handleProcess(config);
4460
+ chunkXH6F7XTV_cjs.handleProcess(config);
4461
4461
  const program = createProgram(config);
4462
4462
  await program.parseAsync(process.argv);
4463
- chunkOYO5BO7W_cjs.writeSuccess(
4463
+ chunkXH6F7XTV_cjs.writeSuccess(
4464
4464
  `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`,
4465
4465
  config
4466
4466
  );
4467
- chunkOYO5BO7W_cjs.exitWithSuccess(config);
4467
+ chunkXH6F7XTV_cjs.exitWithSuccess(config);
4468
4468
  } catch (error) {
4469
- chunkOYO5BO7W_cjs.exitWithError(config);
4469
+ chunkXH6F7XTV_cjs.exitWithError(config);
4470
4470
  process.exit(1);
4471
4471
  }
4472
4472
  })();
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, STORM_DEFAULT_RELEASE_BANNER } from './chunk-DKDPGA3P.js';
3
+ import { getConfig, handleProcess, writeSuccess, exitWithSuccess, exitWithError, writeInfo, findWorkspaceRootSafe, writeFatal, joinPaths, writeDebug, defu, isVerbose, writeWarning, getWorkspaceConfig, writeTrace, __require, STORM_DEFAULT_RELEASE_BANNER } from './chunk-7TA5K5AW.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 chunkOYO5BO7W_cjs = require('./chunk-OYO5BO7W.cjs');
6
+ var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
7
7
 
8
8
  // bin/post-checkout.ts
9
9
  void (async () => {
10
- const config = await chunkOYO5BO7W_cjs.getConfig();
10
+ const config = await chunkXH6F7XTV_cjs.getConfig();
11
11
  try {
12
- chunkOYO5BO7W_cjs.handleProcess(config);
13
- chunkOYO5BO7W_cjs.writeInfo("Running post-checkout hook...", config);
12
+ chunkXH6F7XTV_cjs.handleProcess(config);
13
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.writeError(
18
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.exitWithError(config);
23
+ chunkXH6F7XTV_cjs.exitWithError(config);
24
24
  }
25
25
  chunkCIJVSMK2_cjs.run(config, "git lfs post-checkout");
26
- chunkOYO5BO7W_cjs.exitWithSuccess(config);
26
+ chunkXH6F7XTV_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunkOYO5BO7W_cjs.writeFatal(
28
+ chunkXH6F7XTV_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunkOYO5BO7W_cjs.exitWithError(config);
32
+ chunkXH6F7XTV_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-DKDPGA3P.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-7TA5K5AW.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 chunkOYO5BO7W_cjs = require('./chunk-OYO5BO7W.cjs');
6
+ var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
7
7
 
8
8
  // bin/post-commit.ts
9
9
  void (async () => {
10
- const config = await chunkOYO5BO7W_cjs.getConfig();
10
+ const config = await chunkXH6F7XTV_cjs.getConfig();
11
11
  try {
12
- chunkOYO5BO7W_cjs.handleProcess(config);
13
- chunkOYO5BO7W_cjs.writeInfo("Running post-commit hook...", config);
12
+ chunkXH6F7XTV_cjs.handleProcess(config);
13
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.writeError(
18
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.exitWithError(config);
23
+ chunkXH6F7XTV_cjs.exitWithError(config);
24
24
  }
25
25
  chunkCIJVSMK2_cjs.run(config, "git lfs post-commit");
26
- chunkOYO5BO7W_cjs.exitWithSuccess(config);
26
+ chunkXH6F7XTV_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunkOYO5BO7W_cjs.writeFatal(
28
+ chunkXH6F7XTV_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunkOYO5BO7W_cjs.exitWithError(config);
32
+ chunkXH6F7XTV_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-DKDPGA3P.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-7TA5K5AW.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 chunkOYO5BO7W_cjs = require('./chunk-OYO5BO7W.cjs');
6
+ var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
7
7
 
8
8
  // bin/post-merge.ts
9
9
  void (async () => {
10
- const config = await chunkOYO5BO7W_cjs.getConfig();
10
+ const config = await chunkXH6F7XTV_cjs.getConfig();
11
11
  try {
12
- chunkOYO5BO7W_cjs.handleProcess(config);
13
- chunkOYO5BO7W_cjs.writeInfo("Running post-merge hook...", config);
12
+ chunkXH6F7XTV_cjs.handleProcess(config);
13
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.writeError(
18
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.exitWithError(config);
23
+ chunkXH6F7XTV_cjs.exitWithError(config);
24
24
  }
25
25
  chunkCIJVSMK2_cjs.run(config, "git lfs post-merge");
26
- chunkOYO5BO7W_cjs.exitWithSuccess(config);
26
+ chunkXH6F7XTV_cjs.exitWithSuccess(config);
27
27
  } catch (error) {
28
- chunkOYO5BO7W_cjs.writeFatal(
28
+ chunkXH6F7XTV_cjs.writeFatal(
29
29
  `A fatal error occurred while running the program: ${error.message}`,
30
30
  config
31
31
  );
32
- chunkOYO5BO7W_cjs.exitWithError(config);
32
+ chunkXH6F7XTV_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-DKDPGA3P.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-7TA5K5AW.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 chunkOYO5BO7W_cjs = require('./chunk-OYO5BO7W.cjs');
5
+ var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
6
6
 
7
7
  // bin/pre-commit.ts
8
8
  void (async () => {
9
- const config = await chunkOYO5BO7W_cjs.getConfig();
9
+ const config = await chunkXH6F7XTV_cjs.getConfig();
10
10
  try {
11
- chunkOYO5BO7W_cjs.handleProcess(config);
12
- chunkOYO5BO7W_cjs.writeInfo("Running pre-commit hook...", config);
11
+ chunkXH6F7XTV_cjs.handleProcess(config);
12
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.writeError(
15
+ chunkXH6F7XTV_cjs.writeError(
16
16
  "Please regenerate the package lock file before committing...",
17
17
  config
18
18
  );
19
- chunkOYO5BO7W_cjs.exitWithError(config);
19
+ chunkXH6F7XTV_cjs.exitWithError(config);
20
20
  }
21
- chunkOYO5BO7W_cjs.exitWithSuccess(config);
21
+ chunkXH6F7XTV_cjs.exitWithSuccess(config);
22
22
  } catch (error) {
23
- chunkOYO5BO7W_cjs.writeFatal(
23
+ chunkXH6F7XTV_cjs.writeFatal(
24
24
  `A fatal error occurred while running the program: ${error.message}`,
25
25
  config
26
26
  );
27
- chunkOYO5BO7W_cjs.exitWithError(config);
27
+ chunkXH6F7XTV_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-DKDPGA3P.js';
3
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, exitWithSuccess, writeFatal } from './chunk-7TA5K5AW.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 chunkOYO5BO7W_cjs = require('./chunk-OYO5BO7W.cjs');
5
+ var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
6
6
 
7
7
  // bin/pre-install.ts
8
8
  void (async () => {
9
- const config = await chunkOYO5BO7W_cjs.getConfig();
9
+ const config = await chunkXH6F7XTV_cjs.getConfig();
10
10
  try {
11
- chunkOYO5BO7W_cjs.handleProcess(config);
12
- chunkOYO5BO7W_cjs.writeInfo("Running pre-install hook...", config);
11
+ chunkXH6F7XTV_cjs.handleProcess(config);
12
+ chunkXH6F7XTV_cjs.writeInfo("Running pre-install hook...", config);
13
13
  if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
14
- chunkOYO5BO7W_cjs.writeInfo("Skipping pre-install for CI process...", config);
15
- chunkOYO5BO7W_cjs.exitWithSuccess(config);
14
+ chunkXH6F7XTV_cjs.writeInfo("Skipping pre-install for CI process...", config);
15
+ chunkXH6F7XTV_cjs.exitWithSuccess(config);
16
16
  }
17
17
  chunkCIJVSMK2_cjs.run(config, "npx -y only-allow pnpm");
18
- chunkOYO5BO7W_cjs.exitWithSuccess(config);
18
+ chunkXH6F7XTV_cjs.exitWithSuccess(config);
19
19
  } catch (error) {
20
- chunkOYO5BO7W_cjs.writeFatal(
20
+ chunkXH6F7XTV_cjs.writeFatal(
21
21
  `A fatal error occurred while running the program: ${error.message}`,
22
22
  config
23
23
  );
24
- chunkOYO5BO7W_cjs.exitWithError(config);
24
+ chunkXH6F7XTV_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-DKDPGA3P.js';
3
+ import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-7TA5K5AW.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 chunkOYO5BO7W_cjs = require('./chunk-OYO5BO7W.cjs');
6
+ var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.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 chunkOYO5BO7W_cjs.getConfig();
17
+ const config = await chunkXH6F7XTV_cjs.getConfig();
18
18
  try {
19
- chunkOYO5BO7W_cjs.handleProcess(config);
20
- chunkOYO5BO7W_cjs.writeInfo("Running pre-push hook...", config);
19
+ chunkXH6F7XTV_cjs.handleProcess(config);
20
+ chunkXH6F7XTV_cjs.writeInfo("Running pre-push hook...", config);
21
21
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv?.slice(1));
22
- chunkOYO5BO7W_cjs.writeInfo("\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
22
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.writeError("\u274C Lock file validation failed", config);
57
+ chunkXH6F7XTV_cjs.writeError("\u274C Lock file validation failed", config);
58
58
  for (const error of errors) {
59
59
  console.error(error);
60
60
  }
61
- chunkOYO5BO7W_cjs.exitWithError(config);
61
+ chunkXH6F7XTV_cjs.exitWithError(config);
62
62
  }
63
- chunkOYO5BO7W_cjs.writeSuccess("Lock file is valid \u2705", config);
63
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.writeError(
68
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.exitWithError(config);
73
+ chunkXH6F7XTV_cjs.exitWithError(config);
74
74
  }
75
75
  chunkCIJVSMK2_cjs.run(config, "git lfs pre-push origin");
76
- chunkOYO5BO7W_cjs.exitWithSuccess(config);
76
+ chunkXH6F7XTV_cjs.exitWithSuccess(config);
77
77
  } catch (error) {
78
- chunkOYO5BO7W_cjs.writeFatal(
78
+ chunkXH6F7XTV_cjs.writeFatal(
79
79
  `A fatal error occurred while running the program: ${error.message}`,
80
80
  config
81
81
  );
82
- chunkOYO5BO7W_cjs.exitWithError(config);
82
+ chunkXH6F7XTV_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-DKDPGA3P.js';
4
+ import { getConfig, handleProcess, writeInfo, writeError, exitWithError, writeSuccess, exitWithSuccess, writeFatal } from './chunk-7TA5K5AW.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 chunkOYO5BO7W_cjs = require('./chunk-OYO5BO7W.cjs');
5
+ var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
6
6
 
7
7
  // bin/prepare.ts
8
8
  void (async () => {
9
- const config = await chunkOYO5BO7W_cjs.getConfig();
9
+ const config = await chunkXH6F7XTV_cjs.getConfig();
10
10
  try {
11
- chunkOYO5BO7W_cjs.handleProcess(config);
12
- chunkOYO5BO7W_cjs.writeInfo("Running prepare hook...", config);
11
+ chunkXH6F7XTV_cjs.handleProcess(config);
12
+ chunkXH6F7XTV_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
- chunkOYO5BO7W_cjs.exitWithSuccess(config);
16
+ chunkXH6F7XTV_cjs.exitWithSuccess(config);
17
17
  } catch (error) {
18
- chunkOYO5BO7W_cjs.writeFatal(
18
+ chunkXH6F7XTV_cjs.writeFatal(
19
19
  `A fatal error occurred while running the program: ${error.message}`,
20
20
  config
21
21
  );
22
- chunkOYO5BO7W_cjs.exitWithError(config);
22
+ chunkXH6F7XTV_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-DKDPGA3P.js';
3
+ import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-7TA5K5AW.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 chunkOYO5BO7W_cjs = require('./chunk-OYO5BO7W.cjs');
5
+ var chunkXH6F7XTV_cjs = require('./chunk-XH6F7XTV.cjs');
6
6
 
7
7
  // bin/version-warning.ts
8
8
  void (async () => {
9
- const config = await chunkOYO5BO7W_cjs.getConfig();
9
+ const config = await chunkXH6F7XTV_cjs.getConfig();
10
10
  try {
11
- chunkOYO5BO7W_cjs.handleProcess(config);
11
+ chunkXH6F7XTV_cjs.handleProcess(config);
12
12
  chunkSWXHQXUT_cjs.checkPackageVersion(process.argv.slice(1));
13
13
  } catch (error) {
14
- chunkOYO5BO7W_cjs.writeFatal(
14
+ chunkXH6F7XTV_cjs.writeFatal(
15
15
  `A fatal error occurred while running the program: ${error.message}`,
16
16
  config
17
17
  );
18
- chunkOYO5BO7W_cjs.exitWithError(config);
18
+ chunkXH6F7XTV_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-DKDPGA3P.js';
3
+ import { getConfig, handleProcess, writeFatal, exitWithError } from './chunk-7TA5K5AW.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.115.6",
3
+ "version": "2.115.7",
4
4
  "type": "module",
5
5
  "description": "Tools for managing Git repositories within a Nx workspace.",
6
6
  "repository": {
@@ -222,7 +222,7 @@
222
222
  "@nx/devkit": "^21.3.10",
223
223
  "@nx/js": "^21.3.10",
224
224
  "@storm-software/config": "^1.128.6",
225
- "@storm-software/config-tools": "^1.180.6",
225
+ "@storm-software/config-tools": "^1.180.7",
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": "044d535c80810296f217c0bb741e51f164aede5b"
254
+ "gitHead": "4350a6d02b440c658e3bc88c00c8197914c23128"
255
255
  }