@storm-software/git-tools 2.104.3 → 2.104.4

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.
@@ -39678,7 +39678,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
39678
39678
  log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
39679
39679
  build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
39680
39680
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
39681
- var StormConfigSchema = z.object({
39681
+ var stormWorkspaceConfigSchema = z.object({
39682
39682
  $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
39683
39683
  extends: ExtendsSchema.optional(),
39684
39684
  name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
@@ -41470,7 +41470,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
41470
41470
  // ../config-tools/src/create-storm-config.ts
41471
41471
  var _extension_cache = /* @__PURE__ */ new WeakMap();
41472
41472
  var _static_cache = void 0;
41473
- var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
41473
+ var createStormWorkspaceConfig = /* @__PURE__ */ __name(async (extensionName, schema, workspaceRoot, skipLogs = false) => {
41474
41474
  let result;
41475
41475
  if (!_static_cache?.data || !_static_cache?.timestamp || _static_cache.timestamp < Date.now() - 8e3) {
41476
41476
  let _workspaceRoot = workspaceRoot;
@@ -41485,7 +41485,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
41485
41485
  logLevel: "all"
41486
41486
  });
41487
41487
  }
41488
- result = await StormConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
41488
+ result = await stormWorkspaceConfigSchema.parseAsync(defu(configEnv, configFile, defaultConfig));
41489
41489
  result.workspaceRoot ??= _workspaceRoot;
41490
41490
  } else {
41491
41491
  result = _static_cache.data;
@@ -41501,7 +41501,7 @@ var createStormConfig = /* @__PURE__ */ __name(async (extensionName, schema, wor
41501
41501
  data: result
41502
41502
  };
41503
41503
  return result;
41504
- }, "createStormConfig");
41504
+ }, "createStormWorkspaceConfig");
41505
41505
  var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
41506
41506
  const extension_cache_key = {
41507
41507
  extensionName
@@ -41516,22 +41516,26 @@ var createConfigExtension = /* @__PURE__ */ __name((extensionName, schema) => {
41516
41516
  _extension_cache.set(extension_cache_key, extension);
41517
41517
  return extension;
41518
41518
  }, "createConfigExtension");
41519
- var loadStormConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
41520
- const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
41519
+ var loadStormWorkspaceConfig = /* @__PURE__ */ __name(async (workspaceRoot, skipLogs = false) => {
41520
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
41521
41521
  setConfigEnv(config);
41522
41522
  if (!skipLogs && !config.skipConfigLogging) {
41523
41523
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
41524
41524
  ${formatLogMessage(config)}`, config);
41525
41525
  }
41526
41526
  return config;
41527
- }, "loadStormConfig");
41527
+ }, "loadStormWorkspaceConfig");
41528
41528
 
41529
41529
  // ../config-tools/src/get-config.ts
41530
41530
  var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
41531
- return loadStormConfig(workspaceRoot, skipLogs);
41531
+ return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
41532
41532
  }, "getConfig");
41533
- var getWorkspaceConfig = /* @__PURE__ */ __name((skipLogs = false) => {
41534
- return getConfig(void 0, skipLogs);
41533
+ var getWorkspaceConfig = /* @__PURE__ */ __name((skipLogs = false, options = {}) => {
41534
+ let workspaceRoot = options.workspaceRoot;
41535
+ if (!workspaceRoot) {
41536
+ workspaceRoot = findWorkspaceRoot(options.cwd);
41537
+ }
41538
+ return getConfig(workspaceRoot, skipLogs);
41535
41539
  }, "getWorkspaceConfig");
41536
41540
 
41537
41541
  export {
@@ -39678,7 +39678,7 @@ var WorkspaceDirectoryConfigSchema = z.object({
39678
39678
  log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
39679
39679
  build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
39680
39680
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
39681
- var StormConfigSchema = z.object({
39681
+ var stormWorkspaceConfigSchema = z.object({
39682
39682
  $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
39683
39683
  extends: ExtendsSchema.optional(),
39684
39684
  name: z.string().trim().toLowerCase().optional().describe("The name of the service/package/scope using this configuration"),
@@ -41473,7 +41473,7 @@ var setBaseThemeColorConfigEnv = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(v
41473
41473
  // ../config-tools/src/create-storm-config.ts
41474
41474
  var _extension_cache = /* @__PURE__ */ new WeakMap();
41475
41475
  var _static_cache = void 0;
41476
- var createStormConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
41476
+ var createStormWorkspaceConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (extensionName, schema, workspaceRoot, skipLogs = false) => {
41477
41477
  let result;
41478
41478
  if (!_optionalChain([_static_cache, 'optionalAccess', _154 => _154.data]) || !_optionalChain([_static_cache, 'optionalAccess', _155 => _155.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
41479
41479
  let _workspaceRoot = workspaceRoot;
@@ -41488,7 +41488,7 @@ var createStormConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, as
41488
41488
  logLevel: "all"
41489
41489
  });
41490
41490
  }
41491
- result = await StormConfigSchema.parseAsync(_chunkP2CHIYIKcjs.defu.call(void 0, configEnv, configFile, defaultConfig));
41491
+ result = await stormWorkspaceConfigSchema.parseAsync(_chunkP2CHIYIKcjs.defu.call(void 0, configEnv, configFile, defaultConfig));
41492
41492
  result.workspaceRoot ??= _workspaceRoot;
41493
41493
  } else {
41494
41494
  result = _static_cache.data;
@@ -41504,7 +41504,7 @@ var createStormConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, as
41504
41504
  data: result
41505
41505
  };
41506
41506
  return result;
41507
- }, "createStormConfig");
41507
+ }, "createStormWorkspaceConfig");
41508
41508
  var createConfigExtension = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (extensionName, schema) => {
41509
41509
  const extension_cache_key = {
41510
41510
  extensionName
@@ -41519,22 +41519,26 @@ var createConfigExtension = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0
41519
41519
  _extension_cache.set(extension_cache_key, extension);
41520
41520
  return extension;
41521
41521
  }, "createConfigExtension");
41522
- var loadStormConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
41523
- const config = await createStormConfig(void 0, void 0, workspaceRoot, skipLogs);
41522
+ var loadStormWorkspaceConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (workspaceRoot, skipLogs = false) => {
41523
+ const config = await createStormWorkspaceConfig(void 0, void 0, workspaceRoot, skipLogs);
41524
41524
  setConfigEnv(config);
41525
41525
  if (!skipLogs && !config.skipConfigLogging) {
41526
41526
  writeTrace(`\u2699\uFE0F Using Storm Workspace configuration:
41527
41527
  ${formatLogMessage(config)}`, config);
41528
41528
  }
41529
41529
  return config;
41530
- }, "loadStormConfig");
41530
+ }, "loadStormWorkspaceConfig");
41531
41531
 
41532
41532
  // ../config-tools/src/get-config.ts
41533
41533
  var getConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (workspaceRoot, skipLogs = false) => {
41534
- return loadStormConfig(workspaceRoot, skipLogs);
41534
+ return loadStormWorkspaceConfig(workspaceRoot, skipLogs);
41535
41535
  }, "getConfig");
41536
- var getWorkspaceConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (skipLogs = false) => {
41537
- return getConfig(void 0, skipLogs);
41536
+ var getWorkspaceConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (skipLogs = false, options = {}) => {
41537
+ let workspaceRoot = options.workspaceRoot;
41538
+ if (!workspaceRoot) {
41539
+ workspaceRoot = findWorkspaceRoot(options.cwd);
41540
+ }
41541
+ return getConfig(workspaceRoot, skipLogs);
41538
41542
  }, "getWorkspaceConfig");
41539
41543
 
41540
41544
 
package/bin/git.cjs CHANGED
@@ -21,7 +21,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
21
21
 
22
22
 
23
23
 
24
- var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
24
+ var _chunkLWOFPYONcjs = require('./chunk-LWOFPYON.cjs');
25
25
 
26
26
 
27
27
  var _chunkP2CHIYIKcjs = require('./chunk-P2CHIYIK.cjs');
@@ -3264,7 +3264,7 @@ var require_wrap_ansi = _chunkKK4YC43Scjs.__commonJS.call(void 0, {
3264
3264
  _chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
3265
3265
  var stringWidth = require_string_width();
3266
3266
  var stripAnsi2 = require_strip_ansi();
3267
- var ansiStyles2 = _chunkKX7Y62QYcjs.require_ansi_styles.call(void 0, );
3267
+ var ansiStyles2 = _chunkLWOFPYONcjs.require_ansi_styles.call(void 0, );
3268
3268
  var ESCAPES2 = /* @__PURE__ */ new Set([
3269
3269
  "\x1B",
3270
3270
  "\x9B"
@@ -15606,7 +15606,7 @@ var require_node = _chunkKK4YC43Scjs.__commonJS.call(void 0, {
15606
15606
  1
15607
15607
  ];
15608
15608
  try {
15609
- const supportsColor2 = _chunkKX7Y62QYcjs.require_supports_color.call(void 0, );
15609
+ const supportsColor2 = _chunkLWOFPYONcjs.require_supports_color.call(void 0, );
15610
15610
  if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
15611
15611
  exports.colors = [
15612
15612
  20,
@@ -67097,12 +67097,12 @@ var getRuleFromScopeEnum = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0,
67097
67097
  // src/commitlint/run.ts
67098
67098
  var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
67099
67099
  var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (config, params) => {
67100
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
67100
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
67101
67101
  let commitMessage;
67102
67102
  if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
67103
67103
  commitMessage = params.message;
67104
67104
  } else {
67105
- const commitFile = _chunkKX7Y62QYcjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
67105
+ const commitFile = _chunkLWOFPYONcjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
67106
67106
  if (_fs.existsSync.call(void 0, commitFile)) {
67107
67107
  commitMessage = await _asyncOptionalChain([(await _promises.readFile.call(void 0, commitFile, "utf8")), 'optionalAccess', async _81 => _81.trim, 'call', async _82 => _82()]);
67108
67108
  }
@@ -67114,19 +67114,19 @@ var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async
67114
67114
  if (upstreamRemote) {
67115
67115
  const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _83 => _83.split, 'call', _84 => _84(" "), 'access', _85 => _85[0], 'optionalAccess', _86 => _86.trim, 'call', _87 => _87()]);
67116
67116
  if (!upstreamRemoteIdentifier) {
67117
- _chunkKX7Y62QYcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
67117
+ _chunkLWOFPYONcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
67118
67118
  return;
67119
67119
  }
67120
- _chunkKX7Y62QYcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
67120
+ _chunkLWOFPYONcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
67121
67121
  const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
67122
67122
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
67123
67123
  } else {
67124
- _chunkKX7Y62QYcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
67124
+ _chunkLWOFPYONcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
67125
67125
  return;
67126
67126
  }
67127
67127
  commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
67128
67128
  if (!commitMessage) {
67129
- _chunkKX7Y62QYcjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
67129
+ _chunkLWOFPYONcjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
67130
67130
  return;
67131
67131
  }
67132
67132
  }
@@ -67144,7 +67144,7 @@ var runCommitLint = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async
67144
67144
  helpUrl: commitlintConfig.helpUrl
67145
67145
  });
67146
67146
  if (!matchCommit || report.errors.length || report.warnings.length) {
67147
- _chunkKX7Y62QYcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
67147
+ _chunkLWOFPYONcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
67148
67148
  } else {
67149
67149
  let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
67150
67150
  errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
@@ -68338,7 +68338,7 @@ var createState = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (c
68338
68338
  answers: {}
68339
68339
  };
68340
68340
  } else {
68341
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
68341
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
68342
68342
  let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
68343
68343
  if (_optionalChain([commitizenConfig, 'optionalAccess', _93 => _93.default])) {
68344
68344
  commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _94 => _94.default]);
@@ -68379,7 +68379,7 @@ var createState = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (c
68379
68379
  }
68380
68380
  if (project) {
68381
68381
  let description = `${project.name} - ${project.root}`;
68382
- const packageJsonPath = _chunkKX7Y62QYcjs.joinPaths.call(void 0, project.root, "package.json");
68382
+ const packageJsonPath = _chunkLWOFPYONcjs.joinPaths.call(void 0, project.root, "package.json");
68383
68383
  if (await hfs.isFile(packageJsonPath)) {
68384
68384
  const packageJson = await hfs.json(packageJsonPath);
68385
68385
  description = packageJson.description || description;
@@ -68453,10 +68453,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
68453
68453
 
68454
68454
  // src/commit/run.ts
68455
68455
  var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
68456
- const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
68456
+ const config = await _chunkLWOFPYONcjs.getConfig.call(void 0, );
68457
68457
  const state = await createState(config, commitizenFile);
68458
68458
  if (dryRun) {
68459
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running in dry mode.", config);
68459
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Running in dry mode.", config);
68460
68460
  }
68461
68461
  console.log(chalk_template_default`
68462
68462
  {bold.#999999 ----------------------------------------}
@@ -68466,7 +68466,7 @@ var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (com
68466
68466
  `);
68467
68467
  state.answers = await askQuestions(state);
68468
68468
  const message2 = formatCommitMessage(state);
68469
- const commitMsgFile = _chunkKX7Y62QYcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
68469
+ const commitMsgFile = _chunkLWOFPYONcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
68470
68470
  console.log(chalk_template_default`
68471
68471
  {bold.#999999 ----------------------------------------}
68472
68472
 
@@ -68490,8 +68490,8 @@ var runCommit = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (com
68490
68490
  ]);
68491
68491
  const command = (0, import_any_shell_escape.default)(commandItems);
68492
68492
  if (dryRun) {
68493
- _chunkKX7Y62QYcjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
68494
- _chunkKX7Y62QYcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
68493
+ _chunkLWOFPYONcjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
68494
+ _chunkLWOFPYONcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
68495
68495
  } else {
68496
68496
  await _promises2.default.writeFile(commitMsgFile, message2);
68497
68497
  _chunkFNIN2HF7cjs.run.call(void 0, config, command);
@@ -80884,7 +80884,7 @@ var _nxjsonjs = require('nx/src/config/nx-json.js');
80884
80884
 
80885
80885
  // src/release/changelog.ts
80886
80886
  _chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
80887
- var chalk2 = _chunkKK4YC43Scjs.__toESM.call(void 0, _chunkKX7Y62QYcjs.require_source.call(void 0, ), 1);
80887
+ var chalk2 = _chunkKK4YC43Scjs.__toESM.call(void 0, _chunkLWOFPYONcjs.require_source.call(void 0, ), 1);
80888
80888
  var import_enquirer = _chunkKK4YC43Scjs.__toESM.call(void 0, require_enquirer(), 1);
80889
80889
  var import_semver2 = _chunkKK4YC43Scjs.__toESM.call(void 0, require_semver2(), 1);
80890
80890
  var import_tmp = _chunkKK4YC43Scjs.__toESM.call(void 0, require_tmp2(), 1);
@@ -84492,7 +84492,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
84492
84492
  super(config);_class13.prototype.__init27.call(this);;
84493
84493
  }
84494
84494
  async render() {
84495
- this.workspaceConfig = await _chunkKX7Y62QYcjs.getWorkspaceConfig.call(void 0, );
84495
+ this.workspaceConfig = await _chunkLWOFPYONcjs.getWorkspaceConfig.call(void 0, );
84496
84496
  return await super.render();
84497
84497
  }
84498
84498
  preprocessChanges() {
@@ -84666,7 +84666,7 @@ var StormChangelogRenderer = (_class13 = class extends _changelogrenderer2.defau
84666
84666
  // src/release/changelog.ts
84667
84667
  function createAPI(overrideReleaseConfig) {
84668
84668
  return /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async function releaseChangelog(args) {
84669
- const workspaceConfig = await _chunkKX7Y62QYcjs.getWorkspaceConfig.call(void 0, );
84669
+ const workspaceConfig = await _chunkLWOFPYONcjs.getWorkspaceConfig.call(void 0, );
84670
84670
  const projectGraph = await _projectgraph.createProjectGraphAsync.call(void 0, {
84671
84671
  exitOnError: true
84672
84672
  });
@@ -85216,7 +85216,7 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
85216
85216
  }
85217
85217
  _chunkKK4YC43Scjs.__name.call(void 0, applyChangesAndExit, "applyChangesAndExit");
85218
85218
  async function generateChangelogForWorkspace({ tree, args, projectGraph, nxReleaseConfig, workspaceChangelogVersion, changes, commits }) {
85219
- const workspaceConfig = await _chunkKX7Y62QYcjs.getWorkspaceConfig.call(void 0, );
85219
+ const workspaceConfig = await _chunkLWOFPYONcjs.getWorkspaceConfig.call(void 0, );
85220
85220
  if (!workspaceConfig) {
85221
85221
  throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
85222
85222
  }
@@ -85306,7 +85306,7 @@ async function generateChangelogForWorkspace({ tree, args, projectGraph, nxRelea
85306
85306
  }
85307
85307
  _chunkKK4YC43Scjs.__name.call(void 0, generateChangelogForWorkspace, "generateChangelogForWorkspace");
85308
85308
  async function generateChangelogForProjects({ tree, args, changes, projectsVersionData, releaseGroup, projects, nxReleaseConfig, projectToAdditionalDependencyBumps }) {
85309
- const workspaceConfig = await _chunkKX7Y62QYcjs.getWorkspaceConfig.call(void 0, );
85309
+ const workspaceConfig = await _chunkLWOFPYONcjs.getWorkspaceConfig.call(void 0, );
85310
85310
  if (!workspaceConfig) {
85311
85311
  throw new Error(`Unable to determine the Storm workspace config. Please ensure that your storm-workspace.json file is present and valid.`);
85312
85312
  }
@@ -85612,13 +85612,13 @@ var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
85612
85612
  var _paramsjs = require('nx/src/utils/params.js');
85613
85613
  async function releaseVersion(config, args) {
85614
85614
  try {
85615
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running release version command", config);
85615
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Running release version command", config);
85616
85616
  const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
85617
85617
  exitOnError: true
85618
85618
  });
85619
85619
  const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
85620
85620
  const nxJson = _nxjsonjs.readNxJson.call(void 0, );
85621
- const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _242 => _242.workspaceRoot]), () => ( _chunkKX7Y62QYcjs.findWorkspaceRoot.call(void 0, )));
85621
+ const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _242 => _242.workspaceRoot]), () => ( _chunkLWOFPYONcjs.findWorkspaceRoot.call(void 0, )));
85622
85622
  if (args.verbose) {
85623
85623
  process.env.NX_VERBOSE_LOGGING = "true";
85624
85624
  }
@@ -85633,10 +85633,10 @@ async function releaseVersion(config, args) {
85633
85633
  ]);
85634
85634
  throw new Error(`The "release.git" property in nx.json may not be used with the "nx release version" subcommand or programmatic API. Instead, configure git options for subcommands directly with "release.version.git" and "release.changelog.git".`);
85635
85635
  }
85636
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
85636
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
85637
85637
  const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
85638
85638
  if (filterError) {
85639
- _chunkKX7Y62QYcjs.writeError.call(void 0, filterError.title, config);
85639
+ _chunkLWOFPYONcjs.writeError.call(void 0, filterError.title, config);
85640
85640
  throw new Error(filterError.title);
85641
85641
  }
85642
85642
  const tree = new (0, _treejs.FsTree)(workspaceRoot3, true);
@@ -85645,10 +85645,10 @@ async function releaseVersion(config, args) {
85645
85645
  const additionalChangedFiles = /* @__PURE__ */ new Set();
85646
85646
  const generatorCallbacks = [];
85647
85647
  if (_optionalChain([args, 'access', _248 => _248.projects, 'optionalAccess', _249 => _249.length])) {
85648
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
85648
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
85649
85649
  for (const releaseGroup of releaseGroups) {
85650
85650
  const releaseGroupName = releaseGroup.name;
85651
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
85651
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
85652
85652
  const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
85653
85653
  const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
85654
85654
  projectGraph,
@@ -85657,7 +85657,7 @@ async function releaseVersion(config, args) {
85657
85657
  releaseGroupProjectNames
85658
85658
  );
85659
85659
  for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
85660
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
85660
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
85661
85661
  const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
85662
85662
  const generatorData = resolveGeneratorData({
85663
85663
  ...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
@@ -85710,7 +85710,7 @@ async function releaseVersion(config, args) {
85710
85710
  gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _256 => _256.version, 'access', _257 => _257.git, 'access', _258 => _258.commitArgs])
85711
85711
  });
85712
85712
  } else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _259 => _259.version, 'access', _260 => _260.git, 'access', _261 => _261.stageChanges])))) {
85713
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Staging changed files with git", config);
85713
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Staging changed files with git", config);
85714
85714
  await _gitjs.gitAdd.call(void 0, {
85715
85715
  changedFiles: changedFiles2,
85716
85716
  dryRun: args.dryRun,
@@ -85718,7 +85718,7 @@ async function releaseVersion(config, args) {
85718
85718
  });
85719
85719
  }
85720
85720
  if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _262 => _262.version, 'access', _263 => _263.git, 'access', _264 => _264.tag])))) {
85721
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Tagging commit with git", config);
85721
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Tagging commit with git", config);
85722
85722
  for (const tag of gitTagValues2) {
85723
85723
  await gitTag({
85724
85724
  tag,
@@ -85805,7 +85805,7 @@ async function releaseVersion(config, args) {
85805
85805
  gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _280 => _280.version, 'access', _281 => _281.git, 'access', _282 => _282.commitArgs])
85806
85806
  });
85807
85807
  } else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _283 => _283.version, 'access', _284 => _284.git, 'access', _285 => _285.stageChanges])))) {
85808
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Staging changed files with git", config);
85808
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Staging changed files with git", config);
85809
85809
  await _gitjs.gitAdd.call(void 0, {
85810
85810
  changedFiles,
85811
85811
  dryRun: args.dryRun,
@@ -85813,7 +85813,7 @@ async function releaseVersion(config, args) {
85813
85813
  });
85814
85814
  }
85815
85815
  if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _286 => _286.version, 'access', _287 => _287.git, 'access', _288 => _288.tag])))) {
85816
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Tagging commit with git", config);
85816
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Tagging commit with git", config);
85817
85817
  for (const tag of gitTagValues) {
85818
85818
  await gitTag({
85819
85819
  tag,
@@ -85829,8 +85829,8 @@ async function releaseVersion(config, args) {
85829
85829
  projectsVersionData: versionData
85830
85830
  };
85831
85831
  } catch (error) {
85832
- _chunkKX7Y62QYcjs.writeFatal.call(void 0, "A fatal error occurred while determining the Storm Release Version - the process was forced to terminate", config);
85833
- _chunkKX7Y62QYcjs.writeError.call(void 0, `An exception was thrown while determining the Storm Release Version
85832
+ _chunkLWOFPYONcjs.writeFatal.call(void 0, "A fatal error occurred while determining the Storm Release Version - the process was forced to terminate", config);
85833
+ _chunkLWOFPYONcjs.writeError.call(void 0, `An exception was thrown while determining the Storm Release Version
85834
85834
  - Details: ${error.message}
85835
85835
  - Stacktrace: ${error.stack}`, config);
85836
85836
  throw new Error(`An exception was thrown in the Storm Release Version generator's process
@@ -85841,7 +85841,7 @@ async function releaseVersion(config, args) {
85841
85841
  }
85842
85842
  _chunkKK4YC43Scjs.__name.call(void 0, releaseVersion, "releaseVersion");
85843
85843
  async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
85844
- const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _295 => _295.workspaceRoot]), () => ( _chunkKX7Y62QYcjs.findWorkspaceRoot.call(void 0, )));
85844
+ const workspaceRoot3 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _295 => _295.workspaceRoot]), () => ( _chunkLWOFPYONcjs.findWorkspaceRoot.call(void 0, )));
85845
85845
  const generatorOptions = {
85846
85846
  // Always ensure a string to avoid generator schema validation errors
85847
85847
  specifier: _nullishCoalesce(args.specifier, () => ( "")),
@@ -85860,7 +85860,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
85860
85860
  throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
85861
85861
  }
