@storm-software/git-tools 2.88.5 → 2.88.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.
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-2.88.4-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-2.88.6-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -58917,6 +58917,7 @@ var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
58917
58917
  }, "getConfig");
58918
58918
 
58919
58919
  export {
58920
+ require_devkit,
58920
58921
  joinPaths,
58921
58922
  findWorkspaceRootSafe,
58922
58923
  findWorkspaceRoot,
@@ -58936,7 +58936,8 @@ var getConfig = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (workspace
58936
58936
 
58937
58937
 
58938
58938
 
58939
- exports.joinPaths = joinPaths; exports.findWorkspaceRootSafe = findWorkspaceRootSafe; exports.findWorkspaceRoot = findWorkspaceRoot; exports.require_ansi_styles = require_ansi_styles; exports.require_supports_color = require_supports_color; exports.isVerbose = isVerbose; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.exitWithError = exitWithError; exports.exitWithSuccess = exitWithSuccess; exports.handleProcess = handleProcess; exports.getConfig = getConfig;
58939
+
58940
+ exports.require_devkit = require_devkit; exports.joinPaths = joinPaths; exports.findWorkspaceRootSafe = findWorkspaceRootSafe; exports.findWorkspaceRoot = findWorkspaceRoot; exports.require_ansi_styles = require_ansi_styles; exports.require_supports_color = require_supports_color; exports.isVerbose = isVerbose; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.exitWithError = exitWithError; exports.exitWithSuccess = exitWithSuccess; exports.handleProcess = handleProcess; exports.getConfig = getConfig;
58940
58941
  /*! Bundled license information:
58941
58942
 
58942
58943
  ejs/lib/ejs.js:
package/bin/git.cjs CHANGED
@@ -22,7 +22,8 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
22
22
 
23
23
 
24
24
 
25
- var _chunkUJOC6MGUcjs = require('./chunk-UJOC6MGU.cjs');
25
+
26
+ var _chunkYCWJSTYZcjs = require('./chunk-YCWJSTYZ.cjs');
26
27
 
27
28
 
28
29
  var _chunkJMRHG3KScjs = require('./chunk-JMRHG3KS.cjs');
@@ -3263,7 +3264,7 @@ var require_wrap_ansi = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
3263
3264
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
3264
3265
  var stringWidth = require_string_width();
3265
3266
  var stripAnsi2 = require_strip_ansi();
3266
- var ansiStyles2 = _chunkUJOC6MGUcjs.require_ansi_styles.call(void 0, );
3267
+ var ansiStyles2 = _chunkYCWJSTYZcjs.require_ansi_styles.call(void 0, );
3267
3268
  var ESCAPES2 = /* @__PURE__ */ new Set([
3268
3269
  "\x1B",
3269
3270
  "\x9B"
@@ -15605,7 +15606,7 @@ var require_node = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
15605
15606
  1
15606
15607
  ];
15607
15608
  try {
15608
- const supportsColor2 = _chunkUJOC6MGUcjs.require_supports_color.call(void 0, );
15609
+ const supportsColor2 = _chunkYCWJSTYZcjs.require_supports_color.call(void 0, );
15609
15610
  if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
15610
15611
  exports.colors = [
15611
15612
  20,
@@ -33498,12 +33499,12 @@ var getRuleFromScopeEnum = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0,
33498
33499
  // src/commitlint/run.ts
33499
33500
  var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
33500
33501
  var runCommitLint = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (config, params) => {
33501
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
33502
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
33502
33503
  let commitMessage;
33503
33504
  if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
33504
33505
  commitMessage = params.message;
33505
33506
  } else {
33506
- const commitFile = _chunkUJOC6MGUcjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
33507
+ const commitFile = _chunkYCWJSTYZcjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
33507
33508
  if (_fs.existsSync.call(void 0, commitFile)) {
33508
33509
  commitMessage = await _asyncOptionalChain([(await _promises.readFile.call(void 0, commitFile, "utf8")), 'optionalAccess', async _55 => _55.trim, 'call', async _56 => _56()]);
33509
33510
  }
@@ -33515,19 +33516,19 @@ var runCommitLint = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async
33515
33516
  if (upstreamRemote) {
33516
33517
  const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _57 => _57.split, 'call', _58 => _58(" "), 'access', _59 => _59[0], 'optionalAccess', _60 => _60.trim, 'call', _61 => _61()]);
33517
33518
  if (!upstreamRemoteIdentifier) {
33518
- _chunkUJOC6MGUcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
33519
+ _chunkYCWJSTYZcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
33519
33520
  return;
33520
33521
  }
33521
- _chunkUJOC6MGUcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
33522
+ _chunkYCWJSTYZcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
33522
33523
  const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
33523
33524
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
33524
33525
  } else {
33525
- _chunkUJOC6MGUcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
33526
+ _chunkYCWJSTYZcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
33526
33527
  return;
33527
33528
  }
33528
33529
  commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
33529
33530
  if (!commitMessage) {
33530
- _chunkUJOC6MGUcjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
33531
+ _chunkYCWJSTYZcjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
33531
33532
  return;
33532
33533
  }
33533
33534
  }
@@ -33545,7 +33546,7 @@ var runCommitLint = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async
33545
33546
  helpUrl: commitlintConfig.helpUrl
33546
33547
  });
33547
33548
  if (!matchCommit || report.errors.length || report.warnings.length) {
33548
- _chunkUJOC6MGUcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
33549
+ _chunkYCWJSTYZcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
33549
33550
  } else {
33550
33551
  let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
33551
33552
  errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
@@ -34739,7 +34740,7 @@ var createState = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (c
34739
34740
  answers: {}
34740
34741
  };
34741
34742
  } else {
34742
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
34743
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
34743
34744
  let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
34744
34745
  if (_optionalChain([commitizenConfig, 'optionalAccess', _67 => _67.default])) {
34745
34746
  commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _68 => _68.default]);
@@ -34780,7 +34781,7 @@ var createState = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (c
34780
34781
  }
34781
34782
  if (project) {
34782
34783
  let description = `${project.name} - ${project.root}`;
34783
- const packageJsonPath = _chunkUJOC6MGUcjs.joinPaths.call(void 0, project.root, "package.json");
34784
+ const packageJsonPath = _chunkYCWJSTYZcjs.joinPaths.call(void 0, project.root, "package.json");
34784
34785
  if (await hfs.isFile(packageJsonPath)) {
34785
34786
  const packageJson = await hfs.json(packageJsonPath);
34786
34787
  description = packageJson.description || description;
@@ -34854,10 +34855,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
34854
34855
 
34855
34856
  // src/commit/run.ts
34856
34857
  var runCommit = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
34857
- const config = await _chunkUJOC6MGUcjs.getConfig.call(void 0, );
34858
+ const config = await _chunkYCWJSTYZcjs.getConfig.call(void 0, );
34858
34859
  const state = await createState(config, commitizenFile);
34859
34860
  if (dryRun) {
34860
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Running in dry mode.", config);
34861
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "Running in dry mode.", config);
34861
34862
  }
34862
34863
  console.log(chalk_template_default`
34863
34864
  {bold.#999999 ----------------------------------------}
@@ -34867,7 +34868,7 @@ var runCommit = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (com
34867
34868
  `);
34868
34869
  state.answers = await askQuestions(state);
34869
34870
  const message2 = formatCommitMessage(state);
34870
- const commitMsgFile = _chunkUJOC6MGUcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
34871
+ const commitMsgFile = _chunkYCWJSTYZcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
34871
34872
  console.log(chalk_template_default`
34872
34873
  {bold.#999999 ----------------------------------------}
34873
34874
 
@@ -34891,8 +34892,8 @@ var runCommit = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (com
34891
34892
  ]);
34892
34893
  const command = (0, import_any_shell_escape.default)(commandItems);
34893
34894
  if (dryRun) {
34894
- _chunkUJOC6MGUcjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
34895
- _chunkUJOC6MGUcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
34895
+ _chunkYCWJSTYZcjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
34896
+ _chunkYCWJSTYZcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
34896
34897
  } else {
34897
34898
  await _promises2.default.writeFile(commitMsgFile, message2);
34898
34899
  _chunkUAKVQGZUcjs.run.call(void 0, config, command);
@@ -47341,6 +47342,7 @@ var DEFAULT_RELEASE_CONFIG = {
47341
47342
 
47342
47343
  // src/release/nx-version.ts
47343
47344
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
47345
+ var import_devkit = _chunkEM6PLOYYcjs.__toESM.call(void 0, _chunkYCWJSTYZcjs.require_devkit.call(void 0, ), 1);
47344
47346
 
47345
47347
 
47346
47348
  var _generatejs = require('nx/src/command-line/generate/generate.js');
@@ -47353,19 +47355,18 @@ var _printchangesjs = require('nx/src/command-line/release/utils/print-changes.j
47353
47355
  var _resolvenxjsonerrormessagejs = require('nx/src/command-line/release/utils/resolve-nx-json-error-message.js');
47354
47356
  var _sharedjs = require('nx/src/command-line/release/utils/shared.js');
47355
47357
 
47356
- var _devkitexportsjs = require('nx/src/devkit-exports.js');
47357
47358
  var _treejs = require('nx/src/generators/tree.js');
47358
47359
  var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
47359
47360
 
47360
47361
  var _paramsjs = require('nx/src/utils/params.js');
47361
47362
  async function releaseVersion(config, args) {
47362
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Running release version command", config);
47363
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "Running release version command", config);
47363
47364
  const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
47364
47365
  exitOnError: true
47365
47366
  });
47366
47367
  const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
47367
47368
  const nxJson = _nxjsonjs.readNxJson.call(void 0, );
47368
- const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _152 => _152.workspaceRoot]), () => ( _chunkUJOC6MGUcjs.findWorkspaceRoot.call(void 0, )));
47369
+ const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _152 => _152.workspaceRoot]), () => ( _chunkYCWJSTYZcjs.findWorkspaceRoot.call(void 0, )));
47369
47370
  if (args.verbose) {
47370
47371
  process.env.NX_VERBOSE_LOGGING = "true";
47371
47372
  }
@@ -47380,10 +47381,10 @@ async function releaseVersion(config, args) {
47380
47381
  ]);
47381
47382
  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".`);
47382
47383
  }
47383
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
47384
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
47384
47385
  const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
47385
47386
  if (filterError) {
47386
- _chunkUJOC6MGUcjs.writeError.call(void 0, filterError.title, config);
47387
+ _chunkYCWJSTYZcjs.writeError.call(void 0, filterError.title, config);
47387
47388
  throw new Error(filterError.title);
47388
47389
  }
47389
47390
  const tree = new (0, _treejs.FsTree)(workspaceRoot2, true);
@@ -47392,10 +47393,10 @@ async function releaseVersion(config, args) {
47392
47393
  const additionalChangedFiles = /* @__PURE__ */ new Set();
47393
47394
  const generatorCallbacks = [];
47394
47395
  if (_optionalChain([args, 'access', _158 => _158.projects, 'optionalAccess', _159 => _159.length])) {
47395
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
47396
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
47396
47397
  for (const releaseGroup of releaseGroups) {
47397
47398
  const releaseGroupName = releaseGroup.name;
47398
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
47399
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
47399
47400
  const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
47400
47401
  const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
47401
47402
  projectGraph,
@@ -47404,7 +47405,7 @@ async function releaseVersion(config, args) {
47404
47405
  releaseGroupProjectNames
47405
47406
  );
47406
47407
  for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
47407
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
47408
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
47408
47409
  const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
47409
47410
  const generatorData = resolveGeneratorData({
47410
47411
  ...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
@@ -47457,7 +47458,7 @@ async function releaseVersion(config, args) {
47457
47458
  gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _166 => _166.version, 'access', _167 => _167.git, 'access', _168 => _168.commitArgs])
47458
47459
  });
47459
47460
  } else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _169 => _169.version, 'access', _170 => _170.git, 'access', _171 => _171.stageChanges])))) {
47460
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Staging changed files with git", config);
47461
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "Staging changed files with git", config);
47461
47462
  await _gitjs.gitAdd.call(void 0, {
47462
47463
  changedFiles: changedFiles2,
47463
47464
  dryRun: args.dryRun,
@@ -47465,7 +47466,7 @@ async function releaseVersion(config, args) {
47465
47466
  });
47466
47467
  }
