nx 17.0.4 → 17.0.6

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 (318) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +4 -9
  3. package/bin/init-local.js +60 -9
  4. package/bin/nx-cloud.js +0 -6
  5. package/bin/nx.js +9 -0
  6. package/bin/post-install.js +1 -5
  7. package/bin/run-executor.js +1 -1
  8. package/{release/changelog-renderer → changelog-renderer}/index.d.ts +3 -18
  9. package/{release/changelog-renderer → changelog-renderer}/index.js +34 -78
  10. package/migrations.json +0 -18
  11. package/package.json +18 -21
  12. package/{src/plugins/package-json-workspaces/create-nodes.d.ts → plugins/package-json-workspaces.d.ts} +4 -4
  13. package/{src/plugins/package-json-workspaces/create-nodes.js → plugins/package-json-workspaces.js} +12 -34
  14. package/plugins/package-json.js +1 -1
  15. package/schemas/nx-schema.json +19 -203
  16. package/schemas/project-schema.json +0 -20
  17. package/src/adapter/angular-json.js +18 -28
  18. package/src/adapter/compat.d.ts +2 -2
  19. package/src/adapter/compat.js +1 -6
  20. package/src/adapter/ngcli-adapter.d.ts +4 -16
  21. package/src/adapter/ngcli-adapter.js +28 -85
  22. package/src/command-line/affected/affected.js +3 -0
  23. package/src/command-line/affected/command-object.d.ts +4 -4
  24. package/src/command-line/affected/command-object.js +26 -53
  25. package/src/command-line/affected/print-affected.js +1 -10
  26. package/src/command-line/connect/command-object.d.ts +2 -1
  27. package/src/command-line/connect/command-object.js +7 -3
  28. package/src/command-line/connect/connect-to-nx-cloud.d.ts +5 -4
  29. package/src/command-line/connect/connect-to-nx-cloud.js +31 -43
  30. package/src/command-line/connect/view-logs.js +21 -5
  31. package/src/command-line/examples.js +0 -18
  32. package/src/command-line/exec/command-object.js +1 -2
  33. package/src/command-line/exec/exec.d.ts +1 -1
  34. package/src/command-line/exec/exec.js +35 -78
  35. package/src/command-line/format/format.js +4 -13
  36. package/src/command-line/generate/generate.js +9 -9
  37. package/src/command-line/generate/generator-utils.d.ts +2 -3
  38. package/src/command-line/generate/generator-utils.js +5 -5
  39. package/src/command-line/graph/graph.d.ts +1 -1
  40. package/src/command-line/graph/graph.js +37 -82
  41. package/src/command-line/init/command-object.js +43 -70
  42. package/src/command-line/init/implementation/add-nx-to-monorepo.d.ts +2 -4
  43. package/src/command-line/init/implementation/add-nx-to-monorepo.js +2 -11
  44. package/src/command-line/init/implementation/add-nx-to-nest.d.ts +1 -1
  45. package/src/command-line/init/implementation/add-nx-to-nest.js +6 -9
  46. package/src/command-line/init/implementation/add-nx-to-npm-repo.d.ts +2 -4
  47. package/src/command-line/init/implementation/add-nx-to-npm-repo.js +4 -14
  48. package/src/command-line/init/implementation/angular/index.js +1 -4
  49. package/src/command-line/init/implementation/angular/legacy-angular-versions.js +5 -10
  50. package/src/command-line/init/implementation/angular/standalone-workspace.js +1 -1
  51. package/src/command-line/init/implementation/angular/types.d.ts +1 -1
  52. package/src/command-line/init/implementation/dot-nx/nxw.js +16 -47
  53. package/src/command-line/init/implementation/react/index.d.ts +1 -1
  54. package/src/command-line/init/implementation/react/index.js +2 -4
  55. package/src/command-line/init/implementation/react/rename-js-to-jsx.js +2 -4
  56. package/src/command-line/init/implementation/utils.d.ts +5 -5
  57. package/src/command-line/init/implementation/utils.js +44 -46
  58. package/src/command-line/init/{init-v1.js → init.js} +13 -5
  59. package/src/command-line/list/list.js +5 -6
  60. package/src/command-line/migrate/command-object.js +4 -19
  61. package/src/command-line/migrate/migrate.js +17 -21
  62. package/src/command-line/new/new.js +1 -1
  63. package/src/command-line/nx-commands.js +1 -4
  64. package/src/command-line/release/changelog.d.ts +1 -22
  65. package/src/command-line/release/changelog.js +257 -459
  66. package/src/command-line/release/command-object.d.ts +7 -29
  67. package/src/command-line/release/command-object.js +20 -120
  68. package/src/command-line/release/config/config.d.ts +21 -26
  69. package/src/command-line/release/config/config.js +59 -416
  70. package/src/command-line/release/config/filter-release-groups.d.ts +2 -1
  71. package/src/command-line/release/config/filter-release-groups.js +1 -38
  72. package/src/command-line/release/publish.d.ts +3 -7
  73. package/src/command-line/release/publish.js +37 -89
  74. package/src/command-line/release/utils/git.d.ts +1 -34
  75. package/src/command-line/release/utils/git.js +34 -238
  76. package/src/command-line/release/utils/github.d.ts +5 -5
  77. package/src/command-line/release/utils/github.js +8 -155
  78. package/src/command-line/release/utils/markdown.js +1 -6
  79. package/src/command-line/release/utils/print-changes.d.ts +1 -1
  80. package/src/command-line/release/utils/print-changes.js +3 -3
  81. package/src/command-line/release/utils/resolve-nx-json-error-message.js +1 -4
  82. package/src/command-line/release/utils/semver.d.ts +0 -8
  83. package/src/command-line/release/utils/semver.js +1 -30
  84. package/src/command-line/release/version.d.ts +3 -37
  85. package/src/command-line/release/version.js +117 -312
  86. package/src/command-line/repair/repair.js +9 -13
  87. package/src/command-line/report/report.js +2 -2
  88. package/src/command-line/run/command-object.d.ts +0 -4
  89. package/src/command-line/run/command-object.js +2 -18
  90. package/src/command-line/run/executor-utils.d.ts +1 -2
  91. package/src/command-line/run/executor-utils.js +4 -4
  92. package/src/command-line/run/run-one.js +6 -3
  93. package/src/command-line/run/run.js +9 -34
  94. package/src/command-line/run-many/command-object.js +1 -4
  95. package/src/command-line/run-many/run-many.js +3 -0
  96. package/src/command-line/show/command-object.d.ts +0 -3
  97. package/src/command-line/show/command-object.js +2 -29
  98. package/src/command-line/show/show.js +0 -9
  99. package/src/command-line/yargs-utils/shared-options.d.ts +1 -4
  100. package/src/command-line/yargs-utils/shared-options.js +9 -23
  101. package/src/config/nx-json.d.ts +25 -160
  102. package/src/config/project-graph.d.ts +3 -3
  103. package/src/config/workspace-json-project-json.d.ts +1 -11
  104. package/src/config/workspaces.d.ts +1 -1
  105. package/src/config/workspaces.js +6 -4
  106. package/src/core/graph/3rdpartylicenses.txt +74 -144
  107. package/src/core/graph/environment.js +1 -1
  108. package/src/core/graph/index.html +6 -4
  109. package/src/core/graph/main.js +1 -1
  110. package/src/core/graph/polyfills.js +1 -0
  111. package/src/core/graph/runtime.js +1 -1
  112. package/src/core/graph/styles.css +3 -3
  113. package/src/core/graph/styles.js +1 -1
  114. package/src/daemon/client/client.d.ts +1 -5
  115. package/src/daemon/client/client.js +8 -27
  116. package/src/daemon/client/{daemon-socket-messenger.d.ts → socket-messenger.d.ts} +1 -1
  117. package/src/daemon/client/{daemon-socket-messenger.js → socket-messenger.js} +3 -3
  118. package/src/daemon/server/handle-hash-tasks.js +2 -12
  119. package/src/daemon/server/handle-request-project-graph.js +1 -1
  120. package/src/daemon/server/project-graph-incremental-recomputation.d.ts +13 -14
  121. package/src/daemon/server/project-graph-incremental-recomputation.js +33 -98
  122. package/src/daemon/server/shutdown-utils.js +4 -2
  123. package/src/daemon/server/watcher.js +3 -0
  124. package/src/daemon/socket-utils.d.ts +1 -2
  125. package/src/daemon/socket-utils.js +4 -15
  126. package/src/daemon/tmp-dir.d.ts +0 -1
  127. package/src/daemon/tmp-dir.js +4 -4
  128. package/src/devkit-exports.d.ts +2 -2
  129. package/src/devkit-exports.js +2 -3
  130. package/src/devkit-internals.d.ts +0 -3
  131. package/src/devkit-internals.js +1 -7
  132. package/src/executors/noop/schema.json +1 -1
  133. package/src/executors/run-commands/run-commands.impl.d.ts +2 -10
  134. package/src/executors/run-commands/run-commands.impl.js +48 -152
  135. package/src/executors/run-commands/schema.json +1 -11
  136. package/src/executors/run-script/run-script.impl.js +11 -43
  137. package/src/executors/utils/convert-nx-executor.js +1 -1
  138. package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.d.ts +1 -3
  139. package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.js +2 -4
  140. package/src/generators/testing-utils/create-tree-with-empty-workspace.js +6 -0
  141. package/src/generators/tree.d.ts +0 -1
  142. package/src/generators/utils/glob.js +2 -2
  143. package/src/generators/utils/project-configuration.js +9 -28
  144. package/src/hasher/hash-task.js +3 -9
  145. package/src/hasher/task-hasher.d.ts +21 -33
  146. package/src/hasher/task-hasher.js +428 -30
  147. package/src/migrations/update-15-0-0/migrate-to-inputs.js +5 -5
  148. package/src/migrations/update-15-1-0/set-project-names.js +1 -2
  149. package/src/migrations/update-15-8-2/update-nxw.js +6 -2
  150. package/src/migrations/update-17-0-0/rm-default-collection-npm-scope.js +3 -3
  151. package/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.js +13 -49
  152. package/src/native/index.d.ts +15 -65
  153. package/src/native/index.js +2 -6
  154. package/src/native/transform-objects.js +0 -2
  155. package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.d.ts +0 -1
  156. package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +12 -13
  157. package/src/nx-cloud/generators/connect-to-nx-cloud/schema.json +1 -6
  158. package/src/nx-cloud/update-manager.js +1 -2
  159. package/src/plugins/js/index.d.ts +1 -1
  160. package/src/plugins/js/index.js +3 -3
  161. package/src/plugins/js/lock-file/lock-file.d.ts +2 -2
  162. package/src/plugins/js/lock-file/lock-file.js +3 -15
  163. package/src/plugins/js/package-json/create-package-json.js +1 -1
  164. package/src/plugins/js/project-graph/build-dependencies/strip-source-code.d.ts +1 -1
  165. package/src/plugins/js/project-graph/build-dependencies/strip-source-code.js +1 -1
  166. package/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.d.ts +1 -1
  167. package/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.js +1 -1
  168. package/src/plugins/js/utils/register.d.ts +1 -1
  169. package/src/plugins/js/utils/register.js +8 -28
  170. package/src/plugins/js/versions.d.ts +1 -1
  171. package/src/plugins/js/versions.js +1 -1
  172. package/src/plugins/project-json/build-nodes/project-json.d.ts +5 -2
  173. package/src/plugins/project-json/build-nodes/project-json.js +44 -6
  174. package/src/project-graph/affected/locators/project-glob-changes.js +3 -3
  175. package/src/project-graph/affected/locators/workspace-projects.d.ts +2 -0
  176. package/src/project-graph/affected/locators/workspace-projects.js +29 -16
  177. package/src/project-graph/build-project-graph.d.ts +1 -20
  178. package/src/project-graph/build-project-graph.js +33 -91
  179. package/src/project-graph/file-map-utils.d.ts +5 -9
  180. package/src/project-graph/file-map-utils.js +63 -16
  181. package/src/project-graph/file-utils.d.ts +1 -1
  182. package/src/project-graph/file-utils.js +2 -44
  183. package/src/project-graph/nx-deps-cache.js +1 -1
  184. package/src/project-graph/project-graph-builder.d.ts +1 -1
  185. package/src/project-graph/project-graph-builder.js +1 -1
  186. package/src/project-graph/project-graph.d.ts +1 -32
  187. package/src/project-graph/project-graph.js +23 -147
  188. package/src/project-graph/utils/normalize-project-nodes.d.ts +3 -2
  189. package/src/project-graph/utils/normalize-project-nodes.js +33 -7
  190. package/src/project-graph/utils/project-configuration-utils.d.ts +4 -66
  191. package/src/project-graph/utils/project-configuration-utils.js +62 -503
  192. package/src/project-graph/utils/retrieve-workspace-files.d.ts +31 -12
  193. package/src/project-graph/utils/retrieve-workspace-files.js +90 -27
  194. package/src/tasks-runner/batch/run-batch.js +3 -3
  195. package/src/tasks-runner/cache.js +3 -6
  196. package/src/tasks-runner/create-task-graph.js +1 -1
  197. package/src/tasks-runner/forked-process-task-runner.d.ts +5 -13
  198. package/src/tasks-runner/forked-process-task-runner.js +21 -111
  199. package/src/tasks-runner/init-tasks-runner.js +1 -1
  200. package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +28 -28
  201. package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +22 -19
  202. package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.js +3 -1
  203. package/src/tasks-runner/life-cycles/invoke-runner-terminal-output-life-cycle.js +3 -1
  204. package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +4 -2
  205. package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.d.ts +0 -1
  206. package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js +5 -11
  207. package/src/tasks-runner/life-cycles/view-logs-utils.js +1 -1
  208. package/src/tasks-runner/run-command.d.ts +1 -1
  209. package/src/tasks-runner/run-command.js +19 -13
  210. package/src/tasks-runner/task-env.js +2 -1
  211. package/src/tasks-runner/task-graph-utils.d.ts +3 -7
  212. package/src/tasks-runner/task-graph-utils.js +15 -15
  213. package/src/tasks-runner/task-orchestrator.js +12 -66
  214. package/src/tasks-runner/tasks-schedule.js +3 -3
  215. package/src/tasks-runner/utils.d.ts +7 -16
  216. package/src/tasks-runner/utils.js +16 -30
  217. package/src/utils/ab-testing.d.ts +2 -36
  218. package/src/utils/ab-testing.js +16 -34
  219. package/src/utils/assert-workspace-validity.js +1 -1
  220. package/src/utils/cache-directory.d.ts +0 -1
  221. package/src/utils/cache-directory.js +1 -5
  222. package/src/utils/child-process.d.ts +1 -15
  223. package/src/utils/child-process.js +1 -91
  224. package/src/utils/command-line-utils.js +1 -2
  225. package/src/utils/fileutils.d.ts +0 -1
  226. package/src/utils/find-matching-projects.js +5 -5
  227. package/src/utils/ignore.js +1 -8
  228. package/src/utils/json-diff.d.ts +0 -1
  229. package/src/utils/json-diff.js +1 -2
  230. package/src/utils/json.js +1 -3
  231. package/src/utils/logger.js +1 -1
  232. package/src/utils/nx-cloud-utils.d.ts +1 -1
  233. package/src/utils/nx-cloud-utils.js +4 -9
  234. package/src/utils/nx-plugin.d.ts +15 -32
  235. package/src/utils/nx-plugin.deprecated.d.ts +5 -10
  236. package/src/utils/nx-plugin.deprecated.js +0 -23
  237. package/src/utils/nx-plugin.js +80 -71
  238. package/src/utils/output.d.ts +2 -4
  239. package/src/utils/output.js +9 -44
  240. package/src/utils/package-json.d.ts +4 -4
  241. package/src/utils/package-json.js +12 -18
  242. package/src/utils/package-manager.d.ts +0 -7
  243. package/src/utils/package-manager.js +4 -24
  244. package/src/utils/params.d.ts +4 -12
  245. package/src/utils/params.js +4 -37
  246. package/src/utils/plugins/core-plugins.js +0 -8
  247. package/src/utils/plugins/installed-plugins.d.ts +1 -2
  248. package/src/utils/plugins/installed-plugins.js +2 -2
  249. package/src/utils/plugins/local-plugins.js +1 -1
  250. package/src/utils/plugins/plugin-capabilities.d.ts +2 -3
  251. package/src/utils/plugins/plugin-capabilities.js +7 -7
  252. package/src/utils/typescript.js +1 -1
  253. package/src/utils/workspace-configuration-check.js +1 -1
  254. package/src/utils/workspace-context.d.ts +4 -6
  255. package/src/utils/workspace-context.js +9 -19
  256. package/release/index.d.ts +0 -4
  257. package/release/index.js +0 -11
  258. package/src/command-line/add/add.d.ts +0 -2
  259. package/src/command-line/add/add.js +0 -169
  260. package/src/command-line/add/command-object.d.ts +0 -7
  261. package/src/command-line/add/command-object.js +0 -24
  262. package/src/command-line/init/init-v2.d.ts +0 -7
  263. package/src/command-line/init/init-v2.js +0 -201
  264. package/src/command-line/release/config/conventional-commits.d.ts +0 -2
  265. package/src/command-line/release/config/conventional-commits.js +0 -98
  266. package/src/command-line/release/index.d.ts +0 -16
  267. package/src/command-line/release/index.js +0 -23
  268. package/src/command-line/release/release.d.ts +0 -4
  269. package/src/command-line/release/release.js +0 -176
  270. package/src/command-line/release/utils/batch-projects-by-generator-config.d.ts +0 -7
  271. package/src/command-line/release/utils/batch-projects-by-generator-config.js +0 -37
  272. package/src/command-line/release/utils/exec-command.d.ts +0 -1
  273. package/src/command-line/release/utils/exec-command.js +0 -34
  274. package/src/command-line/release/utils/resolve-semver-specifier.d.ts +0 -4
  275. package/src/command-line/release/utils/resolve-semver-specifier.js +0 -58
  276. package/src/command-line/release/utils/shared.d.ts +0 -39
  277. package/src/command-line/release/utils/shared.js +0 -213
  278. package/src/commands-runner/command-graph.d.ts +0 -13
  279. package/src/commands-runner/command-graph.js +0 -2
  280. package/src/commands-runner/create-command-graph.d.ts +0 -4
  281. package/src/commands-runner/create-command-graph.js +0 -44
  282. package/src/commands-runner/get-command-projects.d.ts +0 -3
  283. package/src/commands-runner/get-command-projects.js +0 -19
  284. package/src/daemon/daemon-project-graph-error.d.ts +0 -8
  285. package/src/daemon/daemon-project-graph-error.js +0 -13
  286. package/src/hasher/create-task-hasher.d.ts +0 -4
  287. package/src/hasher/create-task-hasher.js +0 -16
  288. package/src/hasher/native-task-hasher-impl.d.ts +0 -19
  289. package/src/hasher/native-task-hasher-impl.js +0 -37
  290. package/src/hasher/node-task-hasher-impl.d.ts +0 -49
  291. package/src/hasher/node-task-hasher-impl.js +0 -431
  292. package/src/migrations/update-17-2-0/move-default-base.d.ts +0 -5
  293. package/src/migrations/update-17-2-0/move-default-base.js +0 -21
  294. package/src/migrations/update-17-3-0/nx-release-path.d.ts +0 -3
  295. package/src/migrations/update-17-3-0/nx-release-path.js +0 -48
  296. package/src/migrations/update-17-3-0/update-nxw.d.ts +0 -2
  297. package/src/migrations/update-17-3-0/update-nxw.js +0 -7
  298. package/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.d.ts +0 -2
  299. package/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.js +0 -9
  300. package/src/plugins/package-json-workspaces/index.d.ts +0 -1
  301. package/src/plugins/package-json-workspaces/index.js +0 -4
  302. package/src/plugins/project-json/build-nodes/package-json-next-to-project-json.d.ts +0 -2
  303. package/src/plugins/project-json/build-nodes/package-json-next-to-project-json.js +0 -47
  304. package/src/plugins/target-defaults/target-defaults-plugin.d.ts +0 -66
  305. package/src/plugins/target-defaults/target-defaults-plugin.js +0 -182
  306. package/src/project-graph/utils/build-all-workspace-files.d.ts +0 -2
  307. package/src/project-graph/utils/build-all-workspace-files.js +0 -15
  308. package/src/tasks-runner/fork.d.ts +0 -1
  309. package/src/tasks-runner/fork.js +0 -23
  310. package/src/tasks-runner/pseudo-ipc.d.ts +0 -49
  311. package/src/tasks-runner/pseudo-ipc.js +0 -140
  312. package/src/tasks-runner/pseudo-terminal.d.ts +0 -43
  313. package/src/tasks-runner/pseudo-terminal.js +0 -159
  314. package/src/utils/exit-codes.d.ts +0 -6
  315. package/src/utils/exit-codes.js +0 -20
  316. package/src/utils/update-nxw.d.ts +0 -2
  317. package/src/utils/update-nxw.js +0 -12
  318. /package/src/command-line/init/{init-v1.d.ts → init.d.ts} +0 -0
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2017-2024 Narwhal Technologies Inc.
3
+ Copyright (c) 2017-2023 Narwhal Technologies Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -1,9 +1,4 @@
1
- <p style="text-align: center;">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
- <img alt="Nx - Smart Monorepos · Fast CI" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
- </picture>
6
- </p>
1
+ <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
7
2
 