85862
85862
  appendVersionData(versionData, versionResult.data);
85863
- _chunkKX7Y62QYcjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
85863
+ _chunkLWOFPYONcjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
85864
85864
  return versionResult.callback;
85865
85865
  }
85866
85866
  _chunkKK4YC43Scjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
@@ -85868,10 +85868,10 @@ function printAndFlushChanges2(config, tree, isDryRun) {
85868
85868
  const changes = tree.listChanges();
85869
85869
  for (const f of changes) {
85870
85870
  if (f.type === "CREATE") {
85871
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
85871
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
85872
85872
  _printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _296 => _296.content, 'optionalAccess', _297 => _297.toString, 'call', _298 => _298()]) || "");
85873
85873
  } else if (f.type === "UPDATE") {
85874
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
85874
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
85875
85875
  const currentContentsOnDisk = _fs.readFileSync.call(void 0, (0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
85876
85876
  _printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _299 => _299.content, 'optionalAccess', _300 => _300.toString, 'call', _301 => _301()]) || "");
85877
85877
  } else if (f.type === "DELETE") {
@@ -85943,12 +85943,12 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
85943
85943
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
85944
85944
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
85945
85945
  process.env.NPM_CONFIG_PROVENANCE = "true";
85946
- _chunkKX7Y62QYcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
85946
+ _chunkLWOFPYONcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
85947
85947
  const nxJson = _nxjsonjs.readNxJson.call(void 0, );
85948
- _chunkKX7Y62QYcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
85948
+ _chunkLWOFPYONcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
85949
85949
  const to = options.head || process.env.NX_HEAD;
85950
85950
  const from = options.base || process.env.NX_BASE;
85951
- _chunkKX7Y62QYcjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
85951
+ _chunkLWOFPYONcjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
85952
85952
  - From: ${from}
85953
85953
  - To: ${to}
85954
85954
  `, config);
@@ -85960,14 +85960,14 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
85960
85960
  }, {});
85961
85961
  }
85962
85962
  const nxReleaseConfig = _chunkP2CHIYIKcjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
85963
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
85964
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, nxReleaseConfig, config);
85963
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
85964
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, nxReleaseConfig, config);
85965
85965
  const releaseChangelog = createAPI(nxReleaseConfig);
85966
85966
  const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
85967
- _chunkKX7Y62QYcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
85967
+ _chunkLWOFPYONcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
85968
85968
  const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
85969
85969
  dryRun: false,
85970
- verbose: _chunkKX7Y62QYcjs.isVerbose.call(void 0, config.logLevel),
85970
+ verbose: _chunkLWOFPYONcjs.isVerbose.call(void 0, config.logLevel),
85971
85971
  preid: config.preid,
85972
85972
  deleteVersionPlans: false,
85973
85973
  stageChanges: true,
@@ -85979,25 +85979,25 @@ var runRelease = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, async (co
85979
85979
  version: _optionalChain([nxReleaseConfig, 'optionalAccess', _307 => _307.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
85980
85980
  versionData: projectsVersionData,
85981
85981
  dryRun: false,
85982
- verbose: _chunkKX7Y62QYcjs.isVerbose.call(void 0, config.logLevel),
85982
+ verbose: _chunkLWOFPYONcjs.isVerbose.call(void 0, config.logLevel),
85983
85983
  to,
85984
85984
  from,
85985
85985
  gitCommit: true,
85986
85986
  gitCommitMessage: "release(monorepo): Publish workspace release updates"
85987
85987
  });
85988
- _chunkKX7Y62QYcjs.writeDebug.call(void 0, "Tagging commit with git", config);
85988
+ _chunkLWOFPYONcjs.writeDebug.call(void 0, "Tagging commit with git", config);
85989
85989
  if (options.skipPublish) {
85990
- _chunkKX7Y62QYcjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
85990
+ _chunkLWOFPYONcjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
85991
85991
  } else {
85992
85992
  const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _308 => _308[key], 'optionalAccess', _309 => _309.newVersion]));
85993
85993
  if (changedProjects.length > 0) {
85994
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
85994
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
85995
85995
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
85996
85996
  `, config);
