nx 19.5.0-canary.20240710-2b7b523 → 19.5.0-canary.20240712-0b0db78

Sign up to get free protection for your applications and to get access to all the features.
Files changed (297) hide show
  1. package/bin/init-local.js +2 -3
  2. package/package.json +12 -12
  3. package/src/adapter/angular-json.js +6 -6
  4. package/src/adapter/decorate-cli.js +1 -2
  5. package/src/adapter/ngcli-adapter.js +8 -8
  6. package/src/adapter/rxjs-for-await.js +5 -5
  7. package/src/command-line/add/add.js +2 -2
  8. package/src/command-line/affected/affected.js +2 -3
  9. package/src/command-line/connect/connect-to-nx-cloud.js +5 -6
  10. package/src/command-line/connect/view-logs.js +1 -2
  11. package/src/command-line/daemon/daemon.js +1 -2
  12. package/src/command-line/exec/exec.js +1 -2
  13. package/src/command-line/format/format.js +1 -2
  14. package/src/command-line/generate/generate.js +4 -5
  15. package/src/command-line/generate/generator-utils.js +2 -3
  16. package/src/command-line/graph/command-object.js +2 -2
  17. package/src/command-line/graph/graph.js +1 -2
  18. package/src/command-line/init/implementation/add-nx-to-monorepo.js +1 -2
  19. package/src/command-line/init/implementation/add-nx-to-nest.js +1 -2
  20. package/src/command-line/init/implementation/add-nx-to-npm-repo.js +1 -2
  21. package/src/command-line/init/implementation/angular/index.js +1 -2
  22. package/src/command-line/init/implementation/angular/integrated-workspace.js +1 -2
  23. package/src/command-line/init/implementation/angular/legacy-angular-versions.js +1 -2
  24. package/src/command-line/init/implementation/angular/standalone-workspace.js +1 -2
  25. package/src/command-line/init/implementation/dot-nx/add-nx-scripts.d.ts +1 -1
  26. package/src/command-line/init/implementation/dot-nx/add-nx-scripts.js +7 -7
  27. package/src/command-line/init/implementation/react/add-craco-commands-to-package-scripts.js +1 -2
  28. package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.js +1 -2
  29. package/src/command-line/init/implementation/react/check-for-custom-webpack-setup.js +1 -2
  30. package/src/command-line/init/implementation/react/check-for-uncommitted-changes.js +1 -2
  31. package/src/command-line/init/implementation/react/clean-up-files.js +1 -2
  32. package/src/command-line/init/implementation/react/index.js +1 -2
  33. package/src/command-line/init/implementation/react/read-name-from-package-json.js +1 -2
  34. package/src/command-line/init/implementation/react/rename-js-to-jsx.js +1 -2
  35. package/src/command-line/init/implementation/react/tsconfig-setup.js +1 -2
  36. package/src/command-line/init/implementation/react/write-craco-config.js +1 -2
  37. package/src/command-line/init/implementation/react/write-vite-config.js +1 -2
  38. package/src/command-line/init/implementation/react/write-vite-index-html.js +1 -2
  39. package/src/command-line/init/implementation/utils.js +10 -11
  40. package/src/command-line/init/init-v1.js +1 -2
  41. package/src/command-line/init/init-v2.js +1 -2
  42. package/src/command-line/list/list.js +1 -2
  43. package/src/command-line/migrate/migrate.d.ts +1 -1
  44. package/src/command-line/migrate/migrate.js +5 -5
  45. package/src/command-line/new/new.js +1 -2
  46. package/src/command-line/release/changelog.js +3 -3
  47. package/src/command-line/release/config/config.js +3 -3
  48. package/src/command-line/release/config/filter-release-groups.js +1 -2
  49. package/src/command-line/release/config/version-plans.js +3 -4
  50. package/src/command-line/release/plan.js +2 -2
  51. package/src/command-line/release/publish.js +2 -2
  52. package/src/command-line/release/release.js +2 -2
  53. package/src/command-line/release/utils/batch-projects-by-generator-config.js +1 -2
  54. package/src/command-line/release/utils/exec-command.js +1 -2
  55. package/src/command-line/release/utils/git.js +11 -12
  56. package/src/command-line/release/utils/github.js +5 -6
  57. package/src/command-line/release/utils/launch-editor.js +1 -2
  58. package/src/command-line/release/utils/markdown.js +1 -2
  59. package/src/command-line/release/utils/print-changes.d.ts +0 -1
  60. package/src/command-line/release/utils/print-changes.js +2 -3
  61. package/src/command-line/release/utils/resolve-changelog-renderer.js +1 -2
  62. package/src/command-line/release/utils/resolve-nx-json-error-message.js +1 -2
  63. package/src/command-line/release/utils/resolve-semver-specifier.js +2 -3
  64. package/src/command-line/release/utils/semver.js +4 -5
  65. package/src/command-line/release/utils/shared.js +6 -6
  66. package/src/command-line/release/version.js +2 -2
  67. package/src/command-line/repair/repair.js +1 -2
  68. package/src/command-line/report/report.js +27 -19
  69. package/src/command-line/reset/reset.js +1 -2
  70. package/src/command-line/run/executor-utils.js +2 -3
  71. package/src/command-line/run/run-one.js +1 -2
  72. package/src/command-line/run/run.js +5 -6
  73. package/src/command-line/run-many/run-many.js +2 -3
  74. package/src/command-line/show/project.js +1 -2
  75. package/src/command-line/show/projects.js +1 -2
  76. package/src/command-line/watch/watch.js +2 -2
  77. package/src/command-line/yargs-utils/documentation.js +1 -2
  78. package/src/command-line/yargs-utils/shared-options.js +12 -13
  79. package/src/commands-runner/create-command-graph.js +1 -2
  80. package/src/commands-runner/get-command-projects.js +1 -2
  81. package/src/config/calculate-default-project-name.js +2 -3
  82. package/src/config/configuration.js +2 -2
  83. package/src/config/nx-json.js +2 -3
  84. package/src/config/project-graph.js +3 -3
  85. package/src/config/schema-utils.js +3 -4
  86. package/src/config/to-project-name.js +1 -2
  87. package/src/core/graph/main.js +1 -1
  88. package/src/daemon/cache.js +6 -6
  89. package/src/daemon/client/client.d.ts +0 -2
  90. package/src/daemon/client/client.js +2 -2
  91. package/src/daemon/client/daemon-socket-messenger.d.ts +0 -1
  92. package/src/daemon/client/generate-help-output.js +1 -2
  93. package/src/daemon/is-on-daemon.js +1 -2
  94. package/src/daemon/message-types/get-context-file-data.js +2 -2
  95. package/src/daemon/message-types/get-files-in-directory.js +2 -2
  96. package/src/daemon/message-types/get-nx-workspace-files.js +2 -2
  97. package/src/daemon/message-types/glob.js +2 -2
  98. package/src/daemon/message-types/hash-glob.js +2 -2
  99. package/src/daemon/message-types/task-history.js +3 -3
  100. package/src/daemon/message-types/update-context-files.js +2 -2
  101. package/src/daemon/server/file-watching/changed-projects.js +1 -2
  102. package/src/daemon/server/file-watching/file-watcher-sockets.d.ts +0 -1
  103. package/src/daemon/server/file-watching/file-watcher-sockets.js +4 -4
  104. package/src/daemon/server/handle-context-file-data.js +1 -2
  105. package/src/daemon/server/handle-get-files-in-directory.js +1 -2
  106. package/src/daemon/server/handle-get-task-history.js +1 -2
  107. package/src/daemon/server/handle-glob.js +1 -2
  108. package/src/daemon/server/handle-hash-glob.js +1 -2
  109. package/src/daemon/server/handle-hash-tasks.js +1 -2
  110. package/src/daemon/server/handle-nx-workspace-files.js +1 -2
  111. package/src/daemon/server/handle-outputs-tracking.js +2 -3
  112. package/src/daemon/server/handle-process-in-background.js +1 -2
  113. package/src/daemon/server/handle-request-project-graph.js +1 -2
  114. package/src/daemon/server/handle-request-shutdown.d.ts +0 -1
  115. package/src/daemon/server/handle-request-shutdown.js +1 -2
  116. package/src/daemon/server/handle-write-task-runs-to-history.js +1 -2
  117. package/src/daemon/server/outputs-tracking.js +7 -8
  118. package/src/daemon/server/plugins.js +2 -3
  119. package/src/daemon/server/project-graph-incremental-recomputation.js +3 -3
  120. package/src/daemon/server/server.d.ts +0 -1
  121. package/src/daemon/server/server.js +2 -3
  122. package/src/daemon/server/shutdown-utils.d.ts +0 -1
  123. package/src/daemon/server/shutdown-utils.js +9 -9
  124. package/src/daemon/server/watcher.d.ts +0 -1
  125. package/src/daemon/server/watcher.js +3 -4
  126. package/src/daemon/socket-utils.js +3 -3
  127. package/src/daemon/tmp-dir.js +6 -6
  128. package/src/executors/noop/noop.impl.js +1 -1
  129. package/src/executors/run-commands/run-commands.impl.js +3 -3
  130. package/src/executors/run-script/run-script.impl.js +1 -1
  131. package/src/executors/utils/convert-nx-executor.js +1 -2
  132. package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.js +1 -2
  133. package/src/generators/testing-utils/create-tree-with-empty-workspace.d.ts +1 -1
  134. package/src/generators/testing-utils/create-tree-with-empty-workspace.js +2 -3
  135. package/src/generators/testing-utils/create-tree.js +1 -2
  136. package/src/generators/tree.d.ts +0 -2
  137. package/src/generators/tree.js +3 -3
  138. package/src/generators/utils/glob.js +2 -3
  139. package/src/generators/utils/json.js +3 -4
  140. package/src/generators/utils/nx-json.js +2 -3
  141. package/src/generators/utils/project-configuration.js +7 -7
  142. package/src/hasher/create-task-hasher.js +1 -2
  143. package/src/hasher/file-hasher.js +2 -3
  144. package/src/hasher/hash-task.d.ts +0 -1
  145. package/src/hasher/hash-task.js +2 -3
  146. package/src/hasher/native-task-hasher-impl.d.ts +0 -1
  147. package/src/hasher/node-task-hasher-impl.d.ts +0 -1
  148. package/src/hasher/task-hasher.d.ts +0 -1
  149. package/src/hasher/task-hasher.js +10 -10
  150. package/src/migrations/update-15-0-0/migrate-to-inputs.js +1 -1
  151. package/src/migrations/update-15-0-0/prefix-outputs.js +1 -1
  152. package/src/migrations/update-16-0-0/remove-nrwl-cli.js +1 -1
  153. package/src/migrations/update-16-0-0/update-depends-on-to-tokens.js +1 -1
  154. package/src/migrations/update-16-0-0/update-nx-cloud-runner.js +1 -1
  155. package/src/migrations/update-16-2-0/remove-run-commands-output-path.js +1 -1
  156. package/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.js +1 -1
  157. package/src/migrations/update-16-9-0/remove-project-name-and-root-format.js +1 -1
  158. package/src/migrations/update-17-0-0/move-cache-directory.js +1 -1
  159. package/src/migrations/update-17-0-0/rm-default-collection-npm-scope.js +1 -1
  160. package/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.js +1 -1
  161. package/src/migrations/update-17-2-0/move-default-base.js +1 -1
  162. package/src/migrations/update-17-3-0/nx-release-path.js +2 -3
  163. package/src/migrations/update-17-3-0/update-nxw.js +1 -1
  164. package/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.js +1 -1
  165. package/src/migrations/update-19-2-0/move-workspace-data-directory.js +3 -4
  166. package/src/migrations/update-19-2-4/set-project-name.js +1 -1
  167. package/src/native/assert-supported-platform.js +1 -2
  168. package/src/native/native-file-cache-location.js +1 -2
  169. package/src/native/nx.wasm32-wasi.wasm +0 -0
  170. package/src/native/transform-objects.js +1 -2
  171. package/src/nx-cloud/debug-logger.js +1 -2
  172. package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +1 -2
  173. package/src/nx-cloud/resolution-helpers.js +1 -2
  174. package/src/nx-cloud/update-manager.js +2 -2
  175. package/src/nx-cloud/utilities/axios.js +1 -2
  176. package/src/nx-cloud/utilities/get-cloud-options.js +1 -2
  177. package/src/nx-cloud/utilities/url-shorten.js +8 -9
  178. package/src/plugins/js/hasher/hasher.js +1 -2
  179. package/src/plugins/js/lock-file/lock-file.js +6 -6
  180. package/src/plugins/js/lock-file/npm-parser.js +3 -4
  181. package/src/plugins/js/lock-file/pnpm-parser.js +3 -4
  182. package/src/plugins/js/lock-file/project-graph-pruning.js +1 -2
  183. package/src/plugins/js/lock-file/utils/package-json.js +2 -3
  184. package/src/plugins/js/lock-file/utils/pnpm-normalizer.js +5 -6
  185. package/src/plugins/js/lock-file/yarn-parser.js +3 -4
  186. package/src/plugins/js/package-json/create-package-json.js +2 -3
  187. package/src/plugins/js/project-graph/build-dependencies/build-dependencies.js +1 -2
  188. package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.js +1 -2
  189. package/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.js +1 -2
  190. package/src/plugins/js/project-graph/build-dependencies/strip-source-code.js +1 -2
  191. package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +2 -2
  192. package/src/plugins/js/project-graph/build-nodes/build-npm-package-nodes.js +1 -2
  193. package/src/plugins/js/utils/config.js +1 -2
  194. package/src/plugins/js/utils/register.d.ts +1 -0
  195. package/src/plugins/js/utils/register.js +7 -8
  196. package/src/plugins/js/utils/resolve-relative-to-dir.js +1 -2
  197. package/src/plugins/js/utils/typescript.js +5 -6
  198. package/src/plugins/js/versions.d.ts +1 -1
  199. package/src/plugins/js/versions.js +1 -1
  200. package/src/plugins/package-json-workspaces/create-nodes.js +5 -5
  201. package/src/plugins/project-json/build-nodes/project-json.js +3 -3
  202. package/src/project-graph/affected/affected-project-graph.js +1 -2
  203. package/src/project-graph/build-project-graph.js +3 -4
  204. package/src/project-graph/error-types.js +11 -11
  205. package/src/project-graph/file-map-utils.js +4 -5
  206. package/src/project-graph/file-utils.d.ts +1 -1
  207. package/src/project-graph/file-utils.js +7 -7
  208. package/src/project-graph/nx-deps-cache.js +8 -8
  209. package/src/project-graph/operators.js +5 -5
  210. package/src/project-graph/plugins/internal-api.d.ts +1 -1
  211. package/src/project-graph/plugins/internal-api.js +13 -9
  212. package/src/project-graph/plugins/isolation/index.js +1 -2
  213. package/src/project-graph/plugins/isolation/messaging.d.ts +0 -2
  214. package/src/project-graph/plugins/isolation/messaging.js +4 -5
  215. package/src/project-graph/plugins/isolation/plugin-pool.js +1 -2
  216. package/src/project-graph/plugins/isolation/plugin-worker.js +1 -1
  217. package/src/project-graph/plugins/loader.js +7 -7
  218. package/src/project-graph/plugins/utils.js +4 -5
  219. package/src/project-graph/project-graph-builder.js +2 -2
  220. package/src/project-graph/project-graph.js +7 -8
  221. package/src/project-graph/utils/build-all-workspace-files.js +1 -2
  222. package/src/project-graph/utils/find-project-for-path.js +4 -5
  223. package/src/project-graph/utils/implicit-project-dependencies.js +1 -2
  224. package/src/project-graph/utils/normalize-project-nodes.js +2 -3
  225. package/src/project-graph/utils/project-configuration-utils.js +11 -12
  226. package/src/project-graph/utils/retrieve-workspace-files.js +6 -7
  227. package/src/tasks-runner/create-task-graph.js +3 -3
  228. package/src/tasks-runner/forked-process-task-runner.d.ts +0 -1
  229. package/src/tasks-runner/init-tasks-runner.js +1 -2
  230. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +1 -2
  231. package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +1 -2
  232. package/src/tasks-runner/life-cycles/formatting-utils.js +2 -3
  233. package/src/tasks-runner/life-cycles/pretty-time.js +1 -2
  234. package/src/tasks-runner/life-cycles/view-logs-utils.js +1 -2
  235. package/src/tasks-runner/pseudo-ipc.d.ts +0 -1
  236. package/src/tasks-runner/pseudo-terminal.d.ts +0 -1
  237. package/src/tasks-runner/pseudo-terminal.js +2 -2
  238. package/src/tasks-runner/run-command.js +4 -5
  239. package/src/tasks-runner/task-env.d.ts +0 -1
  240. package/src/tasks-runner/task-env.js +5 -6
  241. package/src/tasks-runner/task-graph-utils.js +2 -3
  242. package/src/tasks-runner/task-orchestrator.js +8 -0
  243. package/src/tasks-runner/utils.js +25 -26
  244. package/src/utils/ab-testing.js +2 -2
  245. package/src/utils/all-file-data.js +1 -2
  246. package/src/utils/assert-workspace-validity.js +1 -2
  247. package/src/utils/async-iterator.js +2 -3
  248. package/src/utils/cache-directory.js +2 -2
  249. package/src/utils/child-process.d.ts +0 -1
  250. package/src/utils/child-process.js +3 -3
  251. package/src/utils/chunkify.js +1 -2
  252. package/src/utils/code-frames.js +1 -2
  253. package/src/utils/collapse-expanded-outputs.js +1 -2
  254. package/src/utils/command-line-utils.js +5 -6
  255. package/src/utils/consume-messages-from-socket.js +1 -2
  256. package/src/utils/default-base.js +1 -2
  257. package/src/utils/dotenv.js +1 -2
  258. package/src/utils/exit-codes.d.ts +0 -1
  259. package/src/utils/exit-codes.js +1 -2
  260. package/src/utils/fileutils.d.ts +0 -1
  261. package/src/utils/fileutils.js +9 -10
  262. package/src/utils/find-matching-projects.js +2 -2
  263. package/src/utils/find-workspace-root.js +1 -2
  264. package/src/utils/get-package-name-from-import-path.js +1 -2
  265. package/src/utils/git-utils.js +4 -5
  266. package/src/utils/globs.js +1 -2
  267. package/src/utils/ignore.js +4 -4
  268. package/src/utils/installation-directory.js +2 -3
  269. package/src/utils/is-ci.js +1 -2
  270. package/src/utils/json-diff.js +5 -5
  271. package/src/utils/json.js +3 -3
  272. package/src/utils/logger.js +2 -2
  273. package/src/utils/nx-cloud-utils.js +3 -4
  274. package/src/utils/nx-plugin.deprecated.js +1 -2
  275. package/src/utils/object-sort.js +1 -2
  276. package/src/utils/package-json.js +8 -9
  277. package/src/utils/package-manager.js +13 -14
  278. package/src/utils/params.js +14 -14
  279. package/src/utils/path.js +3 -4
  280. package/src/utils/plugins/community-plugins.js +1 -2
  281. package/src/utils/plugins/core-plugins.js +2 -3
  282. package/src/utils/plugins/installed-plugins.js +3 -4
  283. package/src/utils/plugins/local-plugins.js +2 -3
  284. package/src/utils/plugins/plugin-capabilities.js +2 -3
  285. package/src/utils/plugins/shared.js +1 -2
  286. package/src/utils/print-help.js +1 -2
  287. package/src/utils/project-graph-utils.js +4 -5
  288. package/src/utils/serializable-error.js +1 -2
  289. package/src/utils/serialize-overrides-into-command-line.js +1 -2
  290. package/src/utils/serialize-target.js +1 -2
  291. package/src/utils/split-target.js +2 -3
  292. package/src/utils/strip-indents.js +1 -2
  293. package/src/utils/task-history.js +3 -3
  294. package/src/utils/update-nxw.js +1 -2
  295. package/src/utils/workspace-configuration-check.js +1 -2
  296. package/src/utils/workspace-context.js +10 -11
  297. package/src/utils/workspace-root.js +3 -3
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFirstGitCommit = exports.getCommitHash = exports.parseGitCommit = exports.parseConventionalCommitsMessage = exports.parseCommits = exports.gitPush = exports.gitTag = exports.gitCommit = exports.gitAdd = exports.getGitDiff = exports.getLatestGitTagForPattern = void 0;
3
+ exports.getLatestGitTagForPattern = getLatestGitTagForPattern;
4
+ exports.getGitDiff = getGitDiff;
5
+ exports.gitAdd = gitAdd;
6
+ exports.gitCommit = gitCommit;
7
+ exports.gitTag = gitTag;
8
+ exports.gitPush = gitPush;
9
+ exports.parseCommits = parseCommits;
10
+ exports.parseConventionalCommitsMessage = parseConventionalCommitsMessage;
11
+ exports.parseGitCommit = parseGitCommit;
12
+ exports.getCommitHash = getCommitHash;
13
+ exports.getFirstGitCommit = getFirstGitCommit;
4
14
  /**
5
15
  * Special thanks to changelogen for the original inspiration for many of these utilities:
6
16
  * https://github.com/unjs/changelogen
@@ -65,7 +75,6 @@ async function getLatestGitTagForPattern(releaseTagPattern, additionalInterpolat
65
75
  return null;
66
76
  }
67
77
  }
68
- exports.getLatestGitTagForPattern = getLatestGitTagForPattern;
69
78
  async function getGitDiff(from, to = 'HEAD') {
70
79
  let range = '';
71
80
  if (!from || from === to) {
@@ -97,7 +106,6 @@ async function getGitDiff(from, to = 'HEAD') {
97
106
  return r;
98
107
  });
99
108
  }
100
- exports.getGitDiff = getGitDiff;
101
109
  async function getChangedTrackedFiles(cwd) {
102
110
  const result = await (0, exec_command_1.execCommand)('git', ['status', '--porcelain'], {
103
111
  cwd,
@@ -159,7 +167,6 @@ async function gitAdd({ changedFiles, deletedFiles, dryRun, verbose, logFn, cwd,
159
167
  cwd,
160
168
  });
161
169
  }
162
- exports.gitAdd = gitAdd;
163
170
  async function isIgnored(filePath, cwd) {
164
171
  try {
165
172
  // This command will error if the file is not ignored
@@ -204,7 +211,6 @@ async function gitCommit({ messages, additionalArgs, dryRun, verbose, logFn, })
204
211
  }
205
212
  return (0, exec_command_1.execCommand)('git', commandArgs);
206
213
  }
207
- exports.gitCommit = gitCommit;
208
214
  async function gitTag({ tag, message, additionalArgs, dryRun, verbose, logFn, }) {
209
215
  logFn = logFn || console.log;
210
216
  const commandArgs = [
@@ -234,7 +240,6 @@ async function gitTag({ tag, message, additionalArgs, dryRun, verbose, logFn, })
234
240
  throw new Error(`Unexpected error when creating tag ${tag}:\n\n${err}`);
235
241
  }
236
242
  }
237
- exports.gitTag = gitTag;
238
243
  async function gitPush({ gitRemote, dryRun, verbose, }) {
239
244
  const commandArgs = [
240
245
  'push',
@@ -261,11 +266,9 @@ async function gitPush({ gitRemote, dryRun, verbose, }) {
261
266
  throw new Error(`Unexpected git push error: ${err}`);
262
267
  }
263
268
  }
264
- exports.gitPush = gitPush;
265
269
  function parseCommits(commits) {
266
270
  return commits.map((commit) => parseGitCommit(commit)).filter(Boolean);
267
271
  }
268
- exports.parseCommits = parseCommits;
269
272
  function parseConventionalCommitsMessage(message) {
270
273
  const match = message.match(ConventionalCommitRegex);
271
274
  if (!match) {
@@ -278,7 +281,6 @@ function parseConventionalCommitsMessage(message) {
278
281
  breaking: Boolean(match.groups.breaking),
279
282
  };
280
283
  }
281
- exports.parseConventionalCommitsMessage = parseConventionalCommitsMessage;
282
284
  // https://www.conventionalcommits.org/en/v1.0.0/
283
285
  // https://regex101.com/r/FSfNvA/1
284
286
  const ConventionalCommitRegex = /(?<type>[a-z]+)(\((?<scope>.+)\))?(?<breaking>!)?: (?<description>.+)/i;
@@ -343,7 +345,6 @@ function parseGitCommit(commit) {
343
345
  affectedFiles,
344
346
  };
345
347
  }
346
- exports.parseGitCommit = parseGitCommit;
347
348
  async function getCommitHash(ref) {
348
349
  try {
349
350
  return (await (0, exec_command_1.execCommand)('git', ['rev-parse', ref])).trim();
@@ -352,7 +353,6 @@ async function getCommitHash(ref) {
352
353
  throw new Error(`Unknown revision: ${ref}`);
353
354
  }
354
355
  }
355
- exports.getCommitHash = getCommitHash;
356
356
  async function getFirstGitCommit() {
357
357
  try {
358
358
  return (await (0, exec_command_1.execCommand)('git', [
@@ -366,4 +366,3 @@ async function getFirstGitCommit() {
366
366
  throw new Error(`Unable to find first commit in git history`);
367
367
  }
368
368
  }
369
- exports.getFirstGitCommit = getFirstGitCommit;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formatReferences = exports.getGithubReleaseByTag = exports.resolveGithubToken = exports.createOrUpdateGithubRelease = exports.getGitHubRepoSlug = void 0;
3
+ exports.getGitHubRepoSlug = getGitHubRepoSlug;
4
+ exports.createOrUpdateGithubRelease = createOrUpdateGithubRelease;
5
+ exports.resolveGithubToken = resolveGithubToken;
6
+ exports.getGithubReleaseByTag = getGithubReleaseByTag;
7
+ exports.formatReferences = formatReferences;
4
8
  const chalk = require("chalk");
5
9
  const enquirer_1 = require("enquirer");
6
10
  const node_child_process_1 = require("node:child_process");
@@ -33,7 +37,6 @@ function getGitHubRepoSlug(remoteName = 'origin') {
33
37
  return null;
34
38
  }
35
39
  }
36
- exports.getGitHubRepoSlug = getGitHubRepoSlug;
37
40
  async function createOrUpdateGithubRelease(releaseVersion, changelogContents, latestCommit, { dryRun }) {
38
41
  const githubRepoSlug = getGitHubRepoSlug();
39
42
  if (!githubRepoSlug) {
@@ -91,7 +94,6 @@ async function createOrUpdateGithubRelease(releaseVersion, changelogContents, la
91
94
  }, existingGithubReleaseForVersion);
92
95
  }
93
96
  }
94
- exports.createOrUpdateGithubRelease = createOrUpdateGithubRelease;
95
97
  async function createOrUpdateGithubReleaseInternal(githubRequestConfig, release, existingGithubReleaseForVersion) {
96
98
  const result = await syncGithubRelease(githubRequestConfig, release, existingGithubReleaseForVersion);
97
99
  /**
@@ -242,11 +244,9 @@ async function resolveGithubToken() {
242
244
  }
243
245
  return null;
244
246
  }
245
- exports.resolveGithubToken = resolveGithubToken;
246
247
  async function getGithubReleaseByTag(config, tag) {
247
248
  return await makeGithubRequest(config, `/repos/${config.repo}/releases/tags/${tag}`, {});
248
249
  }
249
- exports.getGithubReleaseByTag = getGithubReleaseByTag;
250
250
  async function makeGithubRequest(config, url, opts = {}) {
251
251
  return (await axios(url, {
252
252
  ...opts,
@@ -294,4 +294,3 @@ function formatReferences(references, repoSlug) {
294
294
  }
295
295
  return '';
296
296
  }
297
- exports.formatReferences = formatReferences;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.launchEditor = void 0;
3
+ exports.launchEditor = launchEditor;
4
4
  const node_child_process_1 = require("node:child_process");
5
5
  async function launchEditor(filePath) {
6
6
  // Inspired by what git does
@@ -24,7 +24,6 @@ async function launchEditor(filePath) {
24
24
  });
25
25
  });
26
26
  }
27
- exports.launchEditor = launchEditor;
28
27
  function getGitConfig(key) {
29
28
  try {
30
29
  return (0, node_child_process_1.execSync)(`git config --get ${key}`).toString().trim();
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseChangelogMarkdown = void 0;
3
+ exports.parseChangelogMarkdown = parseChangelogMarkdown;
4
4
  function parseChangelogMarkdown(contents) {
5
5
  /**
6
6
  * The release header may include prerelease identifiers (e.g., -alpha.13),
@@ -26,4 +26,3 @@ function parseChangelogMarkdown(contents) {
26
26
  releases,
27
27
  };
28
28
  }
29
- exports.parseChangelogMarkdown = parseChangelogMarkdown;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { Tree } from '../../../generators/tree';
3
2
  export declare function printDiff(before: string, after: string, contextLines?: number, noDiffMessage?: string): void;
4
3
  export declare function printAndFlushChanges(tree: Tree, isDryRun: boolean, diffContextLines?: number, shouldPrintDryRunMessage?: boolean, noDiffMessage?: string, changePredicate?: (f: {
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printAndFlushChanges = exports.printDiff = void 0;
3
+ exports.printDiff = printDiff;
4
+ exports.printAndFlushChanges = printAndFlushChanges;
4
5
  const chalk = require("chalk");
5
6
  const jest_diff_1 = require("jest-diff");
6
7
  const node_fs_1 = require("node:fs");
@@ -26,7 +27,6 @@ function printDiff(before, after, contextLines = 1, noDiffMessage = NO_DIFF_MESS
26
27
  }
27
28
  console.log('');
28
29
  }
29
- exports.printDiff = printDiff;
30
30
  function printAndFlushChanges(tree, isDryRun, diffContextLines = 1, shouldPrintDryRunMessage = true, noDiffMessage, changePredicate) {
31
31
  changePredicate = changePredicate || (() => true);
32
32
  const changes = tree.listChanges();
@@ -57,4 +57,3 @@ function printAndFlushChanges(tree, isDryRun, diffContextLines = 1, shouldPrintD
57
57
  devkit_exports_1.logger.warn(`\nNOTE: The "dryRun" flag means no changes were made.`);
58
58
  }
59
59
  }
60
- exports.printAndFlushChanges = printAndFlushChanges;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveChangelogRenderer = void 0;
3
+ exports.resolveChangelogRenderer = resolveChangelogRenderer;
4
4
  const register_1 = require("../../../plugins/js/utils/register");
5
5
  const typescript_1 = require("../../../plugins/js/utils/typescript");
6
6
  const utils_1 = require("../../../tasks-runner/utils");
@@ -28,4 +28,3 @@ function resolveChangelogRenderer(changelogRendererPath) {
28
28
  }
29
29
  return changelogRenderer;
30
30
  }
31
- exports.resolveChangelogRenderer = resolveChangelogRenderer;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveNxJsonConfigErrorMessage = void 0;
3
+ exports.resolveNxJsonConfigErrorMessage = resolveNxJsonConfigErrorMessage;
4
4
  const node_fs_1 = require("node:fs");
5
5
  const node_path_1 = require("node:path");
6
6
  const devkit_exports_1 = require("../../../devkit-exports");
@@ -15,7 +15,6 @@ async function resolveNxJsonConfigErrorMessage(propPath) {
15
15
  }
16
16
  return nxJsonMessage;
17
17
  }
18
- exports.resolveNxJsonConfigErrorMessage = resolveNxJsonConfigErrorMessage;
19
18
  async function getJsonConfigLinesForErrorMessage(rawConfig, jsonPath) {
20
19
  try {
21
20
  const jsonParser = await Promise.resolve().then(() => require('jsonc-parser'));
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveSemverSpecifierFromPrompt = exports.resolveSemverSpecifierFromConventionalCommits = void 0;
3
+ exports.resolveSemverSpecifierFromConventionalCommits = resolveSemverSpecifierFromConventionalCommits;
4
+ exports.resolveSemverSpecifierFromPrompt = resolveSemverSpecifierFromPrompt;
4
5
  const enquirer_1 = require("enquirer");
5
6
  const semver_1 = require("semver");
6
7
  const git_1 = require("./git");
@@ -12,7 +13,6 @@ async function resolveSemverSpecifierFromConventionalCommits(from, projectGraph,
12
13
  const relevantCommits = await (0, shared_1.getCommitsRelevantToProjects)(projectGraph, parsedCommits, projectNames);
13
14
  return (0, semver_2.determineSemverChange)(relevantCommits, conventionalCommitsConfig);
14
15
  }
15
- exports.resolveSemverSpecifierFromConventionalCommits = resolveSemverSpecifierFromConventionalCommits;
16
16
  async function resolveSemverSpecifierFromPrompt(selectionMessage, customVersionMessage) {
17
17
  try {
18
18
  const reply = await (0, enquirer_1.prompt)([
@@ -55,4 +55,3 @@ async function resolveSemverSpecifierFromPrompt(selectionMessage, customVersionM
55
55
  process.exit(1);
56
56
  }
57
57
  }
58
- exports.resolveSemverSpecifierFromPrompt = resolveSemverSpecifierFromPrompt;
@@ -4,16 +4,17 @@
4
4
  * https://github.com/unjs/changelogen
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.deriveNewSemverVersion = exports.determineSemverChange = exports.isValidSemverSpecifier = exports.isRelativeVersionKeyword = void 0;
7
+ exports.isRelativeVersionKeyword = isRelativeVersionKeyword;
8
+ exports.isValidSemverSpecifier = isValidSemverSpecifier;
9
+ exports.determineSemverChange = determineSemverChange;
10
+ exports.deriveNewSemverVersion = deriveNewSemverVersion;
8
11
  const semver_1 = require("semver");
9
12
  function isRelativeVersionKeyword(val) {
10
13
  return semver_1.RELEASE_TYPES.includes(val);
11
14
  }
12
- exports.isRelativeVersionKeyword = isRelativeVersionKeyword;
13
15
  function isValidSemverSpecifier(specifier) {
14
16
  return (specifier && !!((0, semver_1.valid)(specifier) || isRelativeVersionKeyword(specifier)));
15
17
  }
16
- exports.isValidSemverSpecifier = isValidSemverSpecifier;
17
18
  // https://github.com/unjs/changelogen/blob/main/src/semver.ts
18
19
  function determineSemverChange(commits, config) {
19
20
  let [hasMajor, hasMinor, hasPatch] = [false, false, false];
@@ -34,7 +35,6 @@ function determineSemverChange(commits, config) {
34
35
  }
35
36
  return hasMajor ? 'major' : hasMinor ? 'minor' : hasPatch ? 'patch' : null;
36
37
  }
37
- exports.determineSemverChange = determineSemverChange;
38
38
  function deriveNewSemverVersion(currentSemverVersion, semverSpecifier, preid) {
39
39
  if (!(0, semver_1.valid)(currentSemverVersion)) {
40
40
  throw new Error(`Invalid semver version "${currentSemverVersion}" provided.`);
@@ -56,4 +56,3 @@ function deriveNewSemverVersion(currentSemverVersion, semverSpecifier, preid) {
56
56
  }
57
57
  return newVersion;
58
58
  }
59
- exports.deriveNewSemverVersion = deriveNewSemverVersion;
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCommitsRelevantToProjects = exports.handleDuplicateGitTags = exports.createGitTagValues = exports.createCommitMessageValues = exports.commitChanges = exports.ReleaseVersion = exports.noDiffInChangelogMessage = void 0;
3
+ exports.ReleaseVersion = exports.noDiffInChangelogMessage = void 0;
4
+ exports.commitChanges = commitChanges;
5
+ exports.createCommitMessageValues = createCommitMessageValues;
6
+ exports.createGitTagValues = createGitTagValues;
7
+ exports.handleDuplicateGitTags = handleDuplicateGitTags;
8
+ exports.getCommitsRelevantToProjects = getCommitsRelevantToProjects;
4
9
  const chalk = require("chalk");
5
10
  const semver_1 = require("semver");
6
11
  const file_map_utils_1 = require("../../../project-graph/file-map-utils");
@@ -48,7 +53,6 @@ async function commitChanges({ changedFiles, deletedFiles, isDryRun, isVerbose,
48
53
  verbose: isVerbose,
49
54
  });
50
55
  }
51
- exports.commitChanges = commitChanges;
52
56
  function createCommitMessageValues(releaseGroups, releaseGroupToFilteredProjects, versionData, commitMessage) {
53
57
  const commitMessageValues = [commitMessage];
54
58
  if (releaseGroups.length === 0) {
@@ -132,7 +136,6 @@ function createCommitMessageValues(releaseGroups, releaseGroupToFilteredProjects
132
136
  }
133
137
  return commitMessageValues;
134
138
  }
135
- exports.createCommitMessageValues = createCommitMessageValues;
136
139
  function stripPlaceholders(str, placeholders) {
137
140
  for (const placeholder of placeholders) {
138
141
  // for cleanest possible final result try and replace relevant spacing around placeholders first
@@ -171,7 +174,6 @@ function createGitTagValues(releaseGroups, releaseGroupToFilteredProjects, versi
171
174
  }
172
175
  return tags;
173
176
  }
174
- exports.createGitTagValues = createGitTagValues;
175
177
  function findDuplicates(arr) {
176
178
  const seen = new Set();
177
179
  const duplicates = new Set();
@@ -200,7 +202,6 @@ function handleDuplicateGitTags(gitTagValues) {
200
202
  process.exit(1);
201
203
  }
202
204
  }
203
- exports.handleDuplicateGitTags = handleDuplicateGitTags;
204
205
  async function getCommitsRelevantToProjects(projectGraph, commits, projects) {
205
206
  const { fileMap } = await (0, file_map_utils_1.createFileMapUsingProjectGraph)(projectGraph);
206
207
  const filesInReleaseGroup = new Set(projects.reduce((files, p) => [...files, ...fileMap.projectFileMap[p].map((f) => f.file)], []));
@@ -213,4 +214,3 @@ async function getCommitsRelevantToProjects(projectGraph, commits, projects) {
213
214
  (!c.scope &&
214
215
  fileMap.nonProjectFiles.some((nonProjectFile) => nonProjectFile.file === f))));
215
216
  }
216
- exports.getCommitsRelevantToProjects = getCommitsRelevantToProjects;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.releaseVersion = exports.releaseVersionCLIHandler = exports.validReleaseVersionPrefixes = exports.deriveNewSemverVersion = void 0;
3
+ exports.releaseVersionCLIHandler = exports.validReleaseVersionPrefixes = exports.deriveNewSemverVersion = void 0;
4
+ exports.releaseVersion = releaseVersion;
4
5
  const chalk = require("chalk");
5
6
  const node_child_process_1 = require("node:child_process");
6
7
  const node_fs_1 = require("node:fs");
@@ -281,7 +282,6 @@ async function releaseVersion(args) {
281
282
  projectsVersionData: versionData,
282
283
  };
283
284
  }
284
- exports.releaseVersion = releaseVersion;
285
285
  function appendVersionData(existingVersionData, newVersionData) {
286
286
  // Mutate the existing version data
287
287
  for (const [key, value] of Object.entries(newVersionData)) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.repair = void 0;
3
+ exports.repair = repair;
4
4
  const params_1 = require("../../utils/params");
5
5
  const migrationsJson = require("../../../migrations.json");
6
6
  const migrate_1 = require("../migrate/migrate");
@@ -38,4 +38,3 @@ async function repair(args, extraMigrations = []) {
38
38
  }
39
39
  });
40
40
  }
41
- exports.repair = repair;
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.findInstalledPackagesWeCareAbout = exports.findRegisteredPluginsBeingUsed = exports.findInstalledCommunityPlugins = exports.findMisalignedPackagesForPackage = exports.getReportData = exports.reportHandler = exports.patternsWeIgnoreInCommunityReport = exports.packagesWeCareAbout = void 0;
3
+ exports.patternsWeIgnoreInCommunityReport = exports.packagesWeCareAbout = void 0;
4
+ exports.reportHandler = reportHandler;
5
+ exports.getReportData = getReportData;
6
+ exports.findMisalignedPackagesForPackage = findMisalignedPackagesForPackage;
7
+ exports.findInstalledCommunityPlugins = findInstalledCommunityPlugins;
8
+ exports.findRegisteredPluginsBeingUsed = findRegisteredPluginsBeingUsed;
9
+ exports.findInstalledPackagesWeCareAbout = findInstalledPackagesWeCareAbout;
4
10
  const chalk = require("chalk");
5
11
  const output_1 = require("../../utils/output");
6
12
  const path_1 = require("path");
@@ -13,6 +19,7 @@ const semver_1 = require("semver");
13
19
  const installed_plugins_1 = require("../../utils/plugins/installed-plugins");
14
20
  const installation_directory_1 = require("../../utils/installation-directory");
15
21
  const nx_json_1 = require("../../config/nx-json");
22
+ const error_types_1 = require("../../project-graph/error-types");
16
23
  const nxPackageJson = (0, fileutils_1.readJsonFile)((0, path_1.join)(__dirname, '../../../package.json'));
17
24
  exports.packagesWeCareAbout = [
18
25
  'lerna',
@@ -89,23 +96,14 @@ async function reportHandler() {
89
96
  bodyLines,
90
97
  });
91
98
  }
92
- exports.reportHandler = reportHandler;
93
99
  async function getReportData() {
94
100
  const pm = (0, package_manager_1.detectPackageManager)();
95
101
  const pmVersion = (0, package_manager_1.getPackageManagerVersion)(pm);
102
+ const { graph, error: projectGraphError } = await tryGetProjectGraph();
96
103
  const nxJson = (0, nx_json_1.readNxJson)();
97
- const localPlugins = await findLocalPlugins(nxJson);
104
+ const localPlugins = await findLocalPlugins(graph, nxJson);
98
105
  const communityPlugins = findInstalledCommunityPlugins();
99
106
  const registeredPlugins = findRegisteredPluginsBeingUsed(nxJson);
100
- let projectGraphError = null;
101
- if (isNativeAvailable()) {
102
- try {
103
- await (0, project_graph_1.createProjectGraphAsync)();
104
- }
105
- catch (e) {
106
- projectGraphError = e;
107
- }
108
- }
109
107
  const packageVersionsWeCareAbout = findInstalledPackagesWeCareAbout();
110
108
  packageVersionsWeCareAbout.unshift({
111
109
  package: 'nx',
@@ -129,10 +127,24 @@ async function getReportData() {
129
127
  projectGraphError,
130
128
  };
131
129
  }
132
- exports.getReportData = getReportData;
133
- async function findLocalPlugins(nxJson) {
130
+ async function tryGetProjectGraph() {
131
+ try {
132
+ return { graph: await (0, project_graph_1.createProjectGraphAsync)() };
133
+ }
134
+ catch (error) {
135
+ if (error instanceof error_types_1.ProjectGraphError) {
136
+ return {
137
+ graph: error.getPartialProjectGraph(),
138
+ error: error,
139
+ };
140
+ }
141
+ return {
142
+ error,
143
+ };
144
+ }
145
+ }
146
+ async function findLocalPlugins(projectGraph, nxJson) {
134
147
  try {
135
- const projectGraph = await (0, project_graph_1.createProjectGraphAsync)({ exitOnError: true });
136
148
  const localPlugins = await (0, local_plugins_1.getLocalWorkspacePlugins)((0, project_graph_1.readProjectsConfigurationFromProjectGraph)(projectGraph), nxJson);
137
149
  return Array.from(localPlugins.keys());
138
150
  }
@@ -179,7 +191,6 @@ function findMisalignedPackagesForPackage(base) {
179
191
  }
180
192
  : undefined;
181
193
  }
182
- exports.findMisalignedPackagesForPackage = findMisalignedPackagesForPackage;
183
194
  function findInstalledCommunityPlugins() {
184
195
  const installedPlugins = (0, installed_plugins_1.findInstalledPlugins)();
185
196
  return installedPlugins.filter((dep) => dep.name !== 'nx' &&
@@ -187,14 +198,12 @@ function findInstalledCommunityPlugins() {
187
198
  ? pattern === dep.name
188
199
  : pattern.test(dep.name)));
189
200
  }
190
- exports.findInstalledCommunityPlugins = findInstalledCommunityPlugins;
191
201
  function findRegisteredPluginsBeingUsed(nxJson) {
192
202
  if (!nxJson.plugins) {
193
203
  return [];
194
204
  }
195
205
  return nxJson.plugins.map((plugin) => typeof plugin === 'object' ? plugin.plugin : plugin);
196
206
  }
197
- exports.findRegisteredPluginsBeingUsed = findRegisteredPluginsBeingUsed;
198
207
  function findInstalledPackagesWeCareAbout() {
199
208
  const packagesWeMayCareAbout = {};
200
209
  // TODO (v20): Remove workaround for hiding @nrwl packages when matching @nx package is found.
@@ -237,7 +246,6 @@ function findInstalledPackagesWeCareAbout() {
237
246
  version,
238
247
  }));
239
248
  }
240
- exports.findInstalledPackagesWeCareAbout = findInstalledPackagesWeCareAbout;
241
249
  function isNativeAvailable() {
242
250
  try {
243
251
  require('../../native');
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resetHandler = void 0;
3
+ exports.resetHandler = resetHandler;
4
4
  const fs_extra_1 = require("fs-extra");
5
5
  const client_1 = require("../../daemon/client/client");
6
6
  const cache_directory_1 = require("../../utils/cache-directory");
@@ -74,7 +74,6 @@ async function resetHandler(args) {
74
74
  });
75
75
  }
76
76
  }
77
- exports.resetHandler = resetHandler;
78
77
  function killDaemon() {
79
78
  return client_1.daemonClient.stop();
80
79
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getExecutorInformation = exports.normalizeExecutorSchema = void 0;
3
+ exports.normalizeExecutorSchema = normalizeExecutorSchema;
4
+ exports.getExecutorInformation = getExecutorInformation;
4
5
  const path_1 = require("path");
5
6
  const plugins_1 = require("../../project-graph/plugins");
6
7
  const fileutils_1 = require("../../utils/fileutils");
@@ -17,7 +18,6 @@ function normalizeExecutorSchema(schema) {
17
18
  ...schema,
18
19
  };
19
20
  }
20
- exports.normalizeExecutorSchema = normalizeExecutorSchema;
21
21
  function cacheKey(nodeModule, executor, root) {
22
22
  return `${root}:${nodeModule}:${executor}`;
23
23
  }
@@ -53,7 +53,6 @@ function getExecutorInformation(nodeModule, executor, root, projects) {
53
53
  throw new Error(`Unable to resolve ${nodeModule}:${executor}.\n${e.message}`);
54
54
  }
55
55
  }
56
- exports.getExecutorInformation = getExecutorInformation;
57
56
  function readExecutorJson(nodeModule, executor, root, projects) {
58
57
  const { json: packageJson, path: packageJsonPath } = (0, plugins_1.readPluginPackageJson)(nodeModule, projects, root
59
58
  ? [root, __dirname, process.cwd(), ...(0, installation_directory_1.getNxRequirePaths)()]
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.runOne = void 0;
3
+ exports.runOne = runOne;
4
4
  const run_command_1 = require("../../tasks-runner/run-command");
5
5
  const command_line_utils_1 = require("../../utils/command-line-utils");
6
6
  const connect_to_nx_cloud_1 = require("../connect/connect-to-nx-cloud");
@@ -54,7 +54,6 @@ async function runOne(cwd, args, extraTargetDependencies = {}, extraOptions = {
54
54
  process.exit(status);
55
55
  }
56
56
  }
57
- exports.runOne = runOne;
58
57
  function getProjects(projectGraph, project) {
59
58
  if (!projectGraph.nodes[project]) {
60
59
  output_1.output.error({
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.run = exports.printTargetRunHelp = exports.runExecutor = exports.validateProject = exports.printRunHelp = void 0;
3
+ exports.printRunHelp = printRunHelp;
4
+ exports.validateProject = validateProject;
5
+ exports.runExecutor = runExecutor;
6
+ exports.printTargetRunHelp = printTargetRunHelp;
7
+ exports.run = run;
4
8
  const npm_run_path_1 = require("npm-run-path");
5
9
  const params_1 = require("../../utils/params");
6
10
  const print_help_1 = require("../../utils/print-help");
@@ -18,14 +22,12 @@ function printRunHelp(opts, schema, plugin) {
18
22
  ...plugin,
19
23
  });
20
24
  }
21
- exports.printRunHelp = printRunHelp;
22
25
  function validateProject(projects, projectName) {
23
26
  const project = projects.projects[projectName];
24
27
  if (!project) {
25
28
  throw new Error(`Could not find project "${projectName}"`);
26
29
  }
27
30
  }
28
- exports.validateProject = validateProject;
29
31
  function isPromise(v) {
30
32
  return typeof v?.then === 'function';
31
33
  }
@@ -171,7 +173,6 @@ async function runExecutor(targetDescription, overrides, context) {
171
173
  __overrides_unparsed__: (0, serialize_overrides_into_command_line_1.serializeOverridesIntoCommandLine)(overrides),
172
174
  }, context.root, context.cwd, context.projectsConfigurations, context.nxJsonConfiguration, context.projectGraph, context.taskGraph, context.isVerbose);
173
175
  }
174
- exports.runExecutor = runExecutor;
175
176
  function printTargetRunHelp(targetDescription, root) {
176
177
  const projectGraph = (0, project_graph_1.readCachedProjectGraph)();
177
178
  return (0, params_1.handleErrors)(false, async () => {
@@ -179,7 +180,6 @@ function printTargetRunHelp(targetDescription, root) {
179
180
  await printTargetRunHelpInternal(targetDescription, root, projectsConfigurations);
180
181
  });
181
182
  }
182
- exports.printTargetRunHelp = printTargetRunHelp;
183
183
  function run(cwd, root, targetDescription, overrides, isVerbose, taskGraph) {
184
184
  const projectGraph = (0, project_graph_1.readCachedProjectGraph)();
185
185
  return (0, params_1.handleErrors)(isVerbose, async () => {
@@ -187,4 +187,3 @@ function run(cwd, root, targetDescription, overrides, isVerbose, taskGraph) {
187
187
  return iteratorToProcessStatusCode(await runExecutorInternal(targetDescription, overrides, root, cwd, projectsConfigurations, (0, configuration_1.readNxJson)(), projectGraph, taskGraph, isVerbose));
188
188
  });
189
189
  }
190
- exports.run = run;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.projectsToRun = exports.runMany = void 0;
3
+ exports.runMany = runMany;
4
+ exports.projectsToRun = projectsToRun;
4
5
  const run_command_1 = require("../../tasks-runner/run-command");
5
6
  const command_line_utils_1 = require("../../utils/command-line-utils");
6
7
  const command_line_utils_2 = require("../../utils/command-line-utils");
@@ -46,7 +47,6 @@ async function runMany(args, extraTargetDependencies = {}, extraOptions = {
46
47
  process.exit(status);
47
48
  }
48
49
  }
49
- exports.runMany = runMany;
50
50
  function projectsToRun(nxArgs, projectGraph) {
51
51
  const selectedProjects = {};
52
52
  const validProjects = runnableForTarget(projectGraph.nodes, nxArgs.targets);
@@ -80,7 +80,6 @@ function projectsToRun(nxArgs, projectGraph) {
80
80
  }
81
81
  return Object.values(selectedProjects);
82
82
  }
83
- exports.projectsToRun = projectsToRun;
84
83
  function runnableForTarget(projects, targets) {
85
84
  const runnable = new Set();
86
85
  for (let projectName in projects) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.showProjectHandler = void 0;
3
+ exports.showProjectHandler = showProjectHandler;
4
4
  const output_1 = require("../../utils/output");
5
5
  const project_graph_1 = require("../../project-graph/project-graph");
6
6
  const graph_1 = require("../graph/graph");
@@ -58,4 +58,3 @@ async function showProjectHandler(args) {
58
58
  }
59
59
  await output_1.output.drain();
60
60
  }
61
- exports.showProjectHandler = showProjectHandler;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.showProjectsHandler = void 0;
3
+ exports.showProjectsHandler = showProjectsHandler;
4
4
  const output_1 = require("../../utils/output");
5
5
  const nx_json_1 = require("../../config/nx-json");
6
6
  const affected_project_graph_1 = require("../../project-graph/affected/affected-project-graph");
@@ -61,7 +61,6 @@ async function showProjectsHandler(args) {
61
61
  }
62
62
  await output_1.output.drain();
63
63
  }
64
- exports.showProjectsHandler = showProjectsHandler;
65
64
  function getGraphNodesMatchingPatterns(graph, patterns) {
66
65
  const nodes = {};
67
66
  const matches = (0, find_matching_projects_1.findMatchingProjects)(patterns, graph.nodes);
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.watch = exports.BatchFunctionRunner = void 0;
3
+ exports.BatchFunctionRunner = void 0;
4
+ exports.watch = watch;
4
5
  const child_process_1 = require("child_process");
5
6
  const client_1 = require("../../daemon/client/client");
6
7
  const output_1 = require("../../utils/output");
@@ -172,4 +173,3 @@ async function watch(args) {
172
173
  });
173
174
  args.verbose && output_1.output.logSingleLine('watch process waiting...');
174
175
  }
175
- exports.watch = watch;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.linkToNxDevAndExamples = void 0;
3
+ exports.linkToNxDevAndExamples = linkToNxDevAndExamples;
4
4
  const chalk = require("chalk");
5
5
  const examples_1 = require("../examples");
6
6
  function linkToNxDevAndExamples(yargs, command) {
@@ -9,4 +9,3 @@ function linkToNxDevAndExamples(yargs, command) {
9
9
  });
10
10
  return yargs.epilog(chalk.bold(`Find more information and examples at https://nx.dev/nx/${command.replace(':', '-')}`));
11
11
  }
12
- exports.linkToNxDevAndExamples = linkToNxDevAndExamples;