nx 22.6.0 → 22.6.2

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.
Files changed (201) hide show
  1. package/bin/nx.js +19 -11
  2. package/package.json +11 -12
  3. package/release/changelog-renderer/index.d.ts +2 -1
  4. package/release/changelog-renderer/index.d.ts.map +1 -1
  5. package/schemas/nx-schema.json +102 -0
  6. package/src/adapter/ngcli-adapter.d.ts +8 -5
  7. package/src/adapter/ngcli-adapter.d.ts.map +1 -1
  8. package/src/adapter/ngcli-adapter.js +33 -19
  9. package/src/ai/clone-ai-config-repo.d.ts.map +1 -1
  10. package/src/ai/clone-ai-config-repo.js +2 -0
  11. package/src/command-line/add/add.js +1 -1
  12. package/src/command-line/examples.d.ts +7 -0
  13. package/src/command-line/examples.d.ts.map +1 -1
  14. package/src/command-line/examples.js +29 -1
  15. package/src/command-line/exec/exec.js +3 -3
  16. package/src/command-line/format/format.js +3 -3
  17. package/src/command-line/generate/generate.d.ts.map +1 -1
  18. package/src/command-line/generate/generate.js +1 -1
  19. package/src/command-line/graph/graph.js +1 -1
  20. package/src/command-line/init/command-object.js +1 -21
  21. package/src/command-line/init/configure-plugins.js +1 -1
  22. package/src/command-line/init/implementation/angular/integrated-workspace.js +1 -1
  23. package/src/command-line/init/implementation/angular/legacy-angular-versions.js +2 -2
  24. package/src/command-line/init/implementation/deduce-default-base.js +5 -5
  25. package/src/command-line/init/implementation/dot-nx/add-nx-scripts.js +2 -2
  26. package/src/command-line/init/implementation/dot-nx/nxw.js +1 -1
  27. package/src/command-line/init/implementation/utils.d.ts +1 -2
  28. package/src/command-line/init/implementation/utils.d.ts.map +1 -1
  29. package/src/command-line/init/implementation/utils.js +1 -15
  30. package/src/command-line/init/init-v1.d.ts +0 -3
  31. package/src/command-line/init/init-v1.d.ts.map +1 -1
  32. package/src/command-line/init/init-v1.js +1 -27
  33. package/src/command-line/init/init-v2.d.ts +0 -1
  34. package/src/command-line/init/init-v2.d.ts.map +1 -1
  35. package/src/command-line/init/init-v2.js +7 -35
  36. package/src/command-line/mcp/mcp.d.ts.map +1 -1
  37. package/src/command-line/mcp/mcp.js +2 -0
  38. package/src/command-line/migrate/migrate-ui-api.d.ts.map +1 -1
  39. package/src/command-line/migrate/migrate-ui-api.js +13 -0
  40. package/src/command-line/migrate/migrate.d.ts.map +1 -1
  41. package/src/command-line/migrate/migrate.js +41 -23
  42. package/src/command-line/migrate/run-migration-process.js +2 -0
  43. package/src/command-line/nx-cloud/connect/view-logs.js +1 -1
  44. package/src/command-line/nx-commands.js +65 -65
  45. package/src/command-line/release/config/version-plans.js +1 -1
  46. package/src/command-line/release/utils/exec-command.js +1 -1
  47. package/src/command-line/release/utils/launch-editor.js +2 -2
  48. package/src/command-line/release/utils/remote-release-clients/github.d.ts +1 -0
  49. package/src/command-line/release/utils/remote-release-clients/github.d.ts.map +1 -1
  50. package/src/command-line/release/utils/remote-release-clients/github.js +39 -2
  51. package/src/command-line/release/utils/remote-release-clients/gitlab.d.ts.map +1 -1
  52. package/src/command-line/release/utils/remote-release-clients/gitlab.js +1 -0
  53. package/src/command-line/release/version/release-group-processor.d.ts.map +1 -1
  54. package/src/command-line/release/version/release-group-processor.js +2 -4
  55. package/src/command-line/release/version.js +1 -1
  56. package/src/command-line/run/run-one.d.ts.map +1 -1
  57. package/src/command-line/run/run-one.js +1 -1
  58. package/src/command-line/run/run.d.ts.map +1 -1
  59. package/src/command-line/run/run.js +2 -2
  60. package/src/command-line/show/target.js +5 -2
  61. package/src/command-line/watch/watch.js +1 -1
  62. package/src/core/graph/main.js +1 -1
  63. package/src/daemon/client/client.d.ts +2 -2
  64. package/src/daemon/client/client.d.ts.map +1 -1
  65. package/src/daemon/client/client.js +3 -2
  66. package/src/daemon/client/generate-help-output.js +1 -1
  67. package/src/daemon/server/handle-configure-ai-agents.js +11 -4
  68. package/src/daemon/server/handle-hash-tasks.d.ts +1 -0
  69. package/src/daemon/server/handle-hash-tasks.d.ts.map +1 -1
  70. package/src/daemon/server/handle-hash-tasks.js +1 -1
  71. package/src/daemon/server/project-graph-incremental-recomputation.d.ts +1 -1
  72. package/src/daemon/server/project-graph-incremental-recomputation.d.ts.map +1 -1
  73. package/src/daemon/server/project-graph-listener-sockets.d.ts +1 -1
  74. package/src/daemon/server/project-graph-listener-sockets.d.ts.map +1 -1
  75. package/src/daemon/server/shutdown-utils.js +1 -1
  76. package/src/devkit-internals.d.ts +3 -2
  77. package/src/devkit-internals.d.ts.map +1 -1
  78. package/src/devkit-internals.js +5 -4
  79. package/src/executors/run-commands/run-commands.impl.d.ts.map +1 -1
  80. package/src/executors/run-commands/run-commands.impl.js +60 -7
  81. package/src/executors/run-commands/running-tasks.d.ts.map +1 -1
  82. package/src/executors/run-commands/running-tasks.js +1 -5
  83. package/src/executors/run-script/run-script.impl.js +1 -1
  84. package/src/executors/utils/convert-nx-executor.js +2 -2
  85. package/src/generators/utils/project-configuration.js +4 -4
  86. package/src/hasher/hash-plan-inspector.d.ts.map +1 -1
  87. package/src/hasher/hash-plan-inspector.js +1 -1
  88. package/src/hasher/native-task-hasher-impl.d.ts +2 -2
  89. package/src/hasher/native-task-hasher-impl.d.ts.map +1 -1
  90. package/src/hasher/native-task-hasher-impl.js +6 -6
  91. package/src/hasher/task-hasher.d.ts +4 -4
  92. package/src/hasher/task-hasher.d.ts.map +1 -1
  93. package/src/hasher/task-hasher.js +9 -6
  94. package/src/native/index.d.ts +1 -1
  95. package/src/native/nx.wasm32-wasi.debug.wasm +0 -0
  96. package/src/native/nx.wasm32-wasi.wasm +0 -0
  97. package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +1 -1
  98. package/src/plugins/js/lock-file/bun-parser.js +1 -1
  99. package/src/plugins/js/lock-file/lock-file.d.ts.map +1 -1
  100. package/src/plugins/js/lock-file/lock-file.js +3 -1
  101. package/src/project-graph/build-project-graph.d.ts +1 -1
  102. package/src/project-graph/build-project-graph.d.ts.map +1 -1
  103. package/src/project-graph/build-project-graph.js +2 -2
  104. package/src/project-graph/error-types.d.ts +2 -1
  105. package/src/project-graph/error-types.d.ts.map +1 -1
  106. package/src/project-graph/file-utils.d.ts.map +1 -1
  107. package/src/project-graph/file-utils.js +4 -2
  108. package/src/project-graph/nx-deps-cache.d.ts +1 -1
  109. package/src/project-graph/nx-deps-cache.d.ts.map +1 -1
  110. package/src/project-graph/plugins/isolation/isolated-plugin.js +5 -5
  111. package/src/project-graph/project-graph.d.ts +2 -2
  112. package/src/project-graph/utils/project-configuration/name-substitution-manager.d.ts +23 -18
  113. package/src/project-graph/utils/project-configuration/name-substitution-manager.d.ts.map +1 -1
  114. package/src/project-graph/utils/project-configuration/name-substitution-manager.js +129 -87
  115. package/src/project-graph/utils/project-configuration/project-nodes-manager.d.ts +40 -0
  116. package/src/project-graph/utils/project-configuration/project-nodes-manager.d.ts.map +1 -0
  117. package/src/project-graph/utils/project-configuration/project-nodes-manager.js +264 -0
  118. package/src/project-graph/utils/project-configuration/target-merging.d.ts +32 -0
  119. package/src/project-graph/utils/project-configuration/target-merging.d.ts.map +1 -0
  120. package/src/project-graph/utils/project-configuration/target-merging.js +332 -0
  121. package/src/project-graph/utils/project-configuration/target-normalization.d.ts +13 -0
  122. package/src/project-graph/utils/project-configuration/target-normalization.d.ts.map +1 -0
  123. package/src/project-graph/utils/project-configuration/target-normalization.js +177 -0
  124. package/src/project-graph/utils/project-configuration-utils.d.ts +16 -41
  125. package/src/project-graph/utils/project-configuration-utils.d.ts.map +1 -1
  126. package/src/project-graph/utils/project-configuration-utils.js +56 -734
  127. package/src/tasks-runner/cache.js +1 -1
  128. package/src/tasks-runner/default-tasks-runner.js +1 -1
  129. package/src/tasks-runner/life-cycle.d.ts +4 -0
  130. package/src/tasks-runner/life-cycle.d.ts.map +1 -1
  131. package/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts.map +1 -1
  132. package/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +4 -0
  133. package/src/tasks-runner/task-orchestrator.d.ts +12 -4
  134. package/src/tasks-runner/task-orchestrator.d.ts.map +1 -1
  135. package/src/tasks-runner/task-orchestrator.js +123 -68
  136. package/src/tasks-runner/tasks-schedule.d.ts +1 -1
  137. package/src/tasks-runner/tasks-schedule.d.ts.map +1 -1
  138. package/src/tasks-runner/tasks-schedule.js +14 -3
  139. package/src/tasks-runner/utils.d.ts +2 -2
  140. package/src/tasks-runner/utils.d.ts.map +1 -1
  141. package/src/tasks-runner/utils.js +5 -7
  142. package/src/utils/ab-testing.js +1 -1
  143. package/src/utils/analytics-prompt.d.ts.map +1 -1
  144. package/src/utils/analytics-prompt.js +2 -0
  145. package/src/utils/child-process.d.ts.map +1 -1
  146. package/src/utils/child-process.js +1 -2
  147. package/src/utils/command-line-utils.js +3 -3
  148. package/src/utils/default-base.js +1 -1
  149. package/src/utils/git-utils.d.ts.map +1 -1
  150. package/src/utils/git-utils.index-filter.js +2 -2
  151. package/src/utils/git-utils.js +6 -5
  152. package/src/utils/git-utils.tree-filter.js +1 -1
  153. package/src/utils/machine-id-cache.d.ts.map +1 -1
  154. package/src/utils/machine-id-cache.js +72 -2
  155. package/src/utils/package-json.js +2 -2
  156. package/src/utils/package-manager.d.ts.map +1 -1
  157. package/src/utils/package-manager.js +8 -13
  158. package/src/utils/provenance.d.ts.map +1 -1
  159. package/src/utils/provenance.js +2 -2
  160. package/src/utils/require-nx-key.js +1 -1
  161. package/src/utils/serialize-overrides-into-command-line.d.ts.map +1 -1
  162. package/src/utils/serialize-overrides-into-command-line.js +3 -4
  163. package/src/utils/shell-quoting.d.ts +11 -0
  164. package/src/utils/shell-quoting.d.ts.map +1 -0
  165. package/src/utils/shell-quoting.js +41 -0
  166. package/src/utils/split-target.d.ts +13 -2
  167. package/src/utils/split-target.d.ts.map +1 -1
  168. package/src/utils/split-target.js +180 -31
  169. package/src/command-line/init/implementation/react/add-craco-commands-to-package-scripts.d.ts +0 -2
  170. package/src/command-line/init/implementation/react/add-craco-commands-to-package-scripts.d.ts.map +0 -1
  171. package/src/command-line/init/implementation/react/add-craco-commands-to-package-scripts.js +0 -21
  172. package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.d.ts +0 -2
  173. package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.d.ts.map +0 -1
  174. package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.js +0 -20
  175. package/src/command-line/init/implementation/react/check-for-custom-webpack-setup.d.ts +0 -2
  176. package/src/command-line/init/implementation/react/check-for-custom-webpack-setup.d.ts.map +0 -1
  177. package/src/command-line/init/implementation/react/check-for-custom-webpack-setup.js +0 -17
  178. package/src/command-line/init/implementation/react/check-for-uncommitted-changes.d.ts +0 -2
  179. package/src/command-line/init/implementation/react/check-for-uncommitted-changes.d.ts.map +0 -1
  180. package/src/command-line/init/implementation/react/check-for-uncommitted-changes.js +0 -20
  181. package/src/command-line/init/implementation/react/clean-up-files.d.ts +0 -2
  182. package/src/command-line/init/implementation/react/clean-up-files.d.ts.map +0 -1
  183. package/src/command-line/init/implementation/react/clean-up-files.js +0 -30
  184. package/src/command-line/init/implementation/react/index.d.ts +0 -5
  185. package/src/command-line/init/implementation/react/index.d.ts.map +0 -1
  186. package/src/command-line/init/implementation/react/index.js +0 -77
  187. package/src/command-line/init/implementation/react/read-name-from-package-json.d.ts +0 -2
  188. package/src/command-line/init/implementation/react/read-name-from-package-json.d.ts.map +0 -1
  189. package/src/command-line/init/implementation/react/read-name-from-package-json.js +0 -16
  190. package/src/command-line/init/implementation/react/rename-js-to-jsx.d.ts +0 -2
  191. package/src/command-line/init/implementation/react/rename-js-to-jsx.d.ts.map +0 -1
  192. package/src/command-line/init/implementation/react/rename-js-to-jsx.js +0 -22
  193. package/src/command-line/init/implementation/react/tsconfig-setup.d.ts +0 -2
  194. package/src/command-line/init/implementation/react/tsconfig-setup.d.ts.map +0 -1
  195. package/src/command-line/init/implementation/react/tsconfig-setup.js +0 -108
  196. package/src/command-line/init/implementation/react/write-vite-config.d.ts +0 -2
  197. package/src/command-line/init/implementation/react/write-vite-config.d.ts.map +0 -1
  198. package/src/command-line/init/implementation/react/write-vite-config.js +0 -53
  199. package/src/command-line/init/implementation/react/write-vite-index-html.d.ts +0 -2
  200. package/src/command-line/init/implementation/react/write-vite-index-html.d.ts.map +0 -1
  201. package/src/command-line/init/implementation/react/write-vite-index-html.js +0 -24
