@storm-software/git-tools 2.85.0 → 2.86.0

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/bin/git.cjs CHANGED
@@ -22,8 +22,7 @@ var _chunkUAKVQGZUcjs = require('./chunk-UAKVQGZU.cjs');
22
22
 
23
23
 
24
24
 
25
-
26
- var _chunkAEVVXIO6cjs = require('./chunk-AEVVXIO6.cjs');
25
+ var _chunkYEFBCXENcjs = require('./chunk-YEFBCXEN.cjs');
27
26
 
28
27
 
29
28
  var _chunkJMRHG3KScjs = require('./chunk-JMRHG3KS.cjs');
@@ -3264,7 +3263,7 @@ var require_wrap_ansi = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
3264
3263
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
3265
3264
  var stringWidth = require_string_width();
3266
3265
  var stripAnsi2 = require_strip_ansi();
3267
- var ansiStyles2 = _chunkAEVVXIO6cjs.require_ansi_styles.call(void 0, );
3266
+ var ansiStyles2 = _chunkYEFBCXENcjs.require_ansi_styles.call(void 0, );
3268
3267
  var ESCAPES2 = /* @__PURE__ */ new Set([
3269
3268
  "\x1B",
3270
3269
  "\x9B"
@@ -15606,7 +15605,7 @@ var require_node = _chunkEM6PLOYYcjs.__commonJS.call(void 0, {
15606
15605
  1
15607
15606
  ];
15608
15607
  try {
15609
- const supportsColor2 = _chunkAEVVXIO6cjs.require_supports_color.call(void 0, );
15608
+ const supportsColor2 = _chunkYEFBCXENcjs.require_supports_color.call(void 0, );
15610
15609
  if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
15611
15610
  exports.colors = [
15612
15611
  20,
@@ -33467,15 +33466,13 @@ _chunkEM6PLOYYcjs.__name.call(void 0, lint, "lint");
33467
33466
 
33468
33467
  // src/commitlint/scope.ts
33469
33468
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
33470
- var _projectgraphjs = require('nx/src/project-graph/project-graph.js');
33469
+ var _projectgraph = require('nx/src/project-graph/project-graph');
33471
33470
  async function getNxScopes(context, selector = (params) => true) {
33472
33471
  const ctx = context || {};
33473
33472
  const workspaceRoot2 = process.env.NX_WORKSPACE_ROOT_PATH || process.env.STORM_WORKSPACE_ROOT || ctx.cwd || process.cwd();
33474
33473
  process.env.NX_WORKSPACE_ROOT_PATH ??= workspaceRoot2;
33475
- const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
33476
- exitOnError: true
33477
- });
33478
- const projectConfigs = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
33474
+ const projectGraph = _projectgraph.readCachedProjectGraph.call(void 0, );
33475
+ const projectConfigs = _projectgraph.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
33479
33476
  const result2 = Object.entries(projectConfigs.projects || {}).map(([name, project]) => ({
33480
33477
  name,
33481
33478
  ...project
@@ -33501,12 +33498,12 @@ var getRuleFromScopeEnum = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0,
33501
33498
  // src/commitlint/run.ts
33502
33499
  var COMMIT_EDITMSG_PATH = ".git/COMMIT_EDITMSG";
33503
33500
  var runCommitLint = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (config, params) => {
33504
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
33501
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "\u{1F4DD} Validating git commit message aligns with the Storm Software specification", config);
33505
33502
  let commitMessage;
33506
33503
  if (params.message && params.message !== COMMIT_EDITMSG_PATH) {
33507
33504
  commitMessage = params.message;
33508
33505
  } else {
33509
- const commitFile = _chunkAEVVXIO6cjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
33506
+ const commitFile = _chunkYEFBCXENcjs.joinPaths.call(void 0, config.workspaceRoot, params.file || params.message || COMMIT_EDITMSG_PATH);
33510
33507
  if (_fs.existsSync.call(void 0, commitFile)) {
33511
33508
  commitMessage = await _asyncOptionalChain([(await _promises.readFile.call(void 0, commitFile, "utf8")), 'optionalAccess', async _55 => _55.trim, 'call', async _56 => _56()]);
33512
33509
  }
@@ -33518,19 +33515,19 @@ var runCommitLint = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async
33518
33515
  if (upstreamRemote) {
33519
33516
  const upstreamRemoteIdentifier = _optionalChain([upstreamRemote, 'access', _57 => _57.split, 'call', _58 => _58(" "), 'access', _59 => _59[0], 'optionalAccess', _60 => _60.trim, 'call', _61 => _61()]);
33520
33517
  if (!upstreamRemoteIdentifier) {
33521
- _chunkAEVVXIO6cjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
33518
+ _chunkYEFBCXENcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison.`, config);
33522
33519
  return;
33523
33520
  }
33524
- _chunkAEVVXIO6cjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
33521
+ _chunkYEFBCXENcjs.writeDebug.call(void 0, `Comparing against remote ${upstreamRemoteIdentifier}`);
33525
33522
  const currentBranch = _child_process2.default.execSync("git branch --show-current").toString().trim();
33526
33523
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
33527
33524
  } else {
33528
- _chunkAEVVXIO6cjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
33525
+ _chunkYEFBCXENcjs.writeWarning.call(void 0, `No upstream remote found for ${config.name}.git. Skipping comparison against upstream main.`, config);
33529
33526
  return;
33530
33527
  }
33531
33528
  commitMessage = _child_process2.default.execSync(gitLogCmd).toString().trim();
33532
33529
  if (!commitMessage) {
33533
- _chunkAEVVXIO6cjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
33530
+ _chunkYEFBCXENcjs.writeWarning.call(void 0, "No commits found. Skipping commit message validation.", config);
33534
33531
  return;
33535
33532
  }
33536
33533
  }
@@ -33548,7 +33545,7 @@ var runCommitLint = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async
33548
33545
  helpUrl: commitlintConfig.helpUrl
33549
33546
  });
33550
33547
  if (!matchCommit || report.errors.length || report.warnings.length) {
33551
- _chunkAEVVXIO6cjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
33548
+ _chunkYEFBCXENcjs.writeSuccess.call(void 0, `Commit was processing completed successfully!`, config);
33552
33549
  } else {
33553
33550
  let errorMessage = " Oh no! Your commit message: \n-------------------------------------------------------------------\n" + commitMessage + "\n-------------------------------------------------------------------\n\n Does not follow the commit message convention specified by Storm Software.";
33554
33551
  errorMessage += "\ntype(scope): subject \n BLANK LINE \n body";
@@ -34690,7 +34687,7 @@ var NodeHfs = class extends Hfs {
34690
34687
  var hfs = new NodeHfs();
34691
34688
 
34692
34689
  // src/commit/commit-state.ts
34693
- var import_devkit = _chunkEM6PLOYYcjs.__toESM.call(void 0, _chunkAEVVXIO6cjs.require_devkit.call(void 0, ), 1);
34690
+
34694
34691
 
34695
34692
 
34696
34693
  // src/commit/config.ts
@@ -34742,7 +34739,7 @@ var createState = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (c
34742
34739
  answers: {}
34743
34740
  };
34744
34741
  } else {
34745
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
34742
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, `Using custom commit config file: ${commitizenFile}`, config);
34746
34743
  let commitizenConfig = await Promise.resolve().then(() => _interopRequireWildcard(require(commitizenFile)));
34747
34744
  if (_optionalChain([commitizenConfig, 'optionalAccess', _67 => _67.default])) {
34748
34745
  commitizenConfig = _optionalChain([commitizenConfig, 'optionalAccess', _68 => _68.default]);
@@ -34766,10 +34763,6 @@ var createState = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (c
34766
34763
  if (!state.config.prompt.questions.scope || !state.config.prompt.questions.scope.enum || Object.keys(state.config.prompt.questions.scope.enum).length === 0) {
34767
34764
  const workspaceRoot2 = config.workspaceRoot || process.env.NX_WORKSPACE_ROOT_PATH || process.env.STORM_WORKSPACE_ROOT || process.cwd();
34768
34765
  process.env.NX_WORKSPACE_ROOT_PATH ??= workspaceRoot2;
34769
- const projectGraph = await (0, import_devkit.createProjectGraphAsync)({
34770
- exitOnError: true
34771
- });
34772
- const projectConfigs = (0, import_devkit.readProjectsConfigurationFromProjectGraph)(projectGraph);
34773
34766
  const scopes = await getScopeEnum({});
34774
34767
  for (const scope of scopes) {
34775
34768
  if (scope === "monorepo") {
@@ -34780,10 +34773,14 @@ var createState = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (c
34780
34773
  projectRoot: "/"
34781
34774
  };
34782
34775
  } else {
34783
- const project = projectConfigs.projects[scope];
34776
+ let project;
34777
+ try {
34778
+ project = _projectgraph.readCachedProjectConfiguration.call(void 0, scope);
34779
+ } catch (_3) {
34780
+ }
34784
34781
  if (project) {
34785
34782
  let description = `${project.name} - ${project.root}`;
34786
- const packageJsonPath = _chunkAEVVXIO6cjs.joinPaths.call(void 0, project.root, "package.json");
34783
+ const packageJsonPath = _chunkYEFBCXENcjs.joinPaths.call(void 0, project.root, "package.json");
34787
34784
  if (await hfs.isFile(packageJsonPath)) {
34788
34785
  const packageJson = await hfs.json(packageJsonPath);
34789
34786
  description = packageJson.description || description;
@@ -34857,10 +34854,10 @@ ${closedIssueEmoji}${config.prompt.settings.closedIssueMessage}${issues}`;
34857
34854
 
34858
34855
  // src/commit/run.ts
34859
34856
  var runCommit = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (commitizenFile = "@storm-software/git-tools/commit/config", dryRun = false) => {
34860
- const config = await _chunkAEVVXIO6cjs.loadStormConfig.call(void 0, );
34857
+ const config = await _chunkYEFBCXENcjs.loadStormConfig.call(void 0, );
34861
34858
  const state = await createState(config, commitizenFile);
34862
34859
  if (dryRun) {
34863
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "Running in dry mode.", config);
34860
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "Running in dry mode.", config);
34864
34861
  }
34865
34862
  console.log(chalk_template_default`
34866
34863
  {bold.#999999 ----------------------------------------}
@@ -34870,7 +34867,7 @@ var runCommit = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (com
34870
34867
  `);
34871
34868
  state.answers = await askQuestions(state);
34872
34869
  const message2 = formatCommitMessage(state);
34873
- const commitMsgFile = _chunkAEVVXIO6cjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
34870
+ const commitMsgFile = _chunkYEFBCXENcjs.joinPaths.call(void 0, getGitDir(), "COMMIT_EDITMSG");
34874
34871
  console.log(chalk_template_default`
34875
34872
  {bold.#999999 ----------------------------------------}
34876
34873
 
@@ -34894,8 +34891,8 @@ var runCommit = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (com
34894
34891
  ]);
34895
34892
  const command = (0, import_any_shell_escape.default)(commandItems);
34896
34893
  if (dryRun) {
34897
- _chunkAEVVXIO6cjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
34898
- _chunkAEVVXIO6cjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
34894
+ _chunkYEFBCXENcjs.writeDebug.call(void 0, `Skipping execution [dry-run]: ${command.replace(commitMsgFile, ".git/COMMIT_EDITMSG")}`, config);
34895
+ _chunkYEFBCXENcjs.writeDebug.call(void 0, `Message [dry-run]: ${message2}`, config);
34899
34896
  } else {
34900
34897
  await _promises2.default.writeFile(commitMsgFile, message2);
34901
34898
  _chunkUAKVQGZUcjs.run.call(void 0, config, command);
@@ -34955,7 +34952,7 @@ var askQuestion = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, (index,
34955
34952
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
34956
34953
 
34957
34954
 
34958
-
34955
+ var _projectgraphjs = require('nx/src/project-graph/project-graph.js');
34959
34956
 
34960
34957
  // src/utilities/file-utils.ts
34961
34958
  _chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
@@ -47362,13 +47359,13 @@ var _filemaputilsjs = require('nx/src/project-graph/file-map-utils.js');
47362
47359
 
47363
47360
  var _paramsjs = require('nx/src/utils/params.js');
47364
47361
  async function releaseVersion(config, args) {
47365
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "Running release version command", config);
47362
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "Running release version command", config);
47366
47363
  const projectGraph = await _projectgraphjs.createProjectGraphAsync.call(void 0, {
47367
47364
  exitOnError: true
47368
47365
  });
47369
47366
  const { projects } = _projectgraphjs.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
47370
47367
  const nxJson = _nxjsonjs.readNxJson.call(void 0, );
47371
- const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _152 => _152.workspaceRoot]), () => ( _chunkAEVVXIO6cjs.findWorkspaceRoot.call(void 0, )));
47368
+ const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _152 => _152.workspaceRoot]), () => ( _chunkYEFBCXENcjs.findWorkspaceRoot.call(void 0, )));
47372
47369
  if (args.verbose) {
47373
47370
  process.env.NX_VERBOSE_LOGGING = "true";
47374
47371
  }
@@ -47383,10 +47380,10 @@ async function releaseVersion(config, args) {
47383
47380
  ]);
47384
47381
  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".`);
47385
47382
  }
47386
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
47383
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "Filtering projects and release groups", config);
47387
47384
  const { error: filterError, releaseGroups, releaseGroupToFilteredProjects } = _filterreleasegroupsjs.filterReleaseGroups.call(void 0, projectGraph, nxReleaseConfig, args.projects, args.groups);
47388
47385
  if (filterError) {
47389
- _chunkAEVVXIO6cjs.writeError.call(void 0, filterError.title, config);
47386
+ _chunkYEFBCXENcjs.writeError.call(void 0, filterError.title, config);
47390
47387
  throw new Error(filterError.title);
47391
47388
  }
47392
47389
  const tree = new (0, _treejs.FsTree)(workspaceRoot2, true);
@@ -47395,10 +47392,10 @@ async function releaseVersion(config, args) {
47395
47392
  const additionalChangedFiles = /* @__PURE__ */ new Set();
47396
47393
  const generatorCallbacks = [];
47397
47394
  if (_optionalChain([args, 'access', _158 => _158.projects, 'optionalAccess', _159 => _159.length])) {
47398
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
47395
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "Run versioning for all remaining release groups and filtered projects within them", config);
47399
47396
  for (const releaseGroup of releaseGroups) {
47400
47397
  const releaseGroupName = releaseGroup.name;
47401
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
47398
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, `Running versioning for release group "${releaseGroupName}" and filtered projects within it`, config);
47402
47399
  const releaseGroupProjectNames = Array.from(_nullishCoalesce(releaseGroupToFilteredProjects.get(releaseGroup), () => ( [])));
47403
47400
  const projectBatches = _batchprojectsbygeneratorconfigjs.batchProjectsByGeneratorConfig.call(void 0,
47404
47401
  projectGraph,
@@ -47407,7 +47404,7 @@ async function releaseVersion(config, args) {
47407
47404
  releaseGroupProjectNames
47408
47405
  );
47409
47406
  for (const [generatorConfigString, projectNames] of projectBatches.entries()) {
47410
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
47407
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, `Running versioning for batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, config);
47411
47408
  const [generatorName, generatorOptions] = JSON.parse(generatorConfigString);
47412
47409
  const generatorData = resolveGeneratorData({
47413
47410
  ...extractGeneratorCollectionAndName(`batch "${JSON.stringify(projectNames)}" for release-group "${releaseGroupName}"`, generatorName),
@@ -47460,7 +47457,7 @@ async function releaseVersion(config, args) {
47460
47457
  gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _166 => _166.version, 'access', _167 => _167.git, 'access', _168 => _168.commitArgs])
47461
47458
  });
47462
47459
  } else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _169 => _169.version, 'access', _170 => _170.git, 'access', _171 => _171.stageChanges])))) {
47463
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "Staging changed files with git", config);
47460
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "Staging changed files with git", config);
47464
47461
  await _gitjs.gitAdd.call(void 0, {
47465
47462
  changedFiles: changedFiles2,
47466
47463
  dryRun: args.dryRun,
@@ -47468,7 +47465,7 @@ async function releaseVersion(config, args) {
47468
47465
  });
47469
47466
  }
47470
47467
  if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _172 => _172.version, 'access', _173 => _173.git, 'access', _174 => _174.tag])))) {
47471
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "Tagging commit with git", config);
47468
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "Tagging commit with git", config);
47472
47469
  for (const tag of gitTagValues2) {
47473
47470
  await _gitjs.gitTag.call(void 0, {
47474
47471
  tag,
@@ -47555,7 +47552,7 @@ async function releaseVersion(config, args) {
47555
47552
  gitCommitArgs: args.gitCommitArgs || _optionalChain([nxReleaseConfig, 'optionalAccess', _190 => _190.version, 'access', _191 => _191.git, 'access', _192 => _192.commitArgs])
47556
47553
  });
47557
47554
  } else if (_nullishCoalesce(args.stageChanges, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _193 => _193.version, 'access', _194 => _194.git, 'access', _195 => _195.stageChanges])))) {
47558
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "Staging changed files with git", config);
47555
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "Staging changed files with git", config);
47559
47556
  await _gitjs.gitAdd.call(void 0, {
47560
47557
  changedFiles,
47561
47558
  dryRun: args.dryRun,
@@ -47563,7 +47560,7 @@ async function releaseVersion(config, args) {
47563
47560
  });
47564
47561
  }
47565
47562
  if (_nullishCoalesce(args.gitTag, () => ( _optionalChain([nxReleaseConfig, 'optionalAccess', _196 => _196.version, 'access', _197 => _197.git, 'access', _198 => _198.tag])))) {
47566
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "Tagging commit with git", config);
47563
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "Tagging commit with git", config);
47567
47564
  for (const tag of gitTagValues) {
47568
47565
  await _gitjs.gitTag.call(void 0, {
47569
47566
  tag,
@@ -47581,7 +47578,7 @@ async function releaseVersion(config, args) {
47581
47578
  }
47582
47579
  _chunkEM6PLOYYcjs.__name.call(void 0, releaseVersion, "releaseVersion");
47583
47580
  async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, generatorData, projectNames, releaseGroup, versionData) {
47584
- const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _205 => _205.workspaceRoot]), () => ( _chunkAEVVXIO6cjs.findWorkspaceRoot.call(void 0, )));
47581
+ const workspaceRoot2 = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _205 => _205.workspaceRoot]), () => ( _chunkYEFBCXENcjs.findWorkspaceRoot.call(void 0, )));
47585
47582
  const generatorOptions = {
47586
47583
  // Always ensure a string to avoid generator schema validation errors
47587
47584
  specifier: _nullishCoalesce(args.specifier, () => ( "")),
@@ -47600,7 +47597,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
47600
47597
  throw new Error(`The version generator ${generatorData.collectionName}:${generatorData.normalizedGeneratorName} returned a function instead of an expected ReleaseVersionGeneratorResult`);
47601
47598
  }
47602
47599
  appendVersionData(versionData, versionResult.data);
47603
- _chunkAEVVXIO6cjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
47600
+ _chunkYEFBCXENcjs.writeDebug.call(void 0, `Updated version data: ${JSON.stringify(versionData, null, 2)}`, config);
47604
47601
  return versionResult.callback;
47605
47602
  }
47606
47603
  _chunkEM6PLOYYcjs.__name.call(void 0, runVersionOnProjects, "runVersionOnProjects");
@@ -47608,10 +47605,10 @@ function printAndFlushChanges(config, tree, isDryRun) {
47608
47605
  const changes = tree.listChanges();
47609
47606
  for (const f of changes) {
47610
47607
  if (f.type === "CREATE") {
47611
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
47608
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, `CREATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
47612
47609
  _printchangesjs.printDiff.call(void 0, "", _optionalChain([f, 'access', _206 => _206.content, 'optionalAccess', _207 => _207.toString, 'call', _208 => _208()]) || "");
47613
47610
  } else if (f.type === "UPDATE") {
47614
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
47611
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, `UPDATE ${f.path}${isDryRun ? " [dry-run]" : ""}`, config);
47615
47612
  const currentContentsOnDisk = _fs.readFileSync.call(void 0, _devkitexportsjs.joinPathFragments.call(void 0, tree.root, f.path)).toString();
47616
47613
  _printchangesjs.printDiff.call(void 0, currentContentsOnDisk, _optionalChain([f, 'access', _209 => _209.content, 'optionalAccess', _210 => _210.toString, 'call', _211 => _211()]) || "");
47617
47614
  } else if (f.type === "DELETE") {
@@ -47684,12 +47681,12 @@ var runRelease = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (co
47684
47681
  process.env.NODE_AUTH_TOKEN = process.env.NPM_TOKEN;
47685
47682
  process.env.NPM_AUTH_TOKEN = process.env.NPM_TOKEN;
47686
47683
  process.env.NPM_CONFIG_PROVENANCE = "true";
47687
- _chunkAEVVXIO6cjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
47684
+ _chunkYEFBCXENcjs.writeDebug.call(void 0, "Creating workspace Project Graph data...", config);
47688
47685
  const nxJson = _nxjsonjs.readNxJson.call(void 0, );
47689
- _chunkAEVVXIO6cjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
47686
+ _chunkYEFBCXENcjs.writeDebug.call(void 0, "Reading in the workspaces release configuration", config);
47690
47687
  const to = options.head || process.env.NX_HEAD;
47691
47688
  const from = options.base || process.env.NX_BASE;
47692
- _chunkAEVVXIO6cjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
47689
+ _chunkYEFBCXENcjs.writeDebug.call(void 0, `Using the following Git SHAs to determine the release content:
47693
47690
  - From: ${from}
47694
47691
  - To: ${to}
47695
47692
  `, config);
@@ -47701,14 +47698,14 @@ var runRelease = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (co
47701
47698
  }, {});
47702
47699
  }
47703
47700
  const nxReleaseConfig = _chunkJMRHG3KScjs.defu.call(void 0, nxJson.release, DEFAULT_RELEASE_CONFIG);
47704
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
47705
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, nxReleaseConfig, config);
47701
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "Using the following `nx.json` release configuration values", config);
47702
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, nxReleaseConfig, config);
47706
47703
  const releaseChangelog = _changelogjs.createAPI.call(void 0, nxReleaseConfig);
47707
47704
  const releasePublish = _publishjs.createAPI.call(void 0, nxReleaseConfig);
47708
- _chunkAEVVXIO6cjs.writeDebug.call(void 0, "Determining the current release versions...", config);
47705
+ _chunkYEFBCXENcjs.writeDebug.call(void 0, "Determining the current release versions...", config);
47709
47706
  const { workspaceVersion, projectsVersionData } = await releaseVersion(config, {
47710
47707
  dryRun: false,
47711
- verbose: _chunkAEVVXIO6cjs.isVerbose.call(void 0, config.logLevel),
47708
+ verbose: _chunkYEFBCXENcjs.isVerbose.call(void 0, config.logLevel),
47712
47709
  preid: config.preid,
47713
47710
  deleteVersionPlans: false,
47714
47711
  stageChanges: true,
@@ -47720,25 +47717,25 @@ var runRelease = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, async (co
47720
47717
  version: _optionalChain([nxReleaseConfig, 'optionalAccess', _214 => _214.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
47721
47718
  versionData: projectsVersionData,
47722
47719
  dryRun: false,
47723
- verbose: _chunkAEVVXIO6cjs.isVerbose.call(void 0, config.logLevel),
47720
+ verbose: _chunkYEFBCXENcjs.isVerbose.call(void 0, config.logLevel),
47724
47721
  to,
47725
47722
  from,
47726
47723
  gitCommit: true,
47727
47724
  gitCommitMessage: "release(monorepo): Publish workspace release updates"
47728
47725
  });
47729
- _chunkAEVVXIO6cjs.writeDebug.call(void 0, "Tagging commit with git", config);
47726
+ _chunkYEFBCXENcjs.writeDebug.call(void 0, "Tagging commit with git", config);
47730
47727
  if (options.skipPublish) {
47731
- _chunkAEVVXIO6cjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
47728
+ _chunkYEFBCXENcjs.writeWarning.call(void 0, "Skipping publishing packages since `skipPublish` was provided as `true` in the release options.", config);
47732
47729
  } else {
47733
47730
  const changedProjects = Object.keys(projectsVersionData).filter((key) => _optionalChain([projectsVersionData, 'access', _215 => _215[key], 'optionalAccess', _216 => _216.newVersion]));
47734
47731
  if (changedProjects.length > 0) {
47735
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
47732
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, `Publishing release for ${changedProjects.length} ${changedProjects.length === 1 ? "project" : "projects"}:
47736
47733
  ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
47737
47734
  `, config);
47738
47735
  const result2 = await releasePublish({
47739
47736
  ...options,
47740
47737
  dryRun: !!options.dryRun,
47741
- verbose: _chunkAEVVXIO6cjs.isVerbose.call(void 0, config.logLevel)
47738
+ verbose: _chunkYEFBCXENcjs.isVerbose.call(void 0, config.logLevel)
47742
47739
  });
47743
47740
  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);
47744
47741
  if (failedProjects.length > 0) {
@@ -47749,13 +47746,13 @@ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_op
47749
47746
  `);
47750
47747
  }
47751
47748
  } else {
47752
- _chunkAEVVXIO6cjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
47749
+ _chunkYEFBCXENcjs.writeWarning.call(void 0, "Skipped publishing packages.", config);
47753
47750
  }
47754
47751
  }
47755
- _chunkAEVVXIO6cjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
47752
+ _chunkYEFBCXENcjs.writeSuccess.call(void 0, "Completed the Storm workspace release process!", config);
47756
47753
  } catch (error) {
47757
- _chunkAEVVXIO6cjs.writeFatal.call(void 0, "An exception was thrown while running the Storm release workflow.", config);
47758
- error.message && _chunkAEVVXIO6cjs.writeError.call(void 0, `${error.name ? `${error.name}: ` : ""}${error.message}${error.stack ? `
47754
+ _chunkYEFBCXENcjs.writeFatal.call(void 0, "An exception was thrown while running the Storm release workflow.", config);
47755
+ error.message && _chunkYEFBCXENcjs.writeError.call(void 0, `${error.name ? `${error.name}: ` : ""}${error.message}${error.stack ? `
47759
47756
  ${error.stack}` : ""}`, config);
47760
47757
  throw error;
47761
47758
  }
@@ -47765,8 +47762,8 @@ ${error.stack}` : ""}`, config);
47765
47762
  var _config = {};
47766
47763
  function createProgram(config) {
47767
47764
  _config = config;
47768
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
47769
- const root2 = _chunkAEVVXIO6cjs.findWorkspaceRootSafe.call(void 0, process.cwd());
47765
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "\u26A1 Running Storm Git Tools", config);
47766
+ const root2 = _chunkYEFBCXENcjs.findWorkspaceRootSafe.call(void 0, process.cwd());
47770
47767
  process.env.STORM_WORKSPACE_ROOT ??= root2;
47771
47768
  process.env.NX_WORKSPACE_ROOT_PATH ??= root2;
47772
47769
  root2 && process.chdir(root2);
@@ -47794,14 +47791,14 @@ function createProgram(config) {
47794
47791
  _chunkEM6PLOYYcjs.__name.call(void 0, createProgram, "createProgram");
47795
47792
  async function commitAction({ config = "@storm-software/git-tools/commit/config.js", dryRun = false }) {
47796
47793
  try {
47797
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
47794
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, `\u26A1 Preparing to commit your changes. Please provide the requested details below...`, _config);
47798
47795
  await runCommit(config, dryRun);
47799
- _chunkAEVVXIO6cjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
47796
+ _chunkYEFBCXENcjs.writeSuccess.call(void 0, `\u{1F389} Storm Commit processing completed successfully!
47800
47797
 
47801
47798
  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}
47802
47799
  `, _config);
47803
47800
  } catch (error) {
47804
- _chunkAEVVXIO6cjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
47801
+ _chunkYEFBCXENcjs.writeFatal.call(void 0, `A fatal error occurred while running commit action:
47805
47802
 
47806
47803
  ${error.message}`, _config);
47807
47804
  throw new Error(error.message, {
@@ -47812,11 +47809,11 @@ ${error.message}`, _config);
47812
47809
  _chunkEM6PLOYYcjs.__name.call(void 0, commitAction, "commitAction");
47813
47810
  async function readmeAction(options) {
47814
47811
  try {
47815
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
47812
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "\u26A1 Formatting the workspace's README.md files", _config);
47816
47813
  await runReadme(options);
47817
- _chunkAEVVXIO6cjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
47814
+ _chunkYEFBCXENcjs.writeSuccess.call(void 0, "Formatting of the workspace's README.md files is complete\n", _config);
47818
47815
  } catch (error) {
47819
- _chunkAEVVXIO6cjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
47816
+ _chunkYEFBCXENcjs.writeFatal.call(void 0, `A fatal error occurred while running README format action:
47820
47817
 
47821
47818
  ${error.message}`);
47822
47819
  throw new Error(error.message, {
@@ -47827,19 +47824,19 @@ ${error.message}`);
47827
47824
  _chunkEM6PLOYYcjs.__name.call(void 0, readmeAction, "readmeAction");
47828
47825
  async function releaseAction({ project, base, head, dryRun }) {
47829
47826
  try {
47830
- _chunkAEVVXIO6cjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
47827
+ _chunkYEFBCXENcjs.writeInfo.call(void 0, "\u26A1 Running the Storm Release and Publish process on the workspace", _config);
47831
47828
  await runRelease(_config, {
47832
47829
  dryRun,
47833
47830
  project,
47834
47831
  base,
47835
47832
  head
47836
47833
  });
47837
- _chunkAEVVXIO6cjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
47834
+ _chunkYEFBCXENcjs.writeSuccess.call(void 0, "Release completed successfully!\n", _config);
47838
47835
  } catch (error) {
47839
- _chunkAEVVXIO6cjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
47836
+ _chunkYEFBCXENcjs.writeFatal.call(void 0, `A fatal error occurred while running release action:
47840
47837
 
47841
47838
  ${error.message}`, _config);
47842
- _chunkAEVVXIO6cjs.writeFatal.call(void 0, error, _config);
47839
+ _chunkYEFBCXENcjs.writeFatal.call(void 0, error, _config);
47843
47840
  console.error("");
47844
47841
  console.error("Fatal release error: ");
47845
47842
  console.error(error);
@@ -47852,15 +47849,15 @@ ${error.message}`, _config);
47852
47849
  _chunkEM6PLOYYcjs.__name.call(void 0, releaseAction, "releaseAction");
47853
47850
  async function commitLintAction({ config, message: message2, file }) {
47854
47851
  try {
47855
- _chunkAEVVXIO6cjs.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);
47852
+ _chunkYEFBCXENcjs.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);
47856
47853
  await runCommitLint(_config, {
47857
47854
  config,
47858
47855
  message: message2,
47859
47856
  file
47860
47857
  });
47861
- _chunkAEVVXIO6cjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
47858
+ _chunkYEFBCXENcjs.writeSuccess.call(void 0, "Linting the commit messages completed successfully!\n", _config);
47862
47859
  } catch (error) {
47863
- _chunkAEVVXIO6cjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
47860
+ _chunkYEFBCXENcjs.writeFatal.call(void 0, `A fatal error occurred while linting the commit messages:
47864
47861
 
47865
47862
  ${error.message}`, _config);
47866
47863
  throw new Error(error.message, {
@@ -47872,18 +47869,18 @@ _chunkEM6PLOYYcjs.__name.call(void 0, commitLintAction, "commitLintAction");
47872
47869
 
47873
47870
  // bin/git.ts
47874
47871
  void (async () => {
47875
- const config = await _chunkAEVVXIO6cjs.loadStormConfig.call(void 0, );
47872
+ const config = await _chunkYEFBCXENcjs.loadStormConfig.call(void 0, );
47876
47873
  try {
47877
- _chunkAEVVXIO6cjs.handleProcess.call(void 0, config);
47874
+ _chunkYEFBCXENcjs.handleProcess.call(void 0, config);
47878
47875
  const program2 = createProgram(config);
47879
47876
  await program2.parseAsync(process.argv);
47880
- _chunkAEVVXIO6cjs.writeSuccess.call(void 0, `\u{1F389} Git ${process.argv && process.argv.length >= 3 && process.argv[2] ? process.argv[2] : "tool"} processing completed successfully!`, config);
47881
- _chunkAEVVXIO6cjs.exitWithSuccess.call(void 0, config);
47877
+ _chunkYEFBCXENcjs.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
+ _chunkYEFBCXENcjs.exitWithSuccess.call(void 0, config);
47882
47879
  } catch (error) {
47883
- _chunkAEVVXIO6cjs.writeFatal.call(void 0, `A fatal error occurred while running the Storm Git tool:
47880
+ _chunkYEFBCXENcjs.writeFatal.call(void 0, `A fatal error occurred while running the Storm Git tool:
47884
47881
  ${_optionalChain([error, 'optionalAccess', _223 => _223.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _224 => _224.stack]) ? `
47885
47882
  Stack Trace: ${error.stack}` : ""}`, config);
47886
- _chunkAEVVXIO6cjs.exitWithError.call(void 0, config);
47883
+ _chunkYEFBCXENcjs.exitWithError.call(void 0, config);
47887
47884
  process.exit(1);
47888
47885
  }
47889
47886
  })();
package/bin/git.js CHANGED
@@ -15,7 +15,6 @@ import {
15
15
  joinPaths,
16
16
  loadStormConfig,
17
17
  require_ansi_styles,
18
- require_devkit,
19
18
  require_supports_color,
20
19
  writeDebug,
21
20
  writeError,
@@ -23,7 +22,7 @@ import {
23
22
  writeInfo,
24
23
  writeSuccess,
25
24
  writeWarning
26
- } from "./chunk-7YWABTXO.js";
25
+ } from "./chunk-PQ4MPWYV.js";
27
26
  import {
28
27
  defu
29
28
  } from "./chunk-BNZUDAPR.js";
@@ -33467,14 +33466,12 @@ __name(lint, "lint");
33467
33466
 
33468
33467
  // src/commitlint/scope.ts
33469
33468
  init_esm_shims();
33470
- import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph.js";
33469
+ import { readCachedProjectGraph, readProjectsConfigurationFromProjectGraph } from "nx/src/project-graph/project-graph";
33471
33470
  async function getNxScopes(context, selector = (params) => true) {
33472
33471
  const ctx = context || {};
33473
33472
  const workspaceRoot2 = process.env.NX_WORKSPACE_ROOT_PATH || process.env.STORM_WORKSPACE_ROOT || ctx.cwd || process.cwd();
33474
33473
  process.env.NX_WORKSPACE_ROOT_PATH ??= workspaceRoot2;
33475
- const projectGraph = await createProjectGraphAsync({
33476
- exitOnError: true
33477
- });
33474
+ const projectGraph = readCachedProjectGraph();
33478
33475
  const projectConfigs = readProjectsConfigurationFromProjectGraph(projectGraph);
33479
33476
  const result2 = Object.entries(projectConfigs.projects || {}).map(([name, project]) => ({
33480
33477
  name,
@@ -34690,8 +34687,8 @@ var NodeHfs = class extends Hfs {
34690
34687
  var hfs = new NodeHfs();
34691
34688
 
34692
34689
  // src/commit/commit-state.ts
34693
- var import_devkit = __toESM(require_devkit(), 1);
34694
34690
  import { execSync } from "node:child_process";
34691
+ import { readCachedProjectConfiguration } from "nx/src/project-graph/project-graph";
34695
34692
 
34696
34693
  // src/commit/config.ts
34697
34694
  init_esm_shims();
@@ -34766,10 +34763,6 @@ var createState = /* @__PURE__ */ __name(async (config, commitizenFile = "@storm
34766
34763
  if (!state.config.prompt.questions.scope || !state.config.prompt.questions.scope.enum || Object.keys(state.config.prompt.questions.scope.enum).length === 0) {
34767
34764
  const workspaceRoot2 = config.workspaceRoot || process.env.NX_WORKSPACE_ROOT_PATH || process.env.STORM_WORKSPACE_ROOT || process.cwd();
34768
34765
  process.env.NX_WORKSPACE_ROOT_PATH ??= workspaceRoot2;
34769
- const projectGraph = await (0, import_devkit.createProjectGraphAsync)({
34770
- exitOnError: true
34771
- });
34772
- const projectConfigs = (0, import_devkit.readProjectsConfigurationFromProjectGraph)(projectGraph);
34773
34766
  const scopes = await getScopeEnum({});
34774
34767
  for (const scope of scopes) {
34775
34768
  if (scope === "monorepo") {
@@ -34780,7 +34773,11 @@ var createState = /* @__PURE__ */ __name(async (config, commitizenFile = "@storm
34780
34773
  projectRoot: "/"
34781
34774
  };
34782
34775
  } else {
34783
- const project = projectConfigs.projects[scope];
34776
+ let project;
34777
+ try {
34778
+ project = readCachedProjectConfiguration(scope);
34779
+ } catch (_3) {
34780
+ }
34784
34781
  if (project) {
34785
34782
  let description = `${project.name} - ${project.root}`;
34786
34783
  const packageJsonPath = joinPaths(project.root, "package.json");
@@ -34955,7 +34952,7 @@ var askQuestion = /* @__PURE__ */ __name((index, question) => {
34955
34952
  init_esm_shims();
34956
34953
  import { existsSync as existsSync3, readFileSync as readFileSync3, readdirSync as readdirSync2, rmSync, writeFileSync as writeFileSync2 } from "node:fs";
34957
34954
  import { join as join5 } from "node:path";
34958
- import { createProjectGraphAsync as createProjectGraphAsync3, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3 } from "nx/src/project-graph/project-graph.js";
34955
+ import { createProjectGraphAsync, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph2 } from "nx/src/project-graph/project-graph.js";
34959
34956
 
34960
34957
  // src/utilities/file-utils.ts
34961
34958
  init_esm_shims();
@@ -47163,10 +47160,10 @@ var createRegExp = /* @__PURE__ */ __name((sectionName) => {
47163
47160
 
47164
47161
  // src/readme/run.ts
47165
47162
  var runReadme = /* @__PURE__ */ __name(async ({ templates = "./tools/readme-templates", project, output, clean = true, prettier = true }) => {
47166
- const projectGraph = await createProjectGraphAsync3({
47163
+ const projectGraph = await createProjectGraphAsync({
47167
47164
  exitOnError: true
47168
47165
  });
47169
- const projectConfigs = readProjectsConfigurationFromProjectGraph3(projectGraph);
47166
+ const projectConfigs = readProjectsConfigurationFromProjectGraph2(projectGraph);
47170
47167
  if (project) {
47171
47168
  await runProjectReadme(project, {
47172
47169
  templates,
@@ -47186,10 +47183,10 @@ var runReadme = /* @__PURE__ */ __name(async ({ templates = "./tools/readme-temp
47186
47183
  }
47187
47184
  }, "runReadme");
47188
47185
  var runProjectReadme = /* @__PURE__ */ __name(async (projectName, { templates, output, clean = true, prettier = true }) => {
47189
- const projectGraph = await createProjectGraphAsync3({
47186
+ const projectGraph = await createProjectGraphAsync({
47190
47187
  exitOnError: true
47191
47188
  });
47192
- const projectConfigs = readProjectsConfigurationFromProjectGraph3(projectGraph);
47189
+ const projectConfigs = readProjectsConfigurationFromProjectGraph2(projectGraph);
47193
47190
  const project = projectConfigs.projects[projectName];
47194
47191
  const inputFile = join5(project?.root ?? "./", "README.md");
47195
47192
  if (existsSync3(inputFile)) {
@@ -47358,14 +47355,14 @@ import { readNxJson } from "nx/src/config/nx-json.js";
47358
47355
  import { joinPathFragments, workspaceRoot } from "nx/src/devkit-exports.js";
47359
47356
  import { flushChanges, FsTree } from "nx/src/generators/tree.js";
47360
47357
  import { createProjectFileMapUsingProjectGraph } from "nx/src/project-graph/file-map-utils.js";
47361
- import { createProjectGraphAsync as createProjectGraphAsync4, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph4 } from "nx/src/project-graph/project-graph.js";
47358
+ import { createProjectGraphAsync as createProjectGraphAsync2, readProjectsConfigurationFromProjectGraph as readProjectsConfigurationFromProjectGraph3 } from "nx/src/project-graph/project-graph.js";
47362
47359
  import { combineOptionsForGenerator } from "nx/src/utils/params.js";
47363
47360
  async function releaseVersion(config, args) {
47364
47361
  writeInfo("Running release version command", config);
47365
- const projectGraph = await createProjectGraphAsync4({
47362
+ const projectGraph = await createProjectGraphAsync2({
47366
47363
  exitOnError: true
47367
47364
  });
47368
- const { projects } = readProjectsConfigurationFromProjectGraph4(projectGraph);
47365
+ const { projects } = readProjectsConfigurationFromProjectGraph3(projectGraph);
47369
47366
  const nxJson = readNxJson();
47370
47367
  const workspaceRoot2 = config?.workspaceRoot ?? findWorkspaceRoot();
47371
47368
  if (args.verbose) {
@@ -47592,7 +47589,7 @@ async function runVersionOnProjects(config, projectGraph, nxJson, args, tree, ge
47592
47589
  releaseGroup,
47593
47590
  firstRelease: args.firstRelease ?? false
47594
47591
  };
47595
- const combinedOpts = await combineOptionsForGenerator(generatorOptions, generatorData.collectionName, generatorData.normalizedGeneratorName, readProjectsConfigurationFromProjectGraph4(projectGraph), nxJson, generatorData.schema, false, null, relative(process.cwd(), workspaceRoot2), args.verbose);
47592
+ const combinedOpts = await combineOptionsForGenerator(generatorOptions, generatorData.collectionName, generatorData.normalizedGeneratorName, readProjectsConfigurationFromProjectGraph3(projectGraph), nxJson, generatorData.schema, false, null, relative(process.cwd(), workspaceRoot2), args.verbose);
47596
47593
  const releaseVersionGenerator = generatorData.implementationFactory();
47597
47594
  const versionResult = await releaseVersionGenerator(tree, combinedOpts);
47598
47595
  if (typeof versionResult === "function") {