8
3
  <div style="text-align: center;">
9
4
 
@@ -20,9 +15,9 @@
20
15
 
21
16
  <hr>
22
17
 
23
- # Nx: Smart Monorepos · Fast CI
18
+ # Nx: Smart, Fast and Extensible Build System
24
19
 
25
- Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
20
+ Nx is a next generation build system with first class monorepo support and powerful integrations.
26
21
 
27
22
  ## Getting Started
28
23
 
@@ -62,5 +57,5 @@ npx nx@latest init
62
57
  - [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
63
58
 
64
59
  <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
65
- width="100%" alt="Nx - Smart Monorepos · Fast CI"></a></p>
60
+ width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
66
61
 
package/bin/init-local.js CHANGED
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rewriteTargetsAndProjects = exports.initLocal = void 0;
4
4
  const perf_hooks_1 = require("perf_hooks");
5
+ const child_process_1 = require("child_process");
6
+ const package_manager_1 = require("../src/utils/package-manager");
5
7
  const nx_commands_1 = require("../src/command-line/nx-commands");
6
8
  const strip_indents_1 = require("../src/utils/strip-indents");
7
9
  const Mod = require("module");
@@ -37,7 +39,8 @@ function initLocal(workspace) {
37
39
  }
38
40
  }
39
41
  else {
40
- nx_commands_1.commandsObject.parse(process.argv.slice(2));
42
+ const newArgs = rewritePositionalArguments(process.argv);
43
+ nx_commands_1.commandsObject.parse(newArgs);
41
44
  }