85997
85997
  const result2 = await releasePublish({
85998
85998
  ...options,
85999
85999
  dryRun: !!options.dryRun,
86000
- verbose: _chunkKX7Y62QYcjs.isVerbose.call(void 0, config.logLevel)
86000
+ verbose: _chunkLWOFPYONcjs.isVerbose.call(void 0, config.logLevel)
86001
86001
  });
86002
86002
  const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _310 => _310[key], 'optionalAccess', _311 => _311.code]) && _optionalChain([result2, 'access', _312 => _312[key], 'optionalAccess', _313 => _313.code]) > 0);
86003
86003
  if (failedProjects.length > 0) {
@@ -86008,21 +86008,23 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
86008
86008
  `);
86009
86009
  }
86010
86010
  } else {
86011
- _chunkKX7Y62QYcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
86011
+ _chunkLWOFPYONcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
86012
86012
  }
86013
86013
  }
86014
- _chunkKX7Y62QYcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
86014
+ _chunkLWOFPYONcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
86015
86015
  }, "runRelease");
86016
86016
 
86017
86017
  // src/cli/index.ts
86018
86018
  var _config = {};
86019
86019
  function createProgram(config) {
86020
86020
  _config = config;
86021
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
86022
- const root2 = _chunkKX7Y62QYcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
86021
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
86022
+ const root2 = _chunkLWOFPYONcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
86023
86023
  process.env.STORM_WORKSPACE_ROOT ??= root2;
86024
86024
  process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
86025
- root2 && process.chdir(root2);
86025
+ if (root2) {
86026
+ process.chdir(root2);
86027
+ }
86026
86028
  const program2 = new Command("storm-git");
86027
86029
  program2.version("1.0.0", "-v --version", "display CLI version");
86028
86030
  const commitConfig = new Option("--config <file>", "The Commitizen config file path").default("@storm-software/git-tools/commit/config");
@@ -86047,14 +86049,14 @@ function createProgram(config) {
86047
86049
  _chunkKK4YC43Scjs.__name.call(void 0, createProgram, "createProgram");
86048
86050
  async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
86049
86051
  try {
86050
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
86052
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
86051
86053
  await runCommit(config, dryRun);
86052
- _chunkKX7Y62QYcjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
86054
+ _chunkLWOFPYONcjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
86053
86055
 
86054
86056
  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}
86055
86057
  `, _config);