47467
47468
  if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _172 => _172.version, 'access', _173 => _173.git, 'access', _174 => _174.tag])))) {
47468
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Tagging commit with git", config);
47469
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "Tagging commit with git", config);
47469
47470
  for (const tag of gitTagValues2) {
47470
47471
  await _gitjs.gitTag.call(void 0, {
47471
47472
  tag,
@@ -47552,7 +47553,7 @@ async function releaseVersion(config, args) {
47552
47553
  gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _190 => _190.version, 'access', _191 => _191.git, 'access', _192 => _192.commitArgs])
47553
47554
  });
47554
47555
  } else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _193 => _193.version, 'access', _194 => _194.git, 'access', _195 => _195.stageChanges])))) {
47555
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Staging changed files with git", config);
47556
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "Staging changed files with git", config);
47556
47557
  await _gitjs.gitAdd.call(void 0, {
47557
47558
  changedFiles,
47558
47559
  dryRun: args.dryRun,
@@ -47560,7 +47561,7 @@ async function releaseVersion(config, args) {
47560
47561
  });
47561
47562
  }
47562
47563
  if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _196 => _196.version, 'access', _197 => _197.git, 'access', _198 => _198.tag])))) {
47563
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Tagging commit with git", config);
47564
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "Tagging commit with git", config);
47564
47565
  for (const tag of gitTagValues) {
47565
47566
  await _gitjs.gitTag.call(void 0, {
47566
47567
  tag,
@@ -47578,7 +47579,7 @@ async function releaseVersion(config, args) {
47578
47579
  }
47579
47580
  _chunkEM6PLOYYcjs.__name.call(void 0, releaseVersion, "releaseVersion");
47580
47581
  async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
47581
- const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _205 => _205.workspaceRoot]), () => ( _chunkUJOC6MGUcjs.findWorkspaceRoot.call(void 0, )));
47582
+ const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _205 => _205.workspaceRoot]), () => ( _chunkYCWJSTYZcjs.findWorkspaceRoot.call(void 0, )));
47582
47583
  const generatorOptions = {
47583
47584
  // Always ensure a string to avoid generator schema validation errors
47584
47585
  specifier: _nullishCoalesce(args.specifier, () => ( "")),
@@ -47597,7 +47598,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
47597
47598
  throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
47598
47599
  }