42
45
  }
43
46
  catch (e) {
@@ -77,6 +80,38 @@ function rewriteTargetsAndProjects(args) {
77
80
  return newArgs;
78
81
  }
79
82
  exports.rewriteTargetsAndProjects = rewriteTargetsAndProjects;
83
+ function rewritePositionalArguments(args) {
84
+ const relevantPositionalArgs = [];
85
+ const rest = [];
86
+ for (let i = 2; i < args.length; i++) {
87
+ if (args[i] === '--') {
88
+ rest.push(...args.slice(i + 1));
89
+ break;
90
+ }
91
+ else if (!args[i].startsWith('-')) {
92
+ relevantPositionalArgs.push(args[i]);
93
+ if (relevantPositionalArgs.length === 2) {
94
+ rest.push(...args.slice(i + 1));
95
+ break;
96
+ }
97
+ }
98
+ else {
99
+ rest.push(args[i]);
100
+ }
101
+ }
102
+ if (relevantPositionalArgs.length === 1) {
103
+ return [
104
+ 'run',
105
+ `${wrapIntoQuotesIfNeeded(relevantPositionalArgs[0])}`,
106
+ ...rest,
107
+ ];
108
+ }
109
+ return [
110
+ 'run',
111
+ `${relevantPositionalArgs[1]}:${wrapIntoQuotesIfNeeded(relevantPositionalArgs[0])}`,
112
+ ...rest,
113
+ ];
114
+ }
80
115
  function wrapIntoQuotesIfNeeded(arg) {
81
116
  return arg.indexOf(':') > -1 ? `"${arg}"` : arg;
82
117
  }
@@ -100,12 +135,12 @@ function isKnownCommand(command) {
100
135
  function shouldDelegateToAngularCLI() {
101
136
  const command = process.argv[2];
102
137
  const commands = [
138
+ 'add',
103
139
  'analytics',
104
- 'cache',
105
- 'completion',
106
140
  'config',
107
141
  'doc',
108
142
  'update',
143
+ 'completion',
109
144
  ];
110
145
  return commands.indexOf(command) > -1;
111
146
  }
@@ -122,18 +157,34 @@ function handleAngularCLIFallbacks(workspace) {
122
157
  console.log(`Running "ng update" can still be useful in some dev workflows, so we aren't planning to remove it.`);
123
158
  console.log(`If you need to use it, run "FORCE_NG_UPDATE=true ng update".`);
124
159
  }
160
+ else if (process.argv[2] === 'add') {
161
+ console.log('Ng add is not natively supported by Nx');
162
+ const pkg = process.argv[2] === 'add' ? process.argv[3] : process.argv[4];
163
+ if (!pkg) {
164
+ process.exit(1);
165
+ }
166
+ const pm = (0, package_manager_1.getPackageManagerCommand)();
167
+ const cmd = `${pm.add} ${pkg} && ${pm.exec} nx g ${pkg}:ng-add`;
168
+ console.log(`Instead, we recommend running \`${cmd}\``);
169
+ Promise.resolve().then(() => require('enquirer')).then((x) => x
170
+ .prompt({
171
+ name: 'c',
172
+ type: 'confirm',
173
+ message: 'Run this command?',
174
+ })
175
+ .then(({ c }) => {
176
+ if (c) {
177
+ (0, child_process_1.execSync)(cmd, { stdio: 'inherit' });
178
+ }
179
+ }));
180
+ }
125
181
  else if (process.argv[2] === 'completion') {
126
182
  if (!process.argv[3]) {
127
183
  console.log(`"ng completion" is not natively supported by Nx.
128
184
  Instead, you could try an Nx Editor Plugin for a visual tool to run Nx commands. If you're using VSCode, you can use the Nx Console plugin, or if you're using WebStorm, you could use one of the available community plugins.
129
- For more information, see https://nx.dev/getting-started/editor-setup`);
185
+ For more information, see https://nx.dev/core-features/integrate-with-editors`);
130
186
  }
131
187
  }
132
- else if (process.argv[2] === 'cache') {
133
- console.log(`"ng cache" is not natively supported by Nx.
134
- To clear the cache, you can delete the ".angular/cache" directory (or the directory configured by "cli.cache.path" in the "nx.json" file).
135
- To update the cache configuration, you can directly update the relevant options in your "nx.json" file (https://angular.io/guide/workspace-config#cache-options).`);
136
- }
137
188
  else {
138
189
  try {
139
190
  // nx-ignore-next-line
package/bin/nx-cloud.js CHANGED
@@ -35,12 +35,6 @@ async function invokeCommandWithNxCloudClient(options) {
35
35
  catch (e) {
36
36
  const body = ['Cannot run commands from the `nx-cloud` CLI.'];
37
37
  if (e instanceof update_manager_1.NxCloudEnterpriseOutdatedError) {
38
- try {
39
- // TODO: Remove this when all enterprise customers have updated.
40
- // Try requiring the bin from the `nx-cloud` package.
41
- return require('nx-cloud/bin/nx-cloud');
42
- }
43
- catch { }
44
38
  body.push('If you are an Nx Enterprise customer, please reach out to your assigned Developer Productivity Engineer.', 'If you are NOT an Nx Enterprise customer but are seeing this message, please reach out to cloud-support@nrwl.io.');
45
39
  }
46
40
  if (e instanceof update_manager_1.NxCloudClientUnavailableError) {
package/bin/nx.js CHANGED
@@ -38,6 +38,15 @@ function main() {
38
38
  require('nx/src/command-line/nx-commands').commandsObject.argv;
39
39
  }
40
40
  else {
41
+ // v8-compile-cache doesn't support ESM. Attempting to import ESM
42
+ // with it enabled results in an error that reads "Invalid host options".
43
+ //
44
+ // Angular CLI, and prettier both use ESM so we need to disable it in these cases.
45
+ if (workspace &&
46
+ workspace.type === 'nx' &&
47
+ !['format', 'format:check', 'format:write', 'g', 'generate'].some((cmd) => process.argv[2] === cmd)) {
48
+ require('v8-compile-cache');
49
+ }
41
50
  if (!client_1.daemonClient.enabled() && workspace !== null) {
42
51
  (0, workspace_context_1.setupWorkspaceContext)(workspace.dir);
43
52
  }
@@ -10,10 +10,8 @@ const update_manager_1 = require("../src/nx-cloud/update-manager");
10
10
  const get_cloud_options_1 = require("../src/nx-cloud/utilities/get-cloud-options");
11
11
  const nx_cloud_utils_1 = require("../src/utils/nx-cloud-utils");
12
12
  const nx_json_1 = require("../src/config/nx-json");
13
- const workspace_context_1 = require("../src/utils/workspace-context");
14
13
  (async () => {
15
14
  try {
16
- (0, workspace_context_1.setupWorkspaceContext)(workspace_root_1.workspaceRoot);
17
15
  if (isMainNxPackage() && (0, fileutils_1.fileExists)((0, path_1.join)(workspace_root_1.workspaceRoot, 'nx.json'))) {
18
16
  const b = new Date();
19
17
  (0, assert_supported_platform_1.assertSupportedPlatform)();
@@ -21,9 +19,7 @@ const workspace_context_1 = require("../src/utils/workspace-context");
21
19
  await client_1.daemonClient.stop();
22
20
  }
23
21
  catch (e) { }
24
- const tasks = [
25
- (0, project_graph_1.buildProjectGraphAndSourceMapsWithoutDaemon)(),
26
- ];
22
+ const tasks = [(0, project_graph_1.buildProjectGraphWithoutDaemon)()];
27
23
  if ((0, nx_cloud_utils_1.isNxCloudUsed)((0, nx_json_1.readNxJson)())) {
28
24
  tasks.push((0, update_manager_1.verifyOrUpdateNxCloudClient)((0, get_cloud_options_1.getCloudOptions)()));
29
25
  }
@@ -60,7 +60,7 @@ process.on('message', async (message) => {
60
60
  process.exit(statusCode);
61
61
  }
62
62
  catch (e) {
63
- console.error(e);
63
+ console.error(`Could not find 'nx' module in this workspace.`, e);
64
64
  process.exit(1);
65
65
  }
66
66
  });
@@ -1,7 +1,5 @@
1
- import { NxReleaseConfig } from '../../src/command-line/release/config/config';
2
- import type { GitCommit } from '../../src/command-line/release/utils/git';
3
- import { RepoSlug } from '../../src/command-line/release/utils/github';
4
- import type { ProjectGraph } from '../../src/config/project-graph';
1
+ import type { GitCommit } from '../src/command-line/release/utils/git';
2
+ import { RepoSlug } from '../src/command-line/release/utils/github';
5
3
  /**
6
4
  * The ChangelogRenderOptions are specific to each ChangelogRenderer implementation, and are taken
7
5
  * from the user's nx.json configuration and passed as is into the ChangelogRenderer function.
@@ -12,7 +10,6 @@ export type ChangelogRenderOptions = Record<string, unknown>;
12
10
  * and returns a string, or a Promise of a string of changelog contents (usually markdown).
13
11
  *
14
12
  * @param {Object} config The configuration object for the ChangelogRenderer
15
- * @param {ProjectGraph} config.projectGraph The project graph for the workspace
16
13
  * @param {GitCommit[]} config.commits The collection of extracted commits to generate a changelog for
17
14
  * @param {string} config.releaseVersion The version that is being released
18
15
  * @param {string | null} config.project The name of specific project to generate a changelog for, or `null` if the overall workspace changelog
@@ -20,14 +17,12 @@ export type ChangelogRenderOptions = Record<string, unknown>;
20
17
  * @param {ChangelogRenderOptions} config.changelogRenderOptions The options specific to the ChangelogRenderer implementation
21
18
  */
22
19
  export type ChangelogRenderer = (config: {
23
- projectGraph: ProjectGraph;
24
20
  commits: GitCommit[];
25
21
  releaseVersion: string;
26
22
  project: string | null;
27
23
  entryWhenNoChanges: string | false;
28
24
  changelogRenderOptions: DefaultChangelogRenderOptions;
29
25
  repoSlug?: RepoSlug;
30
- conventionalCommitsConfig: NxReleaseConfig['conventionalCommits'];
31
26
  }) => Promise<string> | string;
32
27
  /**
33
28
  * The specific options available to the default implementation of the ChangelogRenderer that nx exports
@@ -38,17 +33,7 @@ export interface DefaultChangelogRenderOptions extends ChangelogRenderOptions {
38
33
  * Whether or not the commit authors should be added to the bottom of the changelog in a "Thank You"
39
34
  * section. Defaults to true.
40
35
  */
41
- authors?: boolean;
42
- /**
43
- * Whether or not the commit references (such as commit and/or PR links) should be included in the changelog.
44
- * Defaults to true.
45
- */
46
- commitReferences?: boolean;
47
- /**
48
- * Whether or not to include the date in the version title. It can be set to false to disable it, or true to enable
49
- * with the default of (YYYY-MM-DD). Defaults to true.
50
- */
51
- versionTitleDate?: boolean;
36
+ includeAuthors?: boolean;
52
37
  }
53
38
  /**
54
39
  * The default ChangelogRenderer implementation that nx exports for the common case of generating markdown
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const semver_1 = require("semver");
4
- const github_1 = require("../../src/command-line/release/utils/github");
5
- const shared_1 = require("../../src/command-line/release/utils/shared");
3
+ const github_1 = require("../src/command-line/release/utils/github");
6
4
  // axios types and values don't seem to match
7
5
  const _axios = require("axios");
8
6
  const axios = _axios;
@@ -10,39 +8,40 @@ const axios = _axios;
10
8
  * The default ChangelogRenderer implementation that nx exports for the common case of generating markdown
11
9
  * from the given commits and other metadata.
12
10
  */
13
- const defaultChangelogRenderer = async ({ projectGraph, commits, releaseVersion, project, entryWhenNoChanges, changelogRenderOptions, repoSlug, conventionalCommitsConfig, }) => {
14
- const commitTypes = conventionalCommitsConfig.types;
11
+ const defaultChangelogRenderer = async ({ commits, releaseVersion, project, entryWhenNoChanges, changelogRenderOptions, repoSlug, }) => {
15
12
  const markdownLines = [];
16
13
  const breakingChanges = [];
17
- // If the current range of commits contains both a commit and its revert, we strip them both from the final list
18
- for (const commit of commits) {
19
- if (commit.type === 'revert') {
20
- for (const revertedHash of commit.revertedHashes) {
21
- const revertedCommit = commits.find((c) => revertedHash.startsWith(c.shortHash));
22
- if (revertedCommit) {
23
- commits.splice(commits.indexOf(revertedCommit), 1);
24
- commits.splice(commits.indexOf(commit), 1);
25
- }
26
- }
27
- }
28
- }
14
+ const commitTypes = {
15
+ feat: { title: '🚀 Features' },
16
+ perf: { title: '🔥 Performance' },
17
+ fix: { title: '🩹 Fixes' },
18
+ refactor: { title: '💅 Refactors' },
19
+ docs: { title: '📖 Documentation' },
20
+ build: { title: '📦 Build' },
21
+ types: { title: '🌊 Types' },
22
+ chore: { title: '🏡 Chore' },
23
+ examples: { title: '🏀 Examples' },
24
+ test: { title: '✅ Tests' },
25
+ style: { title: '🎨 Styles' },
26
+ ci: { title: '🤖 CI' },
27
+ };
29
28
  // workspace root level changelog
30
29
  if (project === null) {
31
30
  // No changes for the workspace
32
31
  if (commits.length === 0) {
33
32
  if (entryWhenNoChanges) {
34
- markdownLines.push('', `${createVersionTitle(releaseVersion, changelogRenderOptions)}\n\n${entryWhenNoChanges}`, '');
33
+ markdownLines.push('', `## ${releaseVersion}\n\n${entryWhenNoChanges}`, '');
35
34
  }
36
35
  return markdownLines.join('\n').trim();
37
36
  }
38
37
  const typeGroups = groupBy(commits, 'type');
39
- markdownLines.push('', createVersionTitle(releaseVersion, changelogRenderOptions), '');
38
+ markdownLines.push('', `## ${releaseVersion}`, '');
40
39
  for (const type of Object.keys(commitTypes)) {
41
40
  const group = typeGroups[type];
42
41
  if (!group || group.length === 0) {
43
42
  continue;
44
43
  }
45
- markdownLines.push('', '### ' + commitTypes[type].changelog.title, '');
44
+ markdownLines.push('', '### ' + commitTypes[type].title, '');
46
45
  /**
47
46
  * In order to make the final changelog most readable, we organize commits as follows:
48
47
  * - By scope, where scopes are in alphabetical order (commits with no scope are listed first)
@@ -54,13 +53,10 @@ const defaultChangelogRenderer = async ({ projectGraph, commits, releaseVersion,
54
53
  for (const scope of scopesSortedAlphabetically) {
55
54
  const commits = commitsGroupedByScope[scope];
56
55
  for (const commit of commits) {
57
- const line = formatCommit(commit, changelogRenderOptions, repoSlug);
56
+ const line = formatCommit(commit, repoSlug);
58
57
  markdownLines.push(line);
59
58
  if (commit.isBreaking) {
60
- const breakingChangeExplanation = extractBreakingChangeExplanation(commit.body);
61
- breakingChanges.push(breakingChangeExplanation
62
- ? `- ${commit.scope ? `**${commit.scope.trim()}:** ` : ''}${breakingChangeExplanation}`
63
- : line);
59
+ breakingChanges.push(line);
64
60
  }
65
61
  }
66
62
  }
@@ -68,33 +64,28 @@ const defaultChangelogRenderer = async ({ projectGraph, commits, releaseVersion,
68
64
  }
69
65
  else {
70
66
  // project level changelog
71
- const relevantCommits = await (0, shared_1.getCommitsRelevantToProjects)(projectGraph, commits, [project]);
72
- // Generating for a named project, but that project has no relevant changes in the current set of commits, exit early
73
- if (relevantCommits.length === 0) {
67
+ const scopeGroups = groupBy(commits, 'scope');
68
+ // Generating for a named project, but that project has no changes in the current set of commits, exit early
69
+ if (!scopeGroups[project]) {
74
70
  if (entryWhenNoChanges) {
75
- markdownLines.push('', `${createVersionTitle(releaseVersion, changelogRenderOptions)}\n\n${entryWhenNoChanges}`, '');
71
+ markdownLines.push('', `## ${releaseVersion}\n\n${entryWhenNoChanges}`, '');
76
72
  }
77
73
  return markdownLines.join('\n').trim();
78
74
  }
79
- markdownLines.push('', createVersionTitle(releaseVersion, changelogRenderOptions), '');
80
- const typeGroups = groupBy(
81
- // Sort the relevant commits to have the unscoped commits first, before grouping by type
82
- relevantCommits.sort((a, b) => (b.scope ? 1 : 0) - (a.scope ? 1 : 0)), 'type');
75
+ markdownLines.push('', `## ${releaseVersion}`, '');
76
+ const typeGroups = groupBy(scopeGroups[project], 'type');
83
77
  for (const type of Object.keys(commitTypes)) {
84
78
  const group = typeGroups[type];
85
79
  if (!group || group.length === 0) {
86
80
  continue;
87
81
  }
88
- markdownLines.push('', `### ${commitTypes[type].changelog.title}`, '');
82
+ markdownLines.push('', `### ${commitTypes[type].title}`, '');
89
83
  const commitsInChronologicalOrder = group.reverse();
90
84
  for (const commit of commitsInChronologicalOrder) {
91
- const line = formatCommit(commit, changelogRenderOptions, repoSlug);
85
+ const line = formatCommit(commit, repoSlug);
92
86
  markdownLines.push(line + '\n');
93
87
  if (commit.isBreaking) {
94
- const breakingChangeExplanation = extractBreakingChangeExplanation(commit.body);
95
- breakingChanges.push(breakingChangeExplanation
96
- ? `- ${commit.scope ? `**${commit.scope.trim()}:** ` : ''}${breakingChangeExplanation}`
97
- : line);
88
+ breakingChanges.push(line);
98
89
  }
99
90
  }
100
91
  }
@@ -102,7 +93,7 @@ const defaultChangelogRenderer = async ({ projectGraph, commits, releaseVersion,
102
93
  if (breakingChanges.length > 0) {
103
94
  markdownLines.push('', '#### ⚠️ Breaking Changes', '', ...breakingChanges);
104
95
  }
105
- if (changelogRenderOptions.authors) {
96
+ if (changelogRenderOptions.includeAuthors) {
106
97
  const _authors = new Map();
107
98
  for (const commit of commits) {
108
99
  if (!commit.author) {
@@ -177,48 +168,13 @@ function groupBy(items, key) {
177
168
  }
178
169
  return groups;
179
170
  }
180
- function formatCommit(commit, changelogRenderOptions, repoSlug) {
171
+ function formatCommit(commit, repoSlug) {
181
172
  let commitLine = '- ' +
182
- (commit.isBreaking ? '⚠️ ' : '') +
183
173
  (commit.scope ? `**${commit.scope.trim()}:** ` : '') +
174
+ (commit.isBreaking ? '⚠️ ' : '') +
184
175
  commit.description;
185
- if (repoSlug && changelogRenderOptions.commitReferences) {
176
+ if (repoSlug) {
186
177
  commitLine += (0, github_1.formatReferences)(commit.references, repoSlug);
187
178
  }
188
179
  return commitLine;
189
180
  }
190
- /**
191
- * It is common to add further information about a breaking change in the commit body,
192
- * and it is naturally that information that should be included in the BREAKING CHANGES
193
- * section of changelog, rather than repeating the commit title/description.
194
- */
195
- function extractBreakingChangeExplanation(message) {
196
- const breakingChangeIdentifier = 'BREAKING CHANGE:';
197
- const startIndex = message.indexOf(breakingChangeIdentifier);
198
- if (startIndex === -1) {
199
- // "BREAKING CHANGE:" not found in the message
200
- return null;
201
- }
202
- const startOfBreakingChange = startIndex + breakingChangeIdentifier.length;
203
- const endOfBreakingChange = message.indexOf('\n', startOfBreakingChange);
204
- if (endOfBreakingChange === -1) {
205
- // No newline character found, extract till the end of the message
206
- return message.substring(startOfBreakingChange).trim();
207
- }
208
- // Extract and return the breaking change message
209
- return message.substring(startOfBreakingChange, endOfBreakingChange).trim();
210
- }
211
- function createVersionTitle(version, changelogRenderOptions) {
212
- // Normalize by removing any leading `v` during comparison
213
- const isMajorVersion = `${(0, semver_1.major)(version)}.0.0` === version.replace(/^v/, '');
214
- let maybeDateStr = '';
215
- if (changelogRenderOptions.versionTitleDate) {
216
- // YYYY-MM-DD
217
- const dateStr = new Date().toISOString().slice(0, 10);
218
- maybeDateStr = ` (${dateStr})`;
219
- }
220
- if (isMajorVersion) {
221
- return `# ${version}${maybeDateStr}`;
222
- }
223
- return `## ${version}${maybeDateStr}`;
224
- }
package/migrations.json CHANGED
@@ -76,24 +76,6 @@
76
76
  "version": "17.0.0-rc.1",
77
77
  "description": "Migration for v17.0.0-rc.1",
78
78
  "implementation": "./src/migrations/update-17-0-0/rm-default-collection-npm-scope"
79
- },
80
- "17.3.0-update-nx-wrapper": {
81
- "cli": "nx",
82
- "version": "17.3.0-beta.6",
83
- "description": "Updates the nx wrapper.",
84
- "implementation": "./src/migrations/update-17-3-0/update-nxw"
85
- },
86
- "18.0.0-disable-adding-plugins-for-existing-workspaces": {
87
- "cli": "nx",
88
- "version": "18.0.0-beta.2",
89
- "description": "Updates nx.json to disabled adding plugins when generating projects in an existing Nx workspace",
90
- "implementation": "./src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces",
91
- "x-repair-skip": true
92
- },
93
- "move-default-base-to-nx-json-root": {
94
- "version": "18.1.0-beta.3",
95
- "description": "Moves affected.defaultBase to defaultBase in `nx.json`",
96
- "implementation": "./src/migrations/update-17-2-0/move-default-base"
97
79
  }
98
80
  }
99
81
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "17.0.4",
3
+ "version": "v17.0.6",
4
4
  "private": false,
5
5
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
6
6
  "repository": {
@@ -36,7 +36,7 @@
36
36
  "@yarnpkg/lockfile": "^1.1.0",
37
37
  "@yarnpkg/parsers": "3.0.0-rc.46",
38
38
  "@zkochan/js-yaml": "0.0.6",
39
- "axios": "^1.6.0",
39
+ "axios": "^1.5.1",
40
40
  "chalk": "^4.1.0",
41
41
  "cli-cursor": "3.1.0",
42
42
  "cli-spinners": "2.6.1",
@@ -47,29 +47,30 @@
47
47
  "figures": "3.2.0",
48
48
  "flat": "^5.0.2",
49
49
  "fs-extra": "^11.1.0",
50
+ "glob": "7.1.4",
50
51
  "ignore": "^5.0.4",
51
52
  "jest-diff": "^29.4.1",
52
53
  "js-yaml": "4.1.0",
53
54
  "jsonc-parser": "3.2.0",
54
55
  "lines-and-columns": "~2.0.3",
55
- "minimatch": "9.0.3",
56
+ "minimatch": "3.0.5",
56
57
  "npm-run-path": "^4.0.1",
57
58
  "open": "^8.4.0",
58
- "semver": "^7.5.3",
59
+ "semver": "7.5.3",
59
60
  "string-width": "^4.2.3",
60
61
  "strong-log-transformer": "^2.1.0",
61
62
  "tar-stream": "~2.2.0",
62
63
  "tmp": "~0.2.1",
63
64
  "tsconfig-paths": "^4.1.2",
64
65
  "tslib": "^2.3.0",
66
+ "v8-compile-cache": "2.3.0",
65
67
  "yargs": "^17.6.2",
66
68
  "yargs-parser": "21.1.1",
67
69
  "node-machine-id": "1.1.12",
68
- "ora": "5.3.0",
69
- "@nrwl/tao": "17.0.4"
70
+ "@nrwl/tao": "v17.0.6"
70
71
  },
71
72
  "peerDependencies": {
72
- "@swc-node/register": "^1.8.0",
73
+ "@swc-node/register": "^1.6.7",
73
74
  "@swc/core": "^1.3.85"
74
75
  },
75
76
  "peerDependenciesMeta": {
@@ -81,16 +82,16 @@
81
82
  }
82
83
  },
83
84
  "optionalDependencies": {
84
- "@nx/nx-darwin-x64": "17.0.4",
85
- "@nx/nx-darwin-arm64": "17.0.4",
86
- "@nx/nx-linux-x64-gnu": "17.0.4",
87
- "@nx/nx-linux-x64-musl": "17.0.4",
88
- "@nx/nx-win32-x64-msvc": "17.0.4",
89
- "@nx/nx-linux-arm64-gnu": "17.0.4",
90
- "@nx/nx-linux-arm64-musl": "17.0.4",
91
- "@nx/nx-linux-arm-gnueabihf": "17.0.4",
92
- "@nx/nx-win32-arm64-msvc": "17.0.4",
93
- "@nx/nx-freebsd-x64": "17.0.4"
85
+ "@nx/nx-darwin-x64": "v17.0.6",
86
+ "@nx/nx-darwin-arm64": "v17.0.6",
87
+ "@nx/nx-linux-x64-gnu": "v17.0.6",
88
+ "@nx/nx-linux-x64-musl": "v17.0.6",
89
+ "@nx/nx-win32-x64-msvc": "v17.0.6",
90
+ "@nx/nx-linux-arm64-gnu": "v17.0.6",
91
+ "@nx/nx-linux-arm64-musl": "v17.0.6",
92
+ "@nx/nx-linux-arm-gnueabihf": "v17.0.6",
93
+ "@nx/nx-win32-arm64-msvc": "v17.0.6",
94
+ "@nx/nx-freebsd-x64": "v17.0.6"
94
95
  },
95
96
  "nx-migrations": {
96
97
  "migrations": "./migrations.json",
@@ -120,14 +121,12 @@
120
121
  "@nrwl/expo",
121
122
  "@nx/express",
122
123
  "@nrwl/express",
123
- "@nx/gradle",
124
124
  "@nx/nest",
125
125
  "@nrwl/nest",
126
126
  "@nx/next",
127
127
  "@nrwl/next",
128
128
  "@nx/node",
129
129
  "@nrwl/node",
130
- "@nx/nuxt",
131
130
  "@nx/playwright",
132
131
  "@nx/plugin",
133
132
  "@nrwl/nx-plugin",
@@ -137,8 +136,6 @@
137
136
  "@nrwl/react-native",
138
137
  "@nx/rollup",
139
138
  "@nrwl/rollup",
140
- "@nx/remix",
141
- "@nrwl/remix",
142
139
  "@nx/storybook",
143
140
  "@nrwl/storybook",
144
141
  "@nrwl/tao",
@@ -1,7 +1,7 @@
1
- import { NxJsonConfiguration } from '../../config/nx-json';
2
- import { ProjectConfiguration } from '../../config/workspace-json-project-json';
3
- import { NxPluginV2 } from '../../utils/nx-plugin';
4
- import { PackageJson } from '../../utils/package-json';
1
+ import { NxJsonConfiguration } from '../src/config/nx-json';
2
+ import { ProjectConfiguration } from '../src/config/workspace-json-project-json';
3
+ import { NxPluginV2 } from '../src/utils/nx-plugin';
4
+ import { PackageJson } from '../src/utils/package-json';
5
5
  export declare function getNxPackageJsonWorkspacesPlugin(root: string): NxPluginV2;
6
6
  export declare function createNodeFromPackageJson(pkgJsonPath: string, root: string): {
7
7
  projects: {