86056
86058
  } catch (error) {
86057
- _chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
86059
+ _chunkLWOFPYONcjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
86058
86060
 
86059
86061
  ${error.message}`, _config);
86060
86062
  throw new Error(error.message, {
@@ -86065,11 +86067,11 @@ ${error.message}`, _config);
86065
86067
  _chunkKK4YC43Scjs.__name.call(void 0, commitAction, "commitAction");
86066
86068
  async function readmeAction(options) {
86067
86069
  try {
86068
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
86070
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
86069
86071
  await runReadme(options);
86070
- _chunkKX7Y62QYcjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
86072
+ _chunkLWOFPYONcjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
86071
86073
  } catch (error) {
86072
- _chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
86074
+ _chunkLWOFPYONcjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
86073
86075
 
86074
86076
  ${error.message}`);
86075
86077
  throw new Error(error.message, {
@@ -86080,16 +86082,16 @@ ${error.message}`);
86080
86082
  _chunkKK4YC43Scjs.__name.call(void 0, readmeAction, "readmeAction");
86081
86083
  async function releaseAction({ project, base, head, dryRun }) {
86082
86084
  try {
86083
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
86085
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
86084
86086
  await runRelease(_config, {
86085
86087
  dryRun,
86086
86088
  project,
86087
86089
  base,
86088
86090
  head
86089
86091
  });
86090
- _chunkKX7Y62QYcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
86092
+ _chunkLWOFPYONcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
86091
86093
  } catch (error) {
86092
- _chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
86094
+ _chunkLWOFPYONcjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
86093
86095
 
86094
86096
  ${error.message} ${error.stack ? `
86095
86097
 
@@ -86103,15 +86105,15 @@ Stacktrace: ${error.stack}` : ""}`, _config);
86103
86105
  _chunkKK4YC43Scjs.__name.call(void 0, releaseAction, "releaseAction");
86104
86106
  async function commitLintAction({ config, message: message2, file }) {
86105
86107
  try {
86106
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, `\u26A1 Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : _config.organization ? _config.organization : "Storm-Software"} repository's commit messages.`, _config);
86108
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, `\u26A1 Linting the ${_config.repository ? _config.repository : _config.namespace ? _config.namespace : _config.name ? _config.name : _config.organization ? _config.organization : "Storm-Software"} repository's commit messages.`, _config);
86107
86109
  await runCommitLint(_config, {
86108
86110
  config,
86109
86111
  message: message2,
86110
86112
  file
86111
86113
  });
86112
- _chunkKX7Y62QYcjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
86114
+ _chunkLWOFPYONcjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
86113
86115
  } catch (error) {
86114
- _chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
86116
+ _chunkLWOFPYONcjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
86115
86117
 
86116
86118
  ${error.message}`, _config);
86117
86119
  throw new Error(error.message, {
@@ -86123,15 +86125,15 @@ _chunkKK4YC43Scjs.__name.call(void 0, commitLintAction, "commitLintAction");
86123
86125
 
86124
86126
  // bin/git.ts
86125
86127
  void (async () => {
86126
- const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
86128
+ const config = await _chunkLWOFPYONcjs.getConfig.call(void 0, );
86127
86129
  try {
86128
- _chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
86130
+ _chunkLWOFPYONcjs.handleProcess.call(void 0, config);
86129
86131
  const program2 = createProgram(config);
86130
86132
  await program2.parseAsync(process.argv);
86131
- _chunkKX7Y62QYcjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
86132
- _chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
86133
+ _chunkLWOFPYONcjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
86134
+ _chunkLWOFPYONcjs.exitWithSuccess.call(void 0, config);
86133
86135
  } catch (error) {
86134
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
86136
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
86135
86137
  process.exit(1);
86136
86138
  }
86137
86139
  })();
package/bin/git.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  writeInfo,
22
22
  writeSuccess,
23
23
  writeWarning
24
- } from "./chunk-YTMPCK35.js";
24
+ } from "./chunk-ENEDM37L.js";
25
25
  import {
26
26
  defu
27
27
  } from "./chunk-5L6OQPTU.js";
@@ -86021,7 +86021,9 @@ function createProgram(config) {
86021
86021
  const root2 = findWorkspaceRootSafe(process.cwd());
86022
86022
  process.env.STORM_WORKSPACE_ROOT ??= root2;
86023
86023
  process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
86024
- root2 && process.chdir(root2);
86024
+ if (root2) {
86025
+ process.chdir(root2);
86026
+ }
86025
86027
  const program2 = new Command("storm-git");
86026
86028
  program2.version("1.0.0", "-v --version", "display CLI version");
86027
86029
  const commitConfig = new Option("--config <file>", "The Commitizen config file path").default("@storm-software/git-tools/commit/config");
@@ -13,7 +13,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
16
+ var _chunkLWOFPYONcjs = require('./chunk-LWOFPYON.cjs');
17
17
  require('./chunk-P2CHIYIK.cjs');
18
18
  require('./chunk-HI7REZLL.cjs');
19
19
  require('./chunk-LUO23224.cjs');
@@ -27,23 +27,23 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
27
27
  // bin/post-checkout.ts
28
28
  _chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
29
29
  void (async () => {
30
- const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
30
+ const config = await _chunkLWOFPYONcjs.getConfig.call(void 0, );
31
31
  try {
32
- _chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
33
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
32
+ _chunkLWOFPYONcjs.handleProcess.call(void 0, config);
33
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
34
34
  _chunkMJ243FGHcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
35
35
  try {
36
36
  _chunkFNIN2HF7cjs.run.call(void 0, config, "git-lfs version");
37
37
  } catch (error) {
38
- _chunkKX7Y62QYcjs.writeError.call(void 0, `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.
38
+ _chunkLWOFPYONcjs.writeError.call(void 0, `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.
39
39
  Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
40
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
40
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
41
41
  }
42
42
  _chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-checkout");
43
- _chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
43
+ _chunkLWOFPYONcjs.exitWithSuccess.call(void 0, config);
44
44
  } catch (error) {
45
- _chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
45
+ _chunkLWOFPYONcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
47
47
  process.exit(1);
48
48
  }
49
49
  })();
@@ -13,7 +13,7 @@ import {
13
13
  writeError,
14
14
  writeFatal,
15
15
  writeInfo
16
- } from "./chunk-YTMPCK35.js";
16
+ } from "./chunk-ENEDM37L.js";
17
17
  import "./chunk-5L6OQPTU.js";
18
18
  import "./chunk-44NY3AUB.js";
19
19
  import "./chunk-7TOVDNAL.js";
@@ -13,7 +13,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
16
+ var _chunkLWOFPYONcjs = require('./chunk-LWOFPYON.cjs');
17
17
  require('./chunk-P2CHIYIK.cjs');
18
18
  require('./chunk-HI7REZLL.cjs');
19
19
  require('./chunk-LUO23224.cjs');
@@ -27,23 +27,23 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
27
27
  // bin/post-commit.ts
28
28
  _chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
29
29
  void (async () => {
30
- const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
30
+ const config = await _chunkLWOFPYONcjs.getConfig.call(void 0, );
31
31
  try {
32
- _chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
33
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running post-commit hook...", config);
32
+ _chunkLWOFPYONcjs.handleProcess.call(void 0, config);
33
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Running post-commit hook...", config);
34
34
  _chunkMJ243FGHcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
35
35
  try {
36
36
  _chunkFNIN2HF7cjs.run.call(void 0, config, "git-lfs version");
37
37
  } catch (error) {
38
- _chunkKX7Y62QYcjs.writeError.call(void 0, `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.
38
+ _chunkLWOFPYONcjs.writeError.call(void 0, `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.
39
39
  Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
40
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
40
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
41
41
  }
42
42
  _chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-commit");
43
- _chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
43
+ _chunkLWOFPYONcjs.exitWithSuccess.call(void 0, config);
44
44
  } catch (error) {
45
- _chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
45
+ _chunkLWOFPYONcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
47
47
  process.exit(1);
48
48
  }
49
49
  })();
@@ -13,7 +13,7 @@ import {
13
13
  writeError,
14
14
  writeFatal,
15
15
  writeInfo
16
- } from "./chunk-YTMPCK35.js";
16
+ } from "./chunk-ENEDM37L.js";
17
17
  import "./chunk-5L6OQPTU.js";
18
18
  import "./chunk-44NY3AUB.js";
19
19
  import "./chunk-7TOVDNAL.js";
@@ -13,7 +13,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
16
+ var _chunkLWOFPYONcjs = require('./chunk-LWOFPYON.cjs');
17
17
  require('./chunk-P2CHIYIK.cjs');
18
18
  require('./chunk-HI7REZLL.cjs');
19
19
  require('./chunk-LUO23224.cjs');
@@ -27,23 +27,23 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
27
27
  // bin/post-merge.ts
28
28
  _chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
29
29
  void (async () => {
30
- const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
30
+ const config = await _chunkLWOFPYONcjs.getConfig.call(void 0, );
31
31
  try {
32
- _chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
33
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running post-merge hook...", config);
32
+ _chunkLWOFPYONcjs.handleProcess.call(void 0, config);
33
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Running post-merge hook...", config);
34
34
  _chunkMJ243FGHcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
35
35
  try {
36
36
  _chunkFNIN2HF7cjs.run.call(void 0, config, "git-lfs version");
37
37
  } catch (error) {
38
- _chunkKX7Y62QYcjs.writeError.call(void 0, `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.
38
+ _chunkLWOFPYONcjs.writeError.call(void 0, `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.
39
39
  Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
40
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
40
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
41
41
  }
42
42
  _chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs post-merge");
43
- _chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
43
+ _chunkLWOFPYONcjs.exitWithSuccess.call(void 0, config);
44
44
  } catch (error) {
45
- _chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
45
+ _chunkLWOFPYONcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
47
47
  process.exit(1);
48
48
  }
49
49
  })();
package/bin/post-merge.js CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  writeError,
14
14
  writeFatal,
15
15
  writeInfo
16
- } from "./chunk-YTMPCK35.js";
16
+ } from "./chunk-ENEDM37L.js";
17
17
  import "./chunk-5L6OQPTU.js";
18
18
  import "./chunk-44NY3AUB.js";
19
19
  import "./chunk-7TOVDNAL.js";
@@ -11,7 +11,7 @@ var _chunkMJ243FGHcjs = require('./chunk-MJ243FGH.cjs');
11
11
 
12
12
 
13
13
 
14
- var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
14
+ var _chunkLWOFPYONcjs = require('./chunk-LWOFPYON.cjs');
15
15
  require('./chunk-P2CHIYIK.cjs');
16
16
  require('./chunk-HI7REZLL.cjs');
17
17
  require('./chunk-LUO23224.cjs');
@@ -25,19 +25,19 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
25
25
  // bin/pre-commit.ts
26
26
  _chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
27
27
  void (async () => {
28
- const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
28
+ const config = await _chunkLWOFPYONcjs.getConfig.call(void 0, );
29
29
  try {
30
- _chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
31
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
30
+ _chunkLWOFPYONcjs.handleProcess.call(void 0, config);
31
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Running pre-commit hook...", config);
32
32
  _chunkMJ243FGHcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
33
33
  if (_chunkMJ243FGHcjs.isPackageVersionChanged.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]))) {
34
- _chunkKX7Y62QYcjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
35
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
34
+ _chunkLWOFPYONcjs.writeError.call(void 0, "Please regenerate the package lock file before committing...", config);
35
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
36
36
  }
37
- _chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
37
+ _chunkLWOFPYONcjs.exitWithSuccess.call(void 0, config);
38
38
  } catch (error) {
39
- _chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
40
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
39
+ _chunkLWOFPYONcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
40
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
41
41
  process.exit(1);
42
42
  }
43
43
  })();
package/bin/pre-commit.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  writeError,
12
12
  writeFatal,
13
13
  writeInfo
14
- } from "./chunk-YTMPCK35.js";
14
+ } from "./chunk-ENEDM37L.js";
15
15
  import "./chunk-5L6OQPTU.js";
16
16
  import "./chunk-44NY3AUB.js";
17
17
  import "./chunk-7TOVDNAL.js";
@@ -9,7 +9,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
12
+ var _chunkLWOFPYONcjs = require('./chunk-LWOFPYON.cjs');
13
13
  require('./chunk-P2CHIYIK.cjs');
14
14
  require('./chunk-HI7REZLL.cjs');
15
15
  require('./chunk-LUO23224.cjs');
@@ -23,19 +23,19 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
23
23
  // bin/pre-install.ts
24
24
  _chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
25
25
  void (async () => {
26
- const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
26
+ const config = await _chunkLWOFPYONcjs.getConfig.call(void 0, );
27
27
  try {
28
- _chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
29
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running pre-install hook...", config);
28
+ _chunkLWOFPYONcjs.handleProcess.call(void 0, config);
29
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Running pre-install hook...", config);
30
30
  if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
31
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
32
- _chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
31
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Skipping pre-install for CI process...", config);
32
+ _chunkLWOFPYONcjs.exitWithSuccess.call(void 0, config);
33
33
  }
34
34
  _chunkFNIN2HF7cjs.run.call(void 0, config, "npx -y only-allow pnpm");
35
- _chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
35
+ _chunkLWOFPYONcjs.exitWithSuccess.call(void 0, config);
36
36
  } catch (error) {
37
- _chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
38
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
37
+ _chunkLWOFPYONcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
38
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
39
39
  process.exit(1);
40
40
  }
41
41
  })();
@@ -9,7 +9,7 @@ import {
9
9
  handleProcess,
10
10
  writeFatal,
11
11
  writeInfo
12
- } from "./chunk-YTMPCK35.js";
12
+ } from "./chunk-ENEDM37L.js";
13
13
  import "./chunk-5L6OQPTU.js";
14
14
  import "./chunk-44NY3AUB.js";
15
15
  import "./chunk-7TOVDNAL.js";
package/bin/pre-push.cjs CHANGED
@@ -14,7 +14,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
14
14
 
15
15
 
16
16
 
17
- var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
17
+ var _chunkLWOFPYONcjs = require('./chunk-LWOFPYON.cjs');
18
18
  require('./chunk-P2CHIYIK.cjs');
19
19
  require('./chunk-HI7REZLL.cjs');
20
20
  require('./chunk-LUO23224.cjs');
@@ -31,12 +31,12 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
31
31
  var _promises = require('fs/promises');
32
32
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
33
33
  void (async () => {
34
- const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
34
+ const config = await _chunkLWOFPYONcjs.getConfig.call(void 0, );
35
35
  try {
36
- _chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
37
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running pre-push hook...", config);
36
+ _chunkLWOFPYONcjs.handleProcess.call(void 0, config);
37
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Running pre-push hook...", config);
38
38
  _chunkMJ243FGHcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
39
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
39
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "\u{1F512}\u{1F512}\u{1F512} Validating lock files \u{1F512}\u{1F512}\u{1F512}\n", config);
40
40
  const errors = [];
41
41
  if (_fs2.default.existsSync(_path2.default.join(_nullishCoalesce(config.workspaceRoot, () => ( "./")), "package-lock.json"))) {
42
42
  errors.push('Invalid occurrence of "package-lock.json" file. Please remove it and use only "pnpm-lock.yaml"');
@@ -58,26 +58,26 @@ void (async () => {
58
58
  errors.push('The "pnpm-lock.yaml" does not exist or cannot be read');
59
59
  }
60
60
  if (errors.length > 0) {
61
- _chunkKX7Y62QYcjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
61
+ _chunkLWOFPYONcjs.writeError.call(void 0, "\u274C Lock file validation failed", config);
62
62
  for (const error of errors) {
63
63
  console.error(error);
64
64
  }
65
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
65
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
66
66
  }
67
- _chunkKX7Y62QYcjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
67
+ _chunkLWOFPYONcjs.writeSuccess.call(void 0, "Lock file is valid \u2705", config);
68
68
  _chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs pre-push origin");
69
69
  try {
70
70
  _chunkFNIN2HF7cjs.run.call(void 0, config, "git-lfs version");
71
71
  } catch (error) {
72
- _chunkKX7Y62QYcjs.writeError.call(void 0, `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.
72
+ _chunkLWOFPYONcjs.writeError.call(void 0, `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.
73
73
  Error: ${_optionalChain([error, 'optionalAccess', _4 => _4.message])}`, config);
74
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
74
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
75
75
  }
76
76
  _chunkFNIN2HF7cjs.run.call(void 0, config, "git lfs pre-push origin");
77
- _chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
77
+ _chunkLWOFPYONcjs.exitWithSuccess.call(void 0, config);
78
78
  } catch (error) {
79
- _chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
80
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
79
+ _chunkLWOFPYONcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
80
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
81
81
  process.exit(1);
82
82
  }
83
83
  })();