@@ -14,6 +14,8 @@ const pc = require("picocolors");
14
14
  const child_process_1 = require("child_process");
15
15
  const enquirer_1 = require("enquirer");
16
16
  const path_1 = require("path");
17
+ const module_1 = require("module");
18
+ const path_2 = require("../../utils/path");
17
19
  const semver_1 = require("semver");
18
20
  const node_url_1 = require("node:url");
19
21
  const util_1 = require("util");
@@ -536,13 +538,33 @@ async function parseMigrationsOptions(options) {
536
538
  }
537
539
  function createInstalledPackageVersionsResolver(root) {
538
540
  const cache = {};
541
+ const nxRequires = (0, installation_directory_1.getNxRequirePaths)(root).map((path) => (0, module_1.createRequire)((0, path_1.join)(path, 'package.json')));
539
542
  function getInstalledPackageVersion(packageName, overrides) {
540
- try {
541
- if (overrides?.[packageName]) {
542
- return overrides[packageName];
543
+ if (overrides?.[packageName]) {
544
+ return overrides[packageName];
545
+ }
546
+ if (packageName === 'nx') {
547
+ const nxVersion = cache[packageName] ??
548
+ (() => {
549
+ for (const req of nxRequires) {
550
+ try {
551
+ const packageJsonPath = req.resolve('nx/package.json');
552
+ if (packageJsonPath.startsWith(workspace_root_1.workspaceRoot)) {
553
+ return (0, fileutils_1.readJsonFile)(packageJsonPath).version;
554
+ }
555
+ }
556
+ catch { }
557
+ }
558
+ return getInstalledPackageVersion('@nrwl/workspace', overrides);
559
+ })();
560
+ if (nxVersion) {
561
+ cache[packageName] = nxVersion;
543
562
  }
563
+ return nxVersion;
564
+ }
565
+ try {
544
566
  if (!cache[packageName]) {
545
- const { packageJson, path } = (0, package_json_1.readModulePackageJson)(packageName, (0, installation_directory_1.getNxRequirePaths)());
567
+ const { packageJson, path } = (0, package_json_1.readModulePackageJson)(packageName, (0, installation_directory_1.getNxRequirePaths)(root));
546
568
  // old workspaces would have the temp installation of nx in the cache,
547
569
  // so the resolved package is not the one we need
548
570
  if (!path.startsWith(workspace_root_1.workspaceRoot)) {
@@ -553,11 +575,6 @@ function createInstalledPackageVersionsResolver(root) {
553
575
  return cache[packageName];
554
576
  }
555
577
  catch {
556
- // Support migrating old workspaces without nx package
557
- if (packageName === 'nx') {
558
- cache[packageName] = getInstalledPackageVersion('@nrwl/workspace', overrides);
559
- return cache[packageName];
560
- }
561
578
  return null;
562
579
  }
563
580
  }
@@ -590,7 +607,8 @@ function createFetcher() {
590
607
  setCache(packageName, resolvedVersion);
591
608
  return getPackageMigrationsUsingRegistry(packageName, resolvedVersion);
592
609
  })
593
- .catch(() => {
610
+ .catch((e) => {
611
+ logger_1.logger.verbose(`Failed to get migrations from registry for ${packageName}@${packageVersion}: ${e.message}. Falling back to install.`);
594
612
  logger_1.logger.info(`Fetching ${packageName}@${packageVersion}`);
595
613
  return getPackageMigrationsUsingInstall(packageName, packageVersion);
596
614
  });
@@ -663,7 +681,7 @@ async function downloadPackageMigrationsFromRegistry(packageName, packageVersion
663
681
  let result;
664
682
  try {
665
683
  const { tarballPath } = await (0, package_manager_1.packageRegistryPack)(dir, packageName, packageVersion);
666
- const migrations = await (0, fileutils_1.extractFileFromTarball)((0, path_1.join)(dir, tarballPath), (0, path_1.join)('package', migrationsFilePath), (0, path_1.join)(dir, migrationsFilePath)).then((path) => (0, fileutils_1.readJsonFile)(path));
684
+ const migrations = await (0, fileutils_1.extractFileFromTarball)((0, path_1.join)(dir, tarballPath), (0, path_2.joinPathFragments)('package', migrationsFilePath), (0, path_1.join)(dir, migrationsFilePath)).then((path) => (0, fileutils_1.readJsonFile)(path));
667
685
  result = { ...migrations, packageGroup, version: packageVersion };
668
686
  }
669
687
  catch {
@@ -684,6 +702,10 @@ async function getPackageMigrationsUsingInstall(packageName, packageVersion) {
684
702
  const pmc = (0, package_manager_1.getPackageManagerCommand)((0, package_manager_1.detectPackageManager)(dir), dir);
685
703
  await execAsync(`${pmc.add} ${packageName}@${packageVersion}`, {
686
704
  cwd: dir,
705
+ env: {
706
+ ...process.env,
707
+ npm_config_legacy_peer_deps: 'true',
708
+ },
687
709
  });
688
710
  const { migrations: migrationsFilePath, packageGroup, packageJson, } = readPackageMigrationConfig(packageName, dir);
689
711
  let migrations = undefined;
@@ -693,11 +715,7 @@ async function getPackageMigrationsUsingInstall(packageName, packageVersion) {
693
715
  result = { ...migrations, packageGroup, version: packageJson.version };
694
716
  }
695
717
  catch (e) {
696
- output_1.output.warn({
697
- title: `Failed to fetch migrations for ${packageName}@${packageVersion}`,
698
- bodyLines: [e.message],
699
- });
700
- return {};
718
+ throw new Error(`Failed to fetch migrations for ${packageName}@${packageVersion}: ${e.message}`);
701
719
  }
702
720
  finally {
703
721
  await cleanup();
@@ -977,7 +995,7 @@ function runInstall(nxWorkspaceRoot) {
977
995
  });
978
996
  (0, child_process_1.execSync)(installCommand, {
979
997
  stdio: [0, 1, 2],
980
- windowsHide: false,
998
+ windowsHide: true,
981
999
  cwd: nxWorkspaceRoot ?? process.cwd(),
982
1000
  });
983
1001
  }
@@ -1057,8 +1075,8 @@ async function runNxOrAngularMigration(root, migration, isVerbose, shouldCreateC
1057
1075
  }
1058
1076
  else {
1059
1077
  const ngCliAdapter = await getNgCompatLayer();
1060
- const { madeChanges, loggingQueue } = await ngCliAdapter.runMigration(root, migration.package, migration.name, (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(await (0, project_graph_1.createProjectGraphAsync)())
1061
- .projects, isVerbose);
1078
+ const migrationProjectGraph = await (0, project_graph_1.createProjectGraphAsync)();
1079
+ const { madeChanges, loggingQueue } = await ngCliAdapter.runMigration(root, migration.package, migration.name, (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(migrationProjectGraph).projects, isVerbose, migrationProjectGraph);
1062
1080
  logger_1.logger.info(`Ran ${migration.name} from ${migration.package}`);
1063
1081
  logger_1.logger.info(` ${migration.description}\n`);
1064
1082
  if (!madeChanges) {
@@ -1202,7 +1220,7 @@ async function runMigration() {
1202
1220
  }
1203
1221
  (0, child_process_1.execSync)(`${p} _migrate ${process.argv.slice(3).join(' ')}`, {
1204
1222
  stdio: ['inherit', 'inherit', 'inherit'],
1205
- windowsHide: false,
1223
+ windowsHide: true,
1206
1224
  });
1207
1225
  }
1208
1226
  }
@@ -1266,21 +1284,21 @@ async function nxCliPath(nxWorkspaceRoot) {
1266
1284
  (0, child_process_1.execSync)(pmc.preInstall, {
1267
1285
  cwd: tmpDir,
1268
1286
  stdio,
1269
- windowsHide: false,
1287
+ windowsHide: true,
1270
1288
  });
1271
1289
  // if it's berry ensure we set the node_linker to node-modules
1272
1290
  if (packageManager === 'yarn' && pmc.ciInstall.includes('immutable')) {
1273
1291
  (0, child_process_1.execSync)('yarn config set nodeLinker node-modules', {
1274
1292
  cwd: tmpDir,
1275
1293
  stdio,
1276
- windowsHide: false,
1294
+ windowsHide: true,
1277
1295
  });
1278
1296
  }
1279
1297
  }
1280
1298
  (0, child_process_1.execSync)(`${pmc.install} ${pmc.ignoreScriptsFlag ?? ''}`, {
1281
1299
  cwd: tmpDir,
1282
1300
  stdio,
1283
- windowsHide: false,
1301
+ windowsHide: true,
1284
1302
  });
1285
1303
  // Set NODE_PATH so that these modules can be used for module resolution
1286
1304
  addToNodePath((0, path_1.join)(tmpDir, 'node_modules'));
@@ -30,6 +30,7 @@ async function runMigrationProcess() {
30
30
  const gitRefBefore = execSync('git rev-parse HEAD', {
31
31
  cwd: workspacePath,
32
32
  encoding: 'utf-8',
33
+ windowsHide: true,
33
34
  }).trim();
34
35
 
35
36
  const { changes: fileChanges, nextSteps } = await runNxOrAngularMigration(
@@ -45,6 +46,7 @@ async function runMigrationProcess() {
45
46
  const gitRefAfter = execSync('git rev-parse HEAD', {
46
47
  cwd: workspacePath,
47
48
  encoding: 'utf-8',
49
+ windowsHide: true,
48
50
  }).trim();
49
51
 
50
52
  // Report success
@@ -41,7 +41,7 @@ async function viewLogs() {
41
41
  const pmc = (0, package_manager_1.getPackageManagerCommand)();
42
42
  (0, child_process_1.execSync)(`${pmc.exec} nx-cloud upload-and-show-run-details`, {
43
43
  stdio: [0, 1, 2],
44
- windowsHide: false,
44
+ windowsHide: true,
45
45
  });
46
46
  if (!cloudUsed) {
47
47
  output_1.output.note({
@@ -3,44 +3,44 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.commandsObject = exports.parserConfiguration = void 0;
4
4
  const pc = require("picocolors");
5
5
  const yargs = require("yargs");
6
- const command_object_1 = require("./register/command-object");
6
+ const analytics_1 = require("../analytics");
7
+ const output_1 = require("../utils/output");
8
+ const command_object_1 = require("./add/command-object");
7
9
  const command_object_2 = require("./affected/command-object");
8
- const command_object_3 = require("./nx-cloud/connect/command-object");
10
+ const command_object_3 = require("./configure-ai-agents/command-object");
9
11
  const command_object_4 = require("./daemon/command-object");
10
- const command_object_5 = require("./graph/command-object");
11
- const command_object_6 = require("./exec/command-object");
12
- const command_object_7 = require("./format/command-object");
13
- const command_object_8 = require("./generate/command-object");
12
+ const command_objects_1 = require("./deprecated/command-objects");
13
+ const command_object_5 = require("./exec/command-object");
14
+ const command_object_6 = require("./format/command-object");
15
+ const command_object_7 = require("./generate/command-object");
16
+ const command_object_8 = require("./graph/command-object");
14
17
  const command_object_9 = require("./import/command-object");
15
18
  const command_object_10 = require("./init/command-object");
16
19
  const command_object_11 = require("./list/command-object");
17
- const command_object_12 = require("./migrate/command-object");
18
- const command_object_13 = require("./new/command-object");
19
- const command_object_14 = require("./repair/command-object");
20
- const command_object_15 = require("./report/command-object");
21
- const command_object_16 = require("./run/command-object");
22
- const command_object_17 = require("./run-many/command-object");
23
- const command_object_18 = require("./show/command-object");
24
- const command_object_19 = require("./watch/command-object");
25
- const command_object_20 = require("./reset/command-object");
26
- const command_object_21 = require("./release/command-object");
27
- const command_object_22 = require("./add/command-object");
28
- const command_object_23 = require("./configure-ai-agents/command-object");
29
- const command_object_24 = require("./nx-cloud/login/command-object");
30
- const command_object_25 = require("./nx-cloud/logout/command-object");
31
- const command_object_26 = require("./nx-cloud/record/command-object");
32
- const command_object_27 = require("./nx-cloud/start-ci-run/command-object");
33
- const command_object_28 = require("./nx-cloud/start-agent/command-object");
34
- const command_object_29 = require("./nx-cloud/complete-run/command-object");
35
- const command_object_30 = require("./nx-cloud/fix-ci/command-object");
36
- const command_object_31 = require("./nx-cloud/polygraph/command-object");
37
- const command_object_32 = require("./nx-cloud/apply-locally/command-object");
38
- const command_object_33 = require("./nx-cloud/download-cloud-client/command-object");
39
- const command_objects_1 = require("./deprecated/command-objects");
20
+ const command_object_12 = require("./mcp/command-object");
21
+ const command_object_13 = require("./migrate/command-object");
22
+ const command_object_14 = require("./new/command-object");
23
+ const command_object_15 = require("./nx-cloud/apply-locally/command-object");
24
+ const command_object_16 = require("./nx-cloud/complete-run/command-object");
25
+ const command_object_17 = require("./nx-cloud/connect/command-object");
26
+ const command_object_18 = require("./nx-cloud/download-cloud-client/command-object");
27
+ const command_object_19 = require("./nx-cloud/fix-ci/command-object");
28
+ const command_object_20 = require("./nx-cloud/login/command-object");
29
+ const command_object_21 = require("./nx-cloud/logout/command-object");
30
+ const command_object_22 = require("./nx-cloud/polygraph/command-object");
31
+ const command_object_23 = require("./nx-cloud/record/command-object");
32
+ const command_object_24 = require("./nx-cloud/start-agent/command-object");
33
+ const command_object_25 = require("./nx-cloud/start-ci-run/command-object");
34
+ const command_object_26 = require("./register/command-object");
35
+ const command_object_27 = require("./release/command-object");
36
+ const command_object_28 = require("./repair/command-object");
37
+ const command_object_29 = require("./report/command-object");
38
+ const command_object_30 = require("./reset/command-object");
39
+ const command_object_31 = require("./run-many/command-object");
40
+ const command_object_32 = require("./run/command-object");
41
+ const command_object_33 = require("./show/command-object");
40
42
  const command_object_34 = require("./sync/command-object");
41
- const output_1 = require("../utils/output");
42
- const command_object_35 = require("./mcp/command-object");
43
- const analytics_1 = require("../analytics");
43
+ const command_object_35 = require("./watch/command-object");
44
44
  // Ensure that the output takes up the available width of the terminal.
45
45
  yargs.wrap(yargs.terminalWidth());
46
46
  exports.parserConfiguration = {
@@ -57,52 +57,52 @@ exports.commandsObject = yargs
57
57
  .parserConfiguration(exports.parserConfiguration)
58
58
  .usage(pc.bold('Smart Monorepos · Fast Builds'))
59
59
  .demandCommand(1, '')
60
- .command(command_object_1.yargsRegisterCommand)
61
- .command(command_object_22.yargsAddCommand)
62
- .command(command_object_23.yargsConfigureAiAgentsCommand)
60
+ .command(command_object_26.yargsRegisterCommand)
61
+ .command(command_object_1.yargsAddCommand)
62
+ .command(command_object_3.yargsConfigureAiAgentsCommand)
63
63
  .command(command_object_2.yargsAffectedBuildCommand)
64
64
  .command(command_object_2.yargsAffectedCommand)
65
65
  .command(command_object_2.yargsAffectedE2ECommand)
66
66
  .command(command_object_2.yargsAffectedLintCommand)
67
67
  .command(command_object_2.yargsAffectedTestCommand)
68
68
  .command(command_objects_1.yargsAffectedGraphCommand)
69
- .command(command_object_3.yargsConnectCommand)
69
+ .command(command_object_17.yargsConnectCommand)
70
70
  .command(command_object_4.yargsDaemonCommand)
71
- .command(command_object_5.yargsGraphCommand)
72
- .command(command_object_6.yargsExecCommand)
73
- .command(command_object_7.yargsFormatCheckCommand)
74
- .command(command_object_7.yargsFormatWriteCommand)
75
- .command(command_object_8.yargsGenerateCommand)
71
+ .command(command_object_8.yargsGraphCommand)
72
+ .command(command_object_5.yargsExecCommand)
73
+ .command(command_object_6.yargsFormatCheckCommand)
74
+ .command(command_object_6.yargsFormatWriteCommand)
75
+ .command(command_object_7.yargsGenerateCommand)
76
76
  .command(command_object_9.yargsImportCommand)
77
77
  .command(command_object_10.yargsInitCommand)
78
- .command(command_object_12.yargsInternalMigrateCommand)
78
+ .command(command_object_13.yargsInternalMigrateCommand)
79
79
  .command(command_object_11.yargsListCommand)
80
- .command(command_object_12.yargsMigrateCommand)
81
- .command(command_object_13.yargsNewCommand)
80
+ .command(command_object_13.yargsMigrateCommand)
81
+ .command(command_object_14.yargsNewCommand)
82
82
  .command(command_objects_1.yargsPrintAffectedCommand)
83
- .command(command_object_21.yargsReleaseCommand)
84
- .command(command_object_14.yargsRepairCommand)
85
- .command(command_object_15.yargsReportCommand)
86
- .command(command_object_20.yargsResetCommand)
87
- .command(command_object_16.yargsRunCommand)
88
- .command(command_object_17.yargsRunManyCommand)
89
- .command(command_object_18.yargsShowCommand)
83
+ .command(command_object_27.yargsReleaseCommand)
84
+ .command(command_object_28.yargsRepairCommand)
85
+ .command(command_object_29.yargsReportCommand)
86
+ .command(command_object_30.yargsResetCommand)
87
+ .command(command_object_32.yargsRunCommand)
88
+ .command(command_object_31.yargsRunManyCommand)
89
+ .command(command_object_33.yargsShowCommand)
90
90
  .command(command_object_34.yargsSyncCommand)
91
91
  .command(command_object_34.yargsSyncCheckCommand)
92
- .command(command_object_3.yargsViewLogsCommand)
93
- .command(command_object_19.yargsWatchCommand)
94
- .command(command_object_16.yargsNxInfixCommand)
95
- .command(command_object_24.yargsLoginCommand)
96
- .command(command_object_25.yargsLogoutCommand)
97
- .command(command_object_26.yargsRecordCommand)
98
- .command(command_object_27.yargsStartCiRunCommand)
99
- .command(command_object_28.yargsStartAgentCommand)
100
- .command(command_object_29.yargsStopAllAgentsCommand)
101
- .command(command_object_30.yargsFixCiCommand)
102
- .command(command_object_31.yargsPolygraphCommand)
103
- .command(command_object_32.yargsApplyLocallyCommand)
104
- .command(command_object_33.yargsDownloadCloudClientCommand)
105
- .command(command_object_35.yargsMcpCommand)
92
+ .command(command_object_17.yargsViewLogsCommand)
93
+ .command(command_object_35.yargsWatchCommand)
94
+ .command(command_object_32.yargsNxInfixCommand)
95
+ .command(command_object_20.yargsLoginCommand)
96
+ .command(command_object_21.yargsLogoutCommand)
97
+ .command(command_object_23.yargsRecordCommand)
98
+ .command(command_object_25.yargsStartCiRunCommand)
99
+ .command(command_object_24.yargsStartAgentCommand)
100
+ .command(command_object_16.yargsStopAllAgentsCommand)
101
+ .command(command_object_19.yargsFixCiCommand)
102
+ .command(command_object_22.yargsPolygraphCommand)
103
+ .command(command_object_15.yargsApplyLocallyCommand)
104
+ .command(command_object_18.yargsDownloadCloudClientCommand)
105
+ .command(command_object_12.yargsMcpCommand)
106
106
  .command(resolveConformanceCommandObject())
107
107
  .command(resolveConformanceCheckCommandObject())
108
108
  .scriptName('nx')
@@ -225,7 +225,7 @@ function isReleaseType(value) {
225
225
  async function getCommitForVersionPlanFile(rawVersionPlan, isVerbose) {
226
226
  return new Promise((resolve) => {
227
227
  (0, node_child_process_1.exec)(`git log --diff-filter=A --pretty=format:"%s|%h|%an|%ae|%b" -n 1 -- ${rawVersionPlan.absolutePath}`, {
228
- windowsHide: false,
228
+ windowsHide: true,
229
229
  }, (error, stdout, stderr) => {
230
230
  if (error) {
231
231
  if (isVerbose) {
@@ -8,7 +8,7 @@ async function execCommand(cmd, args, options) {
8
8
  ...options,
9
9
  stdio: ['pipe', 'pipe', 'pipe'], // stdin, stdout, stderr
10
10
  encoding: 'utf-8',
11
- windowsHide: false,
11
+ windowsHide: true,
12
12
  });
13
13
  let stdout = '';
14
14
  let stderr = '';
@@ -13,7 +13,7 @@ async function launchEditor(filePath) {
13
13
  return new Promise((resolve, reject) => {
14
14
  const editorProcess = (0, node_child_process_1.spawn)(cmd, [...args, filePath], {
15
15
  stdio: 'inherit', // This will ensure the editor uses the current terminal
16
- windowsHide: false,
16
+ windowsHide: true,
17
17
  });
18
18
  editorProcess.on('exit', (code) => {
19
19
  if (code === 0) {
@@ -28,7 +28,7 @@ async function launchEditor(filePath) {
28
28
  function getGitConfig(key) {
29
29
  try {
30
30
  return (0, node_child_process_1.execSync)(`git config --get ${key}`, {
31
- windowsHide: false,
31
+ windowsHide: true,
32
32
  })
33
33
  .toString()
34
34
  .trim();
@@ -34,6 +34,7 @@ export declare class GithubRemoteReleaseClient extends RemoteReleaseClient<Githu
34
34
  email: Set<string>;
35
35
  username?: string;
36
36
  }>): Promise<void>;
37
+ private resolveUsernameFromGhCli;
37
38
  /**
38
39
  * Get a release by tag
39
40
  */
@@ -1 +1 @@
1
- {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/command-line/release/utils/remote-release-clients/github.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,cAAc,EACf,MAAM,yBAAyB,CAAC;AAOjC,MAAM,WAAW,cAAe,SAAQ,cAAc;CAAG;AAGzD,MAAM,WAAW,mBAAmB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAClC;AAED,eAAO,MAAM,4BAA4B,EAAE,mCAKxC,CAAC;AAEJ,qBAAa,yBAA0B,SAAQ,mBAAmB,CAAC,mBAAmB,CAAC;IACrF,yBAAyB,SAAY;IAErC;;OAEG;IACH,MAAM,CAAC,eAAe,CACpB,mBAAmB,EAAE,KAAK,GAAG,mCAAmC,EAChE,UAAU,SAAW,GACpB,cAAc,GAAG,IAAI;IAkCxB;;OAEG;WACU,gBAAgB,CAC3B,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IA4CxD,iBAAiB,CACf,cAAc,EAAE,cAAc,EAC9B,iBAAiB,EAAE,MAAM,EACzB,MAAM,EAAE,OAAO,GACd,WAAW;IAYR,sBAAsB,CAC1B,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAC9D,OAAO,CAAC,IAAI,CAAC;IA6BhB;;OAEG;cACa,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAO1E;;OAEG;cACa,aAAa,CAC3B,aAAa,EAAE,mBAAmB,GACjC,OAAO,CAAC,GAAG,CAAC;cAQC,aAAa,CAC3B,EAAE,EAAE,MAAM,EACV,aAAa,EAAE,mBAAmB,GACjC,OAAO,CAAC,GAAG,CAAC;IAWf,SAAS,CAAC,yBAAyB,CACjC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM;IAgBT,SAAS,CAAC,eAAe,IAAI,IAAI;IAUjC,SAAS,CAAC,gBAAgB,CACxB,eAAe,EAAE,mBAAmB,GAAG,SAAS,EAChD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,GACd,IAAI;cAcS,WAAW,CACzB,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,IAAI,CAAC;YAgDF,yBAAyB;IA6BvC;;OAEG;IACH,gBAAgB,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,MAAM;cAmCjC,WAAW,CACzB,oBAAoB,EAAE,oBAAoB,EAC1C,eAAe,CAAC,EAAE,mBAAmB,GACpC,OAAO,CAAC,mBAAmB,CAAC;IAiC/B,OAAO,CAAC,yBAAyB;CASlC"}
1
+ {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/command-line/release/utils/remote-release-clients/github.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,C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AC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAC9D,OAAO,CAAC,IAAI,CAAC;IAkChB,OAAO,CAAC,wBAAwB;IAuChC;;OAEG;cACa,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAO1E;;OAEG;cACa,aAAa,CAC3B,aAAa,EAAE,mBAAmB,GACjC,OAAO,CAAC,GAAG,CAAC;cAQC,aAAa,CAC3B,EAAE,EAAE,MAAM,EACV,aAAa,EAAE,mBAAmB,GACjC,OAAO,CAAC,GAAG,CAAC;IAWf,SAAS,CAAC,yBAAyB,CACjC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM;IAgBT,SAAS,CAAC,eAAe,IAAI,IAAI;IAUjC,SAAS,CAAC,gBAAgB,CACxB,eAAe,EAAE,mBAAmB,GAAG,SAAS,EAChD,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,GACd,IAAI;cAcS,WAAW,CACzB,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,IAAI,CAAC;YAgDF,yBAAyB;IA6BvC;;OAEG;IACH,gBAAgB,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,MAAM;cAmCjC,WAAW,CACzB,oBAAoB,EAAE,oBAAoB,EAC1C,eAAe,CAAC,EAAE,mBAAmB,GACpC,OAAO,CAAC,mBAAmB,CAAC;IAiC/B,OAAO,CAAC,yBAAyB;CASlC"}
@@ -31,6 +31,7 @@ class GithubRemoteReleaseClient extends remote_release_client_1.RemoteReleaseCli
31
31
  const remoteUrl = (0, node_child_process_1.execSync)(`git remote get-url ${remoteName}`, {
32
32
  encoding: 'utf8',
33
33
  stdio: 'pipe',
34
+ windowsHide: true,
34
35
  }).trim();
35
36
  // Use the default provider if custom one is not specified or releases are disabled
36
37
  let hostname = exports.defaultCreateReleaseProvider.hostname;
@@ -82,7 +83,7 @@ class GithubRemoteReleaseClient extends remote_release_client_1.RemoteReleaseCli
82
83
  const token = (0, node_child_process_1.execSync)(`gh auth token`, {
83
84
  encoding: 'utf8',
84
85
  stdio: 'pipe',
85
- windowsHide: false,
86
+ windowsHide: true,
86
87
  }).trim();
87
88
  return { token, headerName: 'Authorization' };
88
89
  }
@@ -113,13 +114,49 @@ class GithubRemoteReleaseClient extends remote_release_client_1.RemoteReleaseCli
113
114
  const { data } = await axios
114
115
  .get(`https://ungh.cc/users/find/${email}`)
115
116
  .catch(() => ({ data: { user: null } }));
116
- if (data?.user) {
117
+ if (data?.user?.username) {
117
118
  meta.username = data.user.username;
118
119
  break;
119
120
  }
121
+ const usernameFromGhCli = this.resolveUsernameFromGhCli(email);
122
+ if (usernameFromGhCli) {
123
+ meta.username = usernameFromGhCli;
124
+ break;
125
+ }
120
126
  }
121
127
  }));
122
128
  }
129
+ resolveUsernameFromGhCli(email) {
130
+ const hostname = this.getRemoteRepoData()?.hostname ??
131
+ exports.defaultCreateReleaseProvider.hostname;
132
+ try {
133
+ const stdout = (0, node_child_process_1.execFileSync)('gh', [
134
+ 'api',
135
+ '--hostname',
136
+ hostname,
137
+ '--method',
138
+ 'GET',
139
+ 'search/users',
140
+ '-f',
141
+ `q=${email} in:email`,
142
+ ], {
143
+ encoding: 'utf8',
144
+ stdio: 'pipe',
145
+ windowsHide: true,
146
+ }).trim();
147
+ if (!stdout) {
148
+ return null;
149
+ }
150
+ const data = JSON.parse(stdout);
151
+ return data.items?.[0]?.login ?? null;
152
+ }
153
+ catch (error) {
154
+ if (process.env.NX_VERBOSE_LOGGING === 'true') {
155
+ console.error(error);
156
+ }
157
+ return null;
158
+ }
159
+ }
123
160
  /**
124
161
  * Get a release by tag
125
162
  */
@@ -1 +1 @@
1
- {"version":3,"file":"gitlab.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/command-line/release/utils/remote-release-clients/gitlab.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,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G,IAAI,CAAC;IAmBxD,iBAAiB,CACf,cAAc,EAAE,cAAc,EAC9B,iBAAiB,EAAE,MAAM,EACzB,MAAM,EAAE,OAAO,GACd,WAAW;IAaR,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC;cAI7B,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;cASpD,aAAa,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC;cAWzD,aAAa,CAC3B,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,GAAG,CAAC;IAaf;;;;OAIG;IACH,SAAS,CAAC,yBAAyB,CACjC,qBAAqB,EAAE,oBAAoB,GAC1C,MAAM;IAKT,SAAS,CAAC,eAAe,IAAI,IAAI;IAUjC,SAAS,CAAC,gBAAgB,CACxB,eAAe,EAAE,aAAa,GAAG,SAAS,EAC1C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,GACd,IAAI;cAgBS,WAAW,CACzB,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,IAAI,CAAC;YA+CF,yBAAyB;IA6BvC;;OAEG;IACH,gBAAgB,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,MAAM;cAuCjC,WAAW,CACzB,oBAAoB,EAAE,oBAAoB,EAC1C,eAAe,CAAC,EAAE,aAAa,GAC9B,OAAO,CAAC,mBAAmB,CAAC;IAoC/B,OAAO,CAAC,yBAAyB;CASlC"}
1
+ {"version":3,"file":"gitlab.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/nx/src/command-line/release/utils/remote-release-clients/gitlab.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CA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GACd,WAAW;IAaR,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC;cAI7B,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;cASpD,aAAa,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC;cAWzD,aAAa,CAC3B,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,GAAG,CAAC;IAaf;;;;OAIG;IACH,SAAS,CAAC,yBAAyB,CACjC,qBAAqB,EAAE,oBAAoB,GAC1C,MAAM;IAKT,SAAS,CAAC,eAAe,IAAI,IAAI;IAUjC,SAAS,CAAC,gBAAgB,CACxB,eAAe,EAAE,aAAa,GAAG,SAAS,EAC1C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,OAAO,GACd,IAAI;cAgBS,WAAW,CACzB,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,IAAI,CAAC;YA+CF,yBAAyB;IA6BvC;;OAEG;IACH,gBAAgB,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,MAAM;cAuCjC,WAAW,CACzB,oBAAoB,EAAE,oBAAoB,EAC1C,eAAe,CAAC,EAAE,aAAa,GAC9B,OAAO,CAAC,mBAAmB,CAAC;IAoC/B,OAAO,CAAC,yBAAyB;CASlC"}
@@ -25,6 +25,7 @@ class GitLabRemoteReleaseClient extends remote_release_client_1.RemoteReleaseCli
25
25
  const remoteUrl = (0, node_child_process_1.execSync)(`git remote get-url ${remoteName}`, {
26
26
  encoding: 'utf8',
27
27
  stdio: 'pipe',
28
+ windowsHide: true,
28
29
  }).trim();
29
30
  // Use the default provider if custom one is not specified or releases are disabled
30
31
  let hostname = exports.defaultCreateReleaseProvider.hostname;
@@ -1 +1 @@
1
- {"version":3,"file":"release-group-processor.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/version/release-group-processor.ts"],"names":[],"mappings":"AAEA,OA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E,4BAA4B;IA+B/C,6BAA6B,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAKjE,YAAY,IAAI,MAAM,GAAG,IAAI;IAcvB,aAAa,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IA4CxC,sBAAsB;IAMtB,+BAA+B,IAAI,IAAI;IAMvC,cAAc,IAAI,WAAW;IAI7B;;;;;;;;;;OAUG;IACG,yBAAyB,CAC7B,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjD,OAAO,CAAC;QACT,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,YAAY,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;IA6BI,qBAAqB,CACzB,mBAAmB,CAAC,EAAE,MAAM,EAC5B,aAAa,CAAC,EAAE,MAAM;YA+DV,YAAY;YAWZ,YAAY;YAUZ,qBAAqB;YA+JrB,2BAA2B;YA4E3B,8BAA8B;IAsH5C,OAAO,CAAC,2BAA2B;IAWnC,OAAO,CAAC,0BAA0B;IAUlC,OAAO,CAAC,iCAAiC;IAMzC,OAAO,CAAC,8BAA8B;YAaxB,mBAAmB;YAoBnB,4BAA4B;YA8D5B,qBAAqB;YAgGrB,+BAA+B;IAa7C,OAAO,CAAC,4BAA4B;YAQtB,4BAA4B;IAwB1C,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,kCAAkC;CAI3C"}
1
+ {"version":3,"file":"release-group-processor.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/command-line/release/version/release-group-processor.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EAEb,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEhD,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAyB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,KAAK,E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AI,WAAW;IAI7B;;;;;;;;;;OAUG;IACG,yBAAyB,CAC7B,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACjD,OAAO,CAAC;QACT,YAAY,EAAE,MAAM,EAAE,CAAC;QACvB,YAAY,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;IA6BI,qBAAqB,CACzB,mBAAmB,CAAC,EAAE,MAAM,EAC5B,aAAa,CAAC,EAAE,MAAM;YA8DV,YAAY;YAWZ,YAAY;YAUZ,qBAAqB;YA+JrB,2BAA2B;YA4E3B,8BAA8B;IAsH5C,OAAO,CAAC,2BAA2B;IAWnC,OAAO,CAAC,0BAA0B;IAUlC,OAAO,CAAC,iCAAiC;IAMzC,OAAO,CAAC,8BAA8B;YAaxB,mBAAmB;YAoBnB,4BAA4B;YA8D5B,qBAAqB;YAgGrB,+BAA+B;IAa7C,OAAO,CAAC,4BAA4B;YAQtB,4BAA4B;IAwB1C,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,kCAAkC;CAI3C"}
@@ -183,10 +183,8 @@ class ReleaseGroupProcessor {
183
183
  }
184
184
  let handleDockerVersion;
185
185
  try {
186
- const { handleDockerVersion: _handleDockerVersion,
187
- // nx-ignore-next-line
188
- } = require(// @ts-ignore
189
- '@nx/docker/release/version-utils');
186
+ const dockerVersionUtilsPath = '@nx/docker/release/version-utils';
187
+ const { handleDockerVersion: _handleDockerVersion } = require(dockerVersionUtilsPath);
190
188
  handleDockerVersion = _handleDockerVersion;
191
189
  }
192
190
  catch (e) {
@@ -351,7 +351,7 @@ function runPreVersionCommand(preVersionCommand, { dryRun, verbose }, releaseGro
351
351
  maxBuffer: run_commands_impl_1.LARGE_BUFFER,
352
352
  stdio,
353
353
  env,
354
- windowsHide: false,
354
+ windowsHide: true,
355
355
  });
356
356
  }
357
357
  catch (e) {
@@ -1 +1 @@
1
- {"version":3,"file":"run-one.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/run/run-one.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EACL,YAAY,EAEb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAiBlF,wBAAsB,MAAM,CAC1B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC1B,uBAAuB,GAAE,MAAM,CAC7B,MAAM,EACN,CAAC,sBAAsB,GAAG,MAAM,CAAC,EAAE,CAC/B,EACN,YAAY,GAGP;IACH,uBAAuB,EAAE,OAAO,CAAC;IACjC,eAAe,EAAE,OAAO,CAAC;CAC1B,GACA,OAAO,CAAC,IAAI,CAAC,CAiEf;AAwDD,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,UAAU,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAChC,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,mBAAmB,GAC1B;IAAE,OAAO,MAAC;IAAC,MAAM,MAAC;IAAC,aAAa,MAAC;IAAC,UAAU,MAAA;CAAE,CA+DhD"}
1
+ {"version":3,"file":"run-one.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/run/run-one.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EACL,YAAY,EAEb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAiBlF,wBAAsB,MAAM,CAC1B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC1B,uBAAuB,GAAE,MAAM,CAC7B,MAAM,EACN,CAAC,sBAAsB,GAAG,MAAM,CAAC,EAAE,CAC/B,EACN,YAAY,GAGP;IACH,uBAAuB,EAAE,OAAO,CAAC;IACjC,eAAe,EAAE,OAAO,CAAC;CAC1B,GACA,OAAO,CAAC,IAAI,CAAC,CAiEf;AAwDD,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,UAAU,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAChC,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,mBAAmB,GAC1B;IAAE,OAAO,MAAC;IAAC,MAAM,MAAC;IAAC,aAAa,MAAC;IAAC,UAAU,MAAA;CAAE,CAgEhD"}
@@ -104,7 +104,7 @@ function parseRunOneOptions(cwd, parsedArgs, projectGraph, nxJson) {
104
104
  let configuration;
105
105
  if (parsedArgs[PROJECT_TARGET_CONFIG]?.lastIndexOf(':') > 0) {
106
106
  // run case
107
- [project, target, configuration] = (0, split_target_1.splitTarget)(parsedArgs[PROJECT_TARGET_CONFIG], projectGraph);
107
+ [project, target, configuration] = (0, split_target_1.splitTarget)(parsedArgs[PROJECT_TARGET_CONFIG], projectGraph, { currentProject: defaultProjectName });
108
108
  // this is to account for "nx npmscript:dev"
109
109
  if (project && !target && defaultProjectName) {
110
110
  target = project;
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/command-line/run/run.ts"],"names":[],"mappings":"AACA,OAAO,EAA6B,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAKvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAY,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAmBpD,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,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AAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACzC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,QAM3C;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,sBAAsB,EAChC,WAAW,EAAE,MAAM,QAMpB;AAkLD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,WAAW,CAAC,CAAC,SAAS;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,EAC9D,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC/B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAenC;AAED,wBAAgB,kBAAkB,CAAC,iBAAiB,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,mBAYzE;AAED,wBAAgB,GAAG,CACjB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAC/B,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,SAAS,mBAoBrB"}
@@ -77,7 +77,7 @@ async function printTargetRunHelpInternal({ project, target }, root, projectsCon
77
77
  else {
78
78
  const cp = (0, child_process_1.exec)(helpCommand, {
79
79
  env,
80
- windowsHide: false,
80
+ windowsHide: true,
81
81
  });
82
82
  cp.on('exit', (code) => {
83
83
  process.exit(code);
@@ -126,7 +126,7 @@ async function runExecutorInternal({ project, target, configuration }, overrides
126
126
  configuration,
127
127
  runOptions: combinedOptions,
128
128
  projects: projectsConfigurations.projects,
129
- }, isVerbose);
129
+ }, isVerbose, projectGraph);
130
130
  const { eachValueFrom } = await Promise.resolve().then(() => require('../../adapter/rxjs-for-await'));
131
131
  return eachValueFrom(observable);
132
132
  }
@@ -117,7 +117,10 @@ function resolveTargetIdentifier(args, graph, nxJson) {
117
117
  });
118
118
  process.exit(1);
119
119
  }
120
- const [project, target, config] = (0, split_target_1.splitTarget)(args.target, graph);
120
+ const defaultProjectName = (0, calculate_default_project_name_1.calculateDefaultProjectName)(process.cwd(), workspace_root_1.workspaceRoot, (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(graph), nxJson);
121
+ const [project, target, config] = (0, split_target_1.splitTarget)(args.target, graph, {
122
+ currentProject: defaultProjectName,
123
+ });
121
124
  if (project && target) {
122
125
  return {
123
126
  projectName: project,
@@ -126,7 +129,7 @@ function resolveTargetIdentifier(args, graph, nxJson) {
126
129
  };
127
130
  }
128
131
  const targetName = project; // splitTarget returns the string as the first element
129
- const projectName = (0, calculate_default_project_name_1.calculateDefaultProjectName)(process.cwd(), workspace_root_1.workspaceRoot, (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(graph), nxJson);
132
+ const projectName = defaultProjectName;
130
133
  if (!projectName) {
131
134
  output_1.output.error({
132
135
  title: `Could not infer project from the current working directory.`,
@@ -98,7 +98,7 @@ class BatchCommandRunner extends BatchFunctionRunner {
98
98
  [this.projectNameEnv]: env[this.projectNameEnv],
99
99
  [this.fileChangesEnv]: env[this.fileChangesEnv],
100
100
  },
101
- windowsHide: false,
101
+ windowsHide: true,
102
102
  });
103
103
  commandExec.on('close', () => {
104
104
  resolve();