47599
47600
  appendVersionData(versionData, versionResult.data);
47600
- _chunkUJOC6MGUcjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
47601
+ _chunkYCWJSTYZcjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
47601
47602
  return versionResult.callback;
47602
47603
  }
47603
47604
  _chunkEM6PLOYYcjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
@@ -47605,18 +47606,18 @@ function printAndFlushChanges(config, tree, isDryRun) {
47605
47606
  const changes = tree.listChanges();
47606
47607
  for (const f of changes) {
47607
47608
  if (f.type === "CREATE") {
47608
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
47609
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
47609
47610
  _printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _206 => _206.content, 'optionalAccess', _207 => _207.toString, 'call', _208 => _208()]) || "");
47610
47611
  } else if (f.type === "UPDATE") {
47611
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
47612
- const currentContentsOnDisk = _fs.readFileSync.call(void 0, _devkitexportsjs.joinPathFragments.call(void 0, tree.root, f.path)).toString();
47612
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
47613
+ const currentContentsOnDisk = _fs.readFileSync.call(void 0, (0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
47613
47614
  _printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _209 => _209.content, 'optionalAccess', _210 => _210.toString, 'call', _211 => _211()]) || "");
47614
47615
  } else if (f.type === "DELETE") {
47615
47616
  throw new Error("Unexpected DELETE change, please report this as an issue");
47616
47617
  }