package/bin/pre-push.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  writeFatal,
15
15
  writeInfo,
16
16
  writeSuccess
17
- } from "./chunk-YTMPCK35.js";
17
+ } from "./chunk-ENEDM37L.js";
18
18
  import "./chunk-5L6OQPTU.js";
19
19
  import "./chunk-44NY3AUB.js";
20
20
  import "./chunk-7TOVDNAL.js";
package/bin/prepare.cjs CHANGED
@@ -9,7 +9,7 @@ var _chunkFNIN2HF7cjs = require('./chunk-FNIN2HF7.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
12
+ var _chunkLWOFPYONcjs = require('./chunk-LWOFPYON.cjs');
13
13
  require('./chunk-P2CHIYIK.cjs');
14
14
  require('./chunk-HI7REZLL.cjs');
15
15
  require('./chunk-LUO23224.cjs');
@@ -23,17 +23,17 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
23
23
  // bin/prepare.ts
24
24
  _chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
25
25
  void (async () => {
26
- const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
26
+ const config = await _chunkLWOFPYONcjs.getConfig.call(void 0, );
27
27
  try {
28
- _chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
29
- _chunkKX7Y62QYcjs.writeInfo.call(void 0, "Running prepare hook...", config);
28
+ _chunkLWOFPYONcjs.handleProcess.call(void 0, config);
29
+ _chunkLWOFPYONcjs.writeInfo.call(void 0, "Running prepare hook...", config);
30
30
  if (!process.env.CI && !process.env.STORM_CI) {
31
31
  _chunkFNIN2HF7cjs.run.call(void 0, config, "lefthook install");
32
32
  }
33
- _chunkKX7Y62QYcjs.exitWithSuccess.call(void 0, config);
33
+ _chunkLWOFPYONcjs.exitWithSuccess.call(void 0, config);
34
34
  } catch (error) {
35
- _chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
36
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
35
+ _chunkLWOFPYONcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
36
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
37
37
  process.exit(1);
38
38
  }
39
39
  })();
package/bin/prepare.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  handleProcess,
10
10
  writeFatal,
11
11
  writeInfo
12
- } from "./chunk-YTMPCK35.js";
12
+ } from "./chunk-ENEDM37L.js";
13
13
  import "./chunk-5L6OQPTU.js";
14
14
  import "./chunk-44NY3AUB.js";
15
15
  import "./chunk-7TOVDNAL.js";
@@ -7,7 +7,7 @@ var _chunkMJ243FGHcjs = require('./chunk-MJ243FGH.cjs');
7
7
 
8
8
 
9
9
 
10
- var _chunkKX7Y62QYcjs = require('./chunk-KX7Y62QY.cjs');
10
+ var _chunkLWOFPYONcjs = require('./chunk-LWOFPYON.cjs');
11
11
  require('./chunk-P2CHIYIK.cjs');
12
12
  require('./chunk-HI7REZLL.cjs');
13
13
  require('./chunk-LUO23224.cjs');
@@ -21,13 +21,13 @@ var _chunkKK4YC43Scjs = require('./chunk-KK4YC43S.cjs');
21
21
  // bin/version-warning.ts
22
22
  _chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
23
23
  void (async () => {
24
- const config = await _chunkKX7Y62QYcjs.getConfig.call(void 0, );
24
+ const config = await _chunkLWOFPYONcjs.getConfig.call(void 0, );
25
25
  try {
26
- _chunkKX7Y62QYcjs.handleProcess.call(void 0, config);
26
+ _chunkLWOFPYONcjs.handleProcess.call(void 0, config);
27
27
  _chunkMJ243FGHcjs.checkPackageVersion.call(void 0, process.argv.slice(1));
28
28
  } catch (error) {
29
- _chunkKX7Y62QYcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
30
- _chunkKX7Y62QYcjs.exitWithError.call(void 0, config);
29
+ _chunkLWOFPYONcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
30
+ _chunkLWOFPYONcjs.exitWithError.call(void 0, config);
31
31
  process.exit(1);
32
32
  }
33
33
  })();
@@ -7,7 +7,7 @@ import {
7
7
  getConfig,
8
8
  handleProcess,
9
9
  writeFatal
10
- } from "./chunk-YTMPCK35.js";
10
+ } from "./chunk-ENEDM37L.js";
11
11
  import "./chunk-5L6OQPTU.js";
12
12
  import "./chunk-44NY3AUB.js";
13
13
  import "./chunk-7TOVDNAL.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.104.3",
3
+ "version": "2.104.4",
4
4
  "type": "module",
5
5
  "description": "Tools for managing Git repositories within a Nx workspace.",
6
6
  "repository": {