47617
47618
  }
47618
47619
  if (!isDryRun) {
47619
- _treejs.flushChanges.call(void 0, _devkitexportsjs.workspaceRoot, changes);
47620
+ _treejs.flushChanges.call(void 0, import_devkit.workspaceRoot, changes);
47620
47621
  }
47621
47622
  }
47622
47623
  _chunkEM6PLOYYcjs.__name.call(void 0, printAndFlushChanges, "printAndFlushChanges");
@@ -47645,7 +47646,7 @@ function appendVersionData(existingVersionData, newVersionData = {}) {
47645
47646
  _chunkEM6PLOYYcjs.__name.call(void 0, appendVersionData, "appendVersionData");
47646
47647
  function resolveGeneratorData({ collectionName, generatorName, configGeneratorOptions, projects }) {
47647
47648
  try {
47648
- const { normalizedGeneratorName, schema, implementationFactory } = _generatorutilsjs.getGeneratorInformation.call(void 0, collectionName, generatorName, _devkitexportsjs.workspaceRoot, projects);
47649
+ const { normalizedGeneratorName, schema, implementationFactory } = _generatorutilsjs.getGeneratorInformation.call(void 0, collectionName, generatorName, import_devkit.workspaceRoot, projects);
47649
47650
  return {
47650
47651
  collectionName,
47651
47652
  generatorName,
@@ -47681,12 +47682,12 @@ var runRelease = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (co
47681
47682
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
47682
47683
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
47683
47684
  process.env.NPM_CONFIG_PROVENANCE = "true";
47684
- _chunkUJOC6MGUcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
47685
+ _chunkYCWJSTYZcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
47685
47686
  const nxJson = _nxjsonjs.readNxJson.call(void 0, );
47686
- _chunkUJOC6MGUcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
47687
+ _chunkYCWJSTYZcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
47687
47688
  const to = options.head || process.env.NX_HEAD;
47688
47689
  const from = options.base || process.env.NX_BASE;
47689
- _chunkUJOC6MGUcjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
47690
+ _chunkYCWJSTYZcjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
47690
47691
  - From: ${from}
47691
47692
  - To: ${to}
47692
47693
  `, config);
@@ -47698,14 +47699,14 @@ var runRelease = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (co
47698
47699
  }, {});
47699
47700
  }
47700
47701
  const nxReleaseConfig = _chunkJMRHG3KScjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
47701
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
47702
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, nxReleaseConfig, config);
47702
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
47703
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, nxReleaseConfig, config);
47703
47704
  const releaseChangelog = _changelogjs.createAPI.call(void 0, nxReleaseConfig);
47704
47705
  const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
47705
- _chunkUJOC6MGUcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
47706
+ _chunkYCWJSTYZcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
47706
47707
  const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
47707
47708
  dryRun: false,
47708
- verbose: _chunkUJOC6MGUcjs.isVerbose.call(void 0, config.logLevel),
47709
+ verbose: _chunkYCWJSTYZcjs.isVerbose.call(void 0, config.logLevel),
47709
47710
  preid: config.preid,
47710
47711
  deleteVersionPlans: false,
47711
47712
  stageChanges: true,
@@ -47717,25 +47718,25 @@ var runRelease = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (co
47717
47718
  version: _optionalChain([nxReleaseConfig, 'optionalAccess', _214 => _214.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
47718
47719
  versionData: projectsVersionData,
47719
47720
  dryRun: false,
47720
- verbose: _chunkUJOC6MGUcjs.isVerbose.call(void 0, config.logLevel),
47721
+ verbose: _chunkYCWJSTYZcjs.isVerbose.call(void 0, config.logLevel),
47721
47722
  to,
47722
47723
  from,
47723
47724
  gitCommit: true,
47724
47725
  gitCommitMessage: "release(monorepo): Publish workspace release updates"
47725
47726
  });
47726
- _chunkUJOC6MGUcjs.writeDebug.call(void 0, "Tagging commit with git", config);
47727
+ _chunkYCWJSTYZcjs.writeDebug.call(void 0, "Tagging commit with git", config);
47727
47728
  if (options.skipPublish) {
47728
- _chunkUJOC6MGUcjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
47729
+ _chunkYCWJSTYZcjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
47729
47730
  } else {
47730
47731
  const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _215 => _215[key], 'optionalAccess', _216 => _216.newVersion]));
47731
47732
  if (changedProjects.length > 0) {
47732
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
47733
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
47733
47734
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
47734
47735
  `, config);
47735
47736
  const result2 = await releasePublish({
47736
47737
  ...options,
47737
47738
  dryRun: !!options.dryRun,
47738
- verbose: _chunkUJOC6MGUcjs.isVerbose.call(void 0, config.logLevel)
47739
+ verbose: _chunkYCWJSTYZcjs.isVerbose.call(void 0, config.logLevel)
47739
47740
  });
47740
47741
  const failedProjects = Object.keys(result2).filter((key) => _optionalChain([result2, 'access', _217 => _217[key], 'optionalAccess', _218 => _218.code]) && _optionalChain([result2, 'access', _219 => _219[key], 'optionalAccess', _220 => _220.code]) > 0);
47741
47742
  if (failedProjects.length > 0) {
@@ -47746,13 +47747,13 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
47746
47747
  `);
47747
47748
  }
47748
47749
  } else {
47749
- _chunkUJOC6MGUcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
47750
+ _chunkYCWJSTYZcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
47750
47751
  }
47751
47752
  }
47752
- _chunkUJOC6MGUcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
47753
+ _chunkYCWJSTYZcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
47753
47754
  } catch (error) {
47754
- _chunkUJOC6MGUcjs.writeFatal.call(void 0, "An exception was thrown while running the Storm release workflow.", config);
47755
- error.message && _chunkUJOC6MGUcjs.writeError.call(void 0, `${error.name ? `${error.name}: ` : ""}${error.message}${error.stack ? `
47755
+ _chunkYCWJSTYZcjs.writeFatal.call(void 0, "An exception was thrown while running the Storm release workflow.", config);
47756
+ error.message && _chunkYCWJSTYZcjs.writeError.call(void 0, `${error.name ? `${error.name}: ` : ""}${error.message}${error.stack ? `
47756
47757
  ${error.stack}` : ""}`, config);
47757
47758
  throw error;
47758
47759
  }
@@ -47762,8 +47763,8 @@ ${error.stack}` : ""}`, config);
47762
47763
  var _config = {};
47763
47764
  function createProgram(config) {
47764
47765
  _config = config;
47765
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
47766
- const root2 = _chunkUJOC6MGUcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
47766
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
47767
+ const root2 = _chunkYCWJSTYZcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
47767
47768
  process.env.STORM_WORKSPACE_ROOT ??= root2;
47768
47769
  process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
47769
47770
  root2 && process.chdir(root2);
@@ -47791,14 +47792,14 @@ function createProgram(config) {
47791
47792
  _chunkEM6PLOYYcjs.__name.call(void 0, createProgram, "createProgram");
47792
47793
  async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
47793
47794
  try {
47794
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
47795
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
47795
47796
  await runCommit(config, dryRun);
47796
- _chunkUJOC6MGUcjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
47797
+ _chunkYCWJSTYZcjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
47797
47798
 
47798
47799
  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}
47799
47800
  `, _config);
47800
47801
  } catch (error) {
47801
- _chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
47802
+ _chunkYCWJSTYZcjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
47802
47803
 
47803
47804
  ${error.message}`, _config);
47804
47805
  throw new Error(error.message, {
@@ -47809,11 +47810,11 @@ ${error.message}`, _config);
47809
47810
  _chunkEM6PLOYYcjs.__name.call(void 0, commitAction, "commitAction");
47810
47811
  async function readmeAction(options) {
47811
47812
  try {
47812
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
47813
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
47813
47814
  await runReadme(options);
47814
- _chunkUJOC6MGUcjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
47815
+ _chunkYCWJSTYZcjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
47815
47816
  } catch (error) {
47816
- _chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
47817
+ _chunkYCWJSTYZcjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
47817
47818
 
47818
47819
  ${error.message}`);
47819
47820
  throw new Error(error.message, {
@@ -47824,19 +47825,19 @@ ${error.message}`);
47824
47825
  _chunkEM6PLOYYcjs.__name.call(void 0, readmeAction, "readmeAction");
47825
47826
  async function releaseAction({ project, base, head, dryRun }) {
47826
47827
  try {
47827
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
47828
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
47828
47829
  await runRelease(_config, {
47829
47830
  dryRun,
47830
47831
  project,
47831
47832
  base,
47832
47833
  head
47833
47834
  });
47834
- _chunkUJOC6MGUcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
47835
+ _chunkYCWJSTYZcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
47835
47836
  } catch (error) {
47836
- _chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
47837
+ _chunkYCWJSTYZcjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
47837
47838
 
47838
47839
  ${error.message}`, _config);
47839
- _chunkUJOC6MGUcjs.writeFatal.call(void 0, error, _config);
47840
+ _chunkYCWJSTYZcjs.writeFatal.call(void 0, error, _config);
47840
47841
  console.error("");
47841
47842
  console.error("Fatal release error: ");
47842
47843
  console.error(error);
@@ -47849,15 +47850,15 @@ ${error.message}`, _config);
47849
47850
  _chunkEM6PLOYYcjs.__name.call(void 0, releaseAction, "releaseAction");
47850
47851
  async function commitLintAction({ config, message: message2, file }) {
47851
47852
  try {
47852
- _chunkUJOC6MGUcjs.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);
47853
+ _chunkYCWJSTYZcjs.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);
47853
47854
  await runCommitLint(_config, {
47854
47855
  config,
47855
47856
  message: message2,
47856
47857
  file
47857
47858
  });
47858
- _chunkUJOC6MGUcjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
47859
+ _chunkYCWJSTYZcjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
47859
47860
  } catch (error) {
47860
- _chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
47861
+ _chunkYCWJSTYZcjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
47861
47862
 
47862
47863
  ${error.message}`, _config);
47863
47864
  throw new Error(error.message, {
@@ -47869,18 +47870,18 @@ _chunkEM6PLOYYcjs.__name.call(void 0, commitLintAction, "commitLintAction");
47869
47870
 
47870
47871
  // bin/git.ts
47871
47872
  void (async () => {
47872
- const config = await _chunkUJOC6MGUcjs.getConfig.call(void 0, );
47873
+ const config = await _chunkYCWJSTYZcjs.getConfig.call(void 0, );
47873
47874
  try {
47874
- _chunkUJOC6MGUcjs.handleProcess.call(void 0, config);
47875
+ _chunkYCWJSTYZcjs.handleProcess.call(void 0, config);
47875
47876
  const program2 = createProgram(config);
47876
47877
  await program2.parseAsync(process.argv);
47877
- _chunkUJOC6MGUcjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
47878
- _chunkUJOC6MGUcjs.exitWithSuccess.call(void 0, config);
47878
+ _chunkYCWJSTYZcjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
47879
+ _chunkYCWJSTYZcjs.exitWithSuccess.call(void 0, config);
47879
47880
  } catch (error) {
47880
- _chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running the Storm Git tool:
47881
+ _chunkYCWJSTYZcjs.writeFatal.call(void 0, `A fatal error occurred while running the Storm Git tool:
47881
47882
  ${_optionalChain([error, 'optionalAccess', _223 => _223.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _224 => _224.stack]) ? `
47882
47883
  Stack Trace: ${error.stack}` : ""}`, config);
47883
- _chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
47884
+ _chunkYCWJSTYZcjs.exitWithError.call(void 0, config);
47884
47885
  process.exit(1);
47885
47886
  }
47886
47887
  })();
package/bin/git.js CHANGED
@@ -15,6 +15,7 @@ import {
15
15
  isVerbose,
16
16
  joinPaths,
17
17
  require_ansi_styles,
18
+ require_devkit,
18
19
  require_supports_color,
19
20
  writeDebug,
20
21
  writeError,
@@ -22,7 +23,7 @@ import {
22
23
  writeInfo,
23
24
  writeSuccess,
24
25
  writeWarning
25
- } from "./chunk-PLNZHR5C.js";
26
+ } from "./chunk-VXNE6LTE.js";
26
27
  import {
27
28
  defu
28
29
  } from "./chunk-BNZUDAPR.js";
@@ -47340,6 +47341,7 @@ var DEFAULT_RELEASE_CONFIG = {
47340
47341
 
47341
47342
  // src/release/nx-version.ts
47342
47343
  init_esm_shims();
47344
+ var import_devkit = __toESM(require_devkit(), 1);
47343
47345
  import { readFileSync as readFileSync4 } from "node:fs";
47344
47346
  import { relative } from "node:path";
47345
47347
  import { parseGeneratorString } from "nx/src/command-line/generate/generate.js";
@@ -47352,7 +47354,6 @@ import { printDiff } from "nx/src/command-line/release/utils/print-changes.js";
47352
47354
  import { resolveNxJsonConfigErrorMessage } from "nx/src/command-line/release/utils/resolve-nx-json-error-message.js";
47353
47355
  import { commitChanges, createCommitMessageValues, createGitTagValues, handleDuplicateGitTags } from "nx/src/command-line/release/utils/shared.js";
47354
47356
  import { readNxJson } from "nx/src/config/nx-json.js";
47355
- import { joinPathFragments, workspaceRoot } from "nx/src/devkit-exports.js";
47356
47357
  import { flushChanges, FsTree } from "nx/src/generators/tree.js";
47357
47358
  import { createProjectFileMapUsingProjectGraph } from "nx/src/project-graph/file-map-utils.js";
47358
47359
  import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3 } from "nx/src/project-graph/project-graph.js";
@@ -47608,14 +47609,14 @@ function printAndFlushChanges(config, tree, isDryRun) {
47608
47609
  printDiff("", f.content?.toString() || "");
47609
47610
  } else if (f.type === "UPDATE") {
47610
47611
  writeInfo(`UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
47611
- const currentContentsOnDisk = readFileSync4(joinPathFragments(tree.root, f.path)).toString();
47612
+ const currentContentsOnDisk = readFileSync4((0, import_devkit.joinPathFragments)(tree.root, f.path)).toString();
47612
47613
  printDiff(currentContentsOnDisk, f.content?.toString() || "");
47613
47614
  } else if (f.type === "DELETE") {
47614
47615
  throw new Error("Unexpected DELETE change, please report this as an issue");
47615
47616
  }
47616
47617
  }
47617
47618
  if (!isDryRun) {
47618
- flushChanges(workspaceRoot, changes);
47619
+ flushChanges(import_devkit.workspaceRoot, changes);
47619
47620
  }
47620
47621
  }
47621
47622
  __name(printAndFlushChanges, "printAndFlushChanges");
@@ -47644,7 +47645,7 @@ function appendVersionData(existingVersionData, newVersionData = {}) {
47644
47645
  __name(appendVersionData, "appendVersionData");
47645
47646
  function resolveGeneratorData({ collectionName, generatorName, configGeneratorOptions, projects }) {
47646
47647
  try {
47647
- const { normalizedGeneratorName, schema, implementationFactory } = getGeneratorInformation(collectionName, generatorName, workspaceRoot, projects);
47648
+ const { normalizedGeneratorName, schema, implementationFactory } = getGeneratorInformation(collectionName, generatorName, import_devkit.workspaceRoot, projects);
47648
47649
  return {
47649
47650
  collectionName,
47650
47651
  generatorName,
@@ -13,7 +13,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkUJOC6MGUcjs = require('./chunk-UJOC6MGU.cjs');
16
+ var _chunkYCWJSTYZcjs = require('./chunk-YCWJSTYZ.cjs');
17
17
  require('./chunk-JMRHG3KS.cjs');
18
18
  require('./chunk-NHO7HSOE.cjs');
19
19
  require('./chunk-WOZSAFMN.cjs');
@@ -27,23 +27,23 @@ var _chunkEM6PLOYYcjs = require('./chunk-EM6PLOYY.cjs');
27
27
  // bin/post-checkout.ts
28
28
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
29
29
  void (async () => {
30
- const config = await _chunkUJOC6MGUcjs.getConfig.call(void 0, );
30
+ const config = await _chunkYCWJSTYZcjs.getConfig.call(void 0, );
31
31
  try {
32
- _chunkUJOC6MGUcjs.handleProcess.call(void 0, config);
33
- _chunkUJOC6MGUcjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
32
+ _chunkYCWJSTYZcjs.handleProcess.call(void 0, config);
33
+ _chunkYCWJSTYZcjs.writeInfo.call(void 0, "Running post-checkout hook...", config);
34
34
  _chunkBXSXKKIZcjs.checkPackageVersion.call(void 0, _optionalChain([process, 'access', _ => _.argv, 'optionalAccess', _2 => _2.slice, 'call', _3 => _3(1)]));
35
35
  try {
36
36
  _chunkUAKVQGZUcjs.run.call(void 0, config, "git-lfs version");
37
37
  } catch (error) {
38
- _chunkUJOC6MGUcjs.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
+ _chunkYCWJSTYZcjs.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
- _chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
40
+ _chunkYCWJSTYZcjs.exitWithError.call(void 0, config);
41
41
  }
42
42
  _chunkUAKVQGZUcjs.run.call(void 0, config, "git lfs post-checkout");
43
- _chunkUJOC6MGUcjs.exitWithSuccess.call(void 0, config);
43
+ _chunkYCWJSTYZcjs.exitWithSuccess.call(void 0, config);
44
44
  } catch (error) {
45
- _chunkUJOC6MGUcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
- _chunkUJOC6MGUcjs.exitWithError.call(void 0, config);
45
+ _chunkYCWJSTYZcjs.writeFatal.call(void 0, `A fatal error occurred while running the program: ${error.message}`, config);
46
+ _chunkYCWJSTYZcjs.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-PLNZHR5C.js";
16
+ } from "./chunk-VXNE6LTE.js";
17
17
  import "./chunk-BNZUDAPR.js";
18
18
  import "./chunk-4NALH4AO.js";
19
19
  import "./chunk-3QBEWJXQ.js";