nx 23.0.0-beta.2 → 23.0.0-beta.21

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 (274) hide show
  1. package/dist/bin/init-local.js +11 -20
  2. package/dist/bin/nx.d.ts +1 -0
  3. package/dist/bin/nx.js +28 -2
  4. package/dist/plugins/package-json.js +4 -2
  5. package/dist/src/adapter/ngcli-adapter.d.ts +2 -1
  6. package/dist/src/adapter/ngcli-adapter.js +25 -2
  7. package/dist/src/ai/clone-ai-config-repo.js +20 -3
  8. package/dist/src/analytics/analytics.js +10 -1
  9. package/dist/src/command-line/add/completion.d.ts +1 -0
  10. package/dist/src/command-line/add/completion.js +15 -0
  11. package/dist/src/command-line/affected/completion.d.ts +1 -0
  12. package/dist/src/command-line/affected/completion.js +15 -0
  13. package/dist/src/command-line/completion/argv-layout.d.ts +6 -0
  14. package/dist/src/command-line/completion/argv-layout.js +19 -0
  15. package/dist/src/command-line/completion/command-completions.d.ts +19 -0
  16. package/dist/src/command-line/completion/command-completions.js +120 -0
  17. package/dist/src/command-line/completion/command-handlers.d.ts +30 -0
  18. package/dist/src/command-line/completion/command-handlers.js +69 -0
  19. package/dist/src/command-line/completion/command-object.d.ts +10 -0
  20. package/dist/src/command-line/completion/command-object.js +95 -0
  21. package/dist/src/command-line/completion/completion-providers.d.ts +21 -0
  22. package/dist/src/command-line/completion/completion-providers.js +194 -0
  23. package/dist/src/command-line/completion/infix-targets.d.ts +1 -0
  24. package/dist/src/command-line/completion/infix-targets.js +48 -0
  25. package/dist/src/command-line/completion/metadata.d.ts +22 -0
  26. package/dist/src/command-line/completion/metadata.js +71 -0
  27. package/dist/src/command-line/completion/registrations.d.ts +9 -0
  28. package/dist/src/command-line/completion/registrations.js +16 -0
  29. package/dist/src/command-line/completion/scripts/bash.sh +51 -0
  30. package/dist/src/command-line/completion/scripts/fish.fish +47 -0
  31. package/dist/src/command-line/completion/scripts/powershell.ps1 +52 -0
  32. package/dist/src/command-line/completion/scripts/zsh.zsh +69 -0
  33. package/dist/src/command-line/completion/scripts.d.ts +18 -0
  34. package/dist/src/command-line/completion/scripts.js +140 -0
  35. package/dist/src/command-line/completion/trigger.d.ts +3 -0
  36. package/dist/src/command-line/completion/trigger.js +21 -0
  37. package/dist/src/command-line/completion/value-completions.d.ts +3 -0
  38. package/dist/src/command-line/completion/value-completions.js +21 -0
  39. package/dist/src/command-line/examples.js +1 -1
  40. package/dist/src/command-line/format/format.js +15 -5
  41. package/dist/src/command-line/generate/completion.d.ts +1 -0
  42. package/dist/src/command-line/generate/completion.js +9 -0
  43. package/dist/src/command-line/graph/completion.d.ts +1 -0
  44. package/dist/src/command-line/graph/completion.js +13 -0
  45. package/dist/src/command-line/init/implementation/angular/standalone-workspace.js +14 -18
  46. package/dist/src/command-line/init/implementation/dot-nx/add-nx-scripts.js +1 -0
  47. package/dist/src/command-line/init/implementation/utils.d.ts +7 -1
  48. package/dist/src/command-line/init/implementation/utils.js +51 -14
  49. package/dist/src/command-line/migrate/agentic/capture-generator-output.d.ts +22 -0
  50. package/dist/src/command-line/migrate/agentic/capture-generator-output.js +100 -0
  51. package/dist/src/command-line/migrate/agentic/cli-args.d.ts +12 -0
  52. package/dist/src/command-line/migrate/agentic/cli-args.js +38 -0
  53. package/dist/src/command-line/migrate/agentic/definitions.d.ts +6 -0
  54. package/dist/src/command-line/migrate/agentic/definitions.js +98 -0
  55. package/dist/src/command-line/migrate/agentic/detect-installed.d.ts +10 -0
  56. package/dist/src/command-line/migrate/agentic/detect-installed.js +68 -0
  57. package/dist/src/command-line/migrate/agentic/handoff-gitignore.d.ts +46 -0
  58. package/dist/src/command-line/migrate/agentic/handoff-gitignore.js +87 -0
  59. package/dist/src/command-line/migrate/agentic/handoff.d.ts +63 -0
  60. package/dist/src/command-line/migrate/agentic/handoff.js +183 -0
  61. package/dist/src/command-line/migrate/agentic/inception.d.ts +9 -0
  62. package/dist/src/command-line/migrate/agentic/inception.js +15 -0
  63. package/dist/src/command-line/migrate/agentic/print-dropped-agent-context.d.ts +22 -0
  64. package/dist/src/command-line/migrate/agentic/print-dropped-agent-context.js +50 -0
  65. package/dist/src/command-line/migrate/agentic/prompts/generic-validation.d.ts +51 -0
  66. package/dist/src/command-line/migrate/agentic/prompts/generic-validation.js +65 -0
  67. package/dist/src/command-line/migrate/agentic/prompts/hybrid-prompt-migration.d.ts +44 -0
  68. package/dist/src/command-line/migrate/agentic/prompts/hybrid-prompt-migration.js +52 -0
  69. package/dist/src/command-line/migrate/agentic/prompts/prompt-migration.d.ts +21 -0
  70. package/dist/src/command-line/migrate/agentic/prompts/prompt-migration.js +26 -0
  71. package/dist/src/command-line/migrate/agentic/prompts/shared-rendering.d.ts +18 -0
  72. package/dist/src/command-line/migrate/agentic/prompts/shared-rendering.js +130 -0
  73. package/dist/src/command-line/migrate/agentic/prompts/system-prompt.d.ts +46 -0
  74. package/dist/src/command-line/migrate/agentic/prompts/system-prompt.js +88 -0
  75. package/dist/src/command-line/migrate/agentic/run-step.d.ts +51 -0
  76. package/dist/src/command-line/migrate/agentic/run-step.js +121 -0
  77. package/dist/src/command-line/migrate/agentic/runner.d.ts +33 -0
  78. package/dist/src/command-line/migrate/agentic/runner.js +442 -0
  79. package/dist/src/command-line/migrate/agentic/select.d.ts +14 -0
  80. package/dist/src/command-line/migrate/agentic/select.js +150 -0
  81. package/dist/src/command-line/migrate/agentic/types.d.ts +102 -0
  82. package/dist/src/command-line/migrate/agentic/types.js +2 -0
  83. package/dist/src/command-line/migrate/command-object.d.ts +1 -0
  84. package/dist/src/command-line/migrate/command-object.js +32 -7
  85. package/dist/src/command-line/migrate/migrate-commits.d.ts +50 -0
  86. package/dist/src/command-line/migrate/migrate-commits.js +102 -0
  87. package/dist/src/command-line/migrate/migrate-output.d.ts +180 -0
  88. package/dist/src/command-line/migrate/migrate-output.js +258 -0
  89. package/dist/src/command-line/migrate/migrate.d.ts +122 -12
  90. package/dist/src/command-line/migrate/migrate.js +1036 -217
  91. package/dist/src/command-line/migrate/migration-shape.d.ts +8 -0
  92. package/dist/src/command-line/migrate/migration-shape.js +13 -0
  93. package/dist/src/command-line/migrate/multi-major.d.ts +30 -0
  94. package/dist/src/command-line/migrate/multi-major.js +185 -0
  95. package/dist/src/command-line/migrate/prompt-files.d.ts +31 -0
  96. package/dist/src/command-line/migrate/prompt-files.js +141 -0
  97. package/dist/src/command-line/migrate/run-migration-process.js +28 -6
  98. package/dist/src/command-line/migrate/safe-prompt.d.ts +28 -0
  99. package/dist/src/command-line/migrate/safe-prompt.js +49 -0
  100. package/dist/src/command-line/migrate/update-filters.d.ts +11 -0
  101. package/dist/src/command-line/migrate/update-filters.js +44 -0
  102. package/dist/src/command-line/migrate/version-utils.d.ts +6 -0
  103. package/dist/src/command-line/migrate/version-utils.js +59 -0
  104. package/dist/src/command-line/nx-commands.js +9 -0
  105. package/dist/src/command-line/release/config/config.d.ts +3 -6
  106. package/dist/src/command-line/release/config/config.js +77 -45
  107. package/dist/src/command-line/release/config/use-legacy-versioning.d.ts +2 -0
  108. package/dist/src/command-line/release/config/use-legacy-versioning.js +8 -0
  109. package/dist/src/command-line/release/utils/release-graph.js +2 -3
  110. package/dist/src/command-line/release/utils/repository-git-tags.js +1 -1
  111. package/dist/src/command-line/release/utils/resolve-changelog-renderer.js +7 -19
  112. package/dist/src/command-line/release/version/resolve-current-version.js +1 -1
  113. package/dist/src/command-line/release/version/version-actions.js +3 -7
  114. package/dist/src/command-line/report/report.js +2 -2
  115. package/dist/src/command-line/run/completion.d.ts +1 -0
  116. package/dist/src/command-line/run/completion.js +7 -0
  117. package/dist/src/command-line/run-many/completion.d.ts +1 -0
  118. package/dist/src/command-line/run-many/completion.js +13 -0
  119. package/dist/src/command-line/show/completion.d.ts +1 -0
  120. package/dist/src/command-line/show/completion.js +27 -0
  121. package/dist/src/command-line/show/show-target/info.d.ts +1 -0
  122. package/dist/src/command-line/show/show-target/info.js +100 -19
  123. package/dist/src/command-line/watch/command-object.js +24 -4
  124. package/dist/src/command-line/watch/completion.d.ts +1 -0
  125. package/dist/src/command-line/watch/completion.js +10 -0
  126. package/dist/src/command-line/watch/watch.d.ts +7 -0
  127. package/dist/src/command-line/watch/watch.js +1 -1
  128. package/dist/src/config/misc-interfaces.d.ts +25 -2
  129. package/dist/src/config/nx-json.d.ts +43 -56
  130. package/dist/src/config/schema-utils.d.ts +21 -0
  131. package/dist/src/config/schema-utils.js +92 -18
  132. package/dist/src/config/task-graph.d.ts +4 -107
  133. package/dist/src/core/graph/main.js +1 -1
  134. package/dist/src/core/graph/styles.css +2 -3
  135. package/dist/src/core/graph/styles.js +1 -1
  136. package/dist/src/daemon/client/client.d.ts +1 -1
  137. package/dist/src/daemon/server/file-watching/file-watcher-sockets.d.ts +1 -1
  138. package/dist/src/daemon/server/file-watching/file-watcher-sockets.js +1 -1
  139. package/dist/src/daemon/server/file-watching/route-workspace-changes.d.ts +9 -0
  140. package/dist/src/daemon/server/file-watching/route-workspace-changes.js +76 -0
  141. package/dist/src/daemon/server/project-graph-incremental-recomputation.js +45 -11
  142. package/dist/src/daemon/server/server.js +4 -43
  143. package/dist/src/daemon/server/start.d.ts +1 -1
  144. package/dist/src/daemon/server/start.js +2 -0
  145. package/dist/src/devkit-exports.d.ts +2 -2
  146. package/dist/src/devkit-internals.d.ts +5 -1
  147. package/dist/src/devkit-internals.js +17 -1
  148. package/dist/src/executors/run-commands/running-tasks.d.ts +7 -0
  149. package/dist/src/executors/run-commands/running-tasks.js +178 -105
  150. package/dist/src/executors/run-script/run-script.impl.js +3 -10
  151. package/dist/src/executors/utils/convert-nx-executor.js +1 -1
  152. package/dist/src/hasher/hash-plan-inspector.d.ts +1 -1
  153. package/dist/src/hasher/task-hasher.js +6 -4
  154. package/dist/src/index.d.ts +1 -1
  155. package/dist/src/index.js +0 -3
  156. package/dist/src/migrations/update-16-2-0/remove-run-commands-output-path.js +6 -2
  157. package/dist/src/migrations/update-17-0-0/move-cache-directory.md +31 -0
  158. package/dist/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.js +20 -4
  159. package/dist/src/migrations/update-20-0-0/move-use-daemon-process.md +27 -0
  160. package/dist/src/migrations/update-20-0-1/use-legacy-cache.md +24 -0
  161. package/dist/src/migrations/update-21-0-0/release-changelog-config-changes.md +49 -0
  162. package/dist/src/migrations/update-21-0-0/release-version-config-changes.md +54 -0
  163. package/dist/src/migrations/update-21-0-0/remove-custom-tasks-runner.md +28 -0
  164. package/dist/src/migrations/update-21-0-0/remove-legacy-cache.md +22 -0
  165. package/dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore.md +11 -0
  166. package/dist/src/migrations/update-23-0-0/add-migrate-runs-to-git-ignore.d.ts +2 -0
  167. package/dist/src/migrations/update-23-0-0/add-migrate-runs-to-git-ignore.js +16 -0
  168. package/dist/src/migrations/update-23-0-0/consolidate-release-tag-config.d.ts +9 -0
  169. package/dist/src/migrations/update-23-0-0/consolidate-release-tag-config.js +18 -0
  170. package/dist/src/migrations/update-23-0-0/convert-target-defaults-to-array.d.ts +35 -0
  171. package/dist/src/migrations/update-23-0-0/convert-target-defaults-to-array.js +139 -0
  172. package/dist/src/migrations/update-23-0-0/convert-target-defaults-to-array.md +66 -0
  173. package/dist/src/native/index.d.ts +79 -2
  174. package/dist/src/native/native-bindings.js +3 -0
  175. package/dist/src/native/nx.wasm32-wasi.debug.wasm +0 -0
  176. package/dist/src/native/nx.wasm32-wasi.wasm +0 -0
  177. package/dist/src/plugins/js/lock-file/npm-parser.js +37 -19
  178. package/dist/src/plugins/js/lock-file/pnpm-parser.js +51 -4
  179. package/dist/src/plugins/js/lock-file/project-graph-pruning.js +12 -4
  180. package/dist/src/plugins/js/utils/packages.js +1 -1
  181. package/dist/src/plugins/js/utils/register.d.ts +103 -14
  182. package/dist/src/plugins/js/utils/register.js +434 -39
  183. package/dist/src/plugins/js/utils/typescript.d.ts +7 -0
  184. package/dist/src/plugins/js/utils/typescript.js +39 -0
  185. package/dist/src/plugins/package-json/create-nodes.d.ts +3 -2
  186. package/dist/src/plugins/package-json/create-nodes.js +7 -5
  187. package/dist/src/project-graph/affected/locators/project-glob-changes.js +2 -1
  188. package/dist/src/project-graph/build-project-graph.d.ts +5 -0
  189. package/dist/src/project-graph/build-project-graph.js +6 -2
  190. package/dist/src/project-graph/file-map-utils.d.ts +5 -0
  191. package/dist/src/project-graph/file-map-utils.js +10 -1
  192. package/dist/src/project-graph/plugins/get-plugins.d.ts +7 -2
  193. package/dist/src/project-graph/plugins/get-plugins.js +8 -5
  194. package/dist/src/project-graph/plugins/isolation/plugin-worker.d.ts +1 -0
  195. package/dist/src/project-graph/plugins/isolation/plugin-worker.js +2 -0
  196. package/dist/src/project-graph/plugins/resolve-plugin.d.ts +7 -4
  197. package/dist/src/project-graph/plugins/resolve-plugin.js +152 -33
  198. package/dist/src/project-graph/plugins/tasks-execution-hooks.js +4 -2
  199. package/dist/src/project-graph/plugins/transpiler.d.ts +12 -0
  200. package/dist/src/project-graph/plugins/transpiler.js +37 -0
  201. package/dist/src/project-graph/plugins/utils.js +13 -7
  202. package/dist/src/project-graph/project-graph.js +1 -1
  203. package/dist/src/project-graph/utils/project-configuration/target-defaults.d.ts +95 -4
  204. package/dist/src/project-graph/utils/project-configuration/target-defaults.js +515 -68
  205. package/dist/src/project-graph/utils/project-configuration-utils.d.ts +13 -5
  206. package/dist/src/project-graph/utils/project-configuration-utils.js +14 -6
  207. package/dist/src/project-graph/utils/retrieve-workspace-files.js +1 -1
  208. package/dist/src/tasks-runner/create-task-graph.d.ts +4 -4
  209. package/dist/src/tasks-runner/create-task-graph.js +1 -1
  210. package/dist/src/tasks-runner/default-tasks-runner.d.ts +0 -2
  211. package/dist/src/tasks-runner/forked-process-task-runner.d.ts +1 -1
  212. package/dist/src/tasks-runner/forked-process-task-runner.js +11 -6
  213. package/dist/src/tasks-runner/init-tasks-runner.d.ts +0 -15
  214. package/dist/src/tasks-runner/init-tasks-runner.js +0 -63
  215. package/dist/src/tasks-runner/legacy-depends-on-warning.d.ts +18 -0
  216. package/dist/src/tasks-runner/legacy-depends-on-warning.js +109 -0
  217. package/dist/src/tasks-runner/life-cycle.d.ts +7 -8
  218. package/dist/src/tasks-runner/life-cycles/invoke-runner-terminal-output-life-cycle.js +6 -6
  219. package/dist/src/tasks-runner/life-cycles/task-history-life-cycle-old.js +13 -2
  220. package/dist/src/tasks-runner/life-cycles/task-history-life-cycle.js +16 -5
  221. package/dist/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +11 -2
  222. package/dist/src/tasks-runner/pseudo-terminal.d.ts +1 -1
  223. package/dist/src/tasks-runner/pseudo-terminal.js +22 -10
  224. package/dist/src/tasks-runner/run-command.js +8 -11
  225. package/dist/src/tasks-runner/running-tasks/batch-process.d.ts +1 -1
  226. package/dist/src/tasks-runner/running-tasks/batch-process.js +3 -5
  227. package/dist/src/tasks-runner/running-tasks/node-child-process.d.ts +2 -2
  228. package/dist/src/tasks-runner/running-tasks/node-child-process.js +5 -7
  229. package/dist/src/tasks-runner/task-env.d.ts +1 -1
  230. package/dist/src/tasks-runner/task-env.js +6 -1
  231. package/dist/src/tasks-runner/task-orchestrator.d.ts +11 -1
  232. package/dist/src/tasks-runner/task-orchestrator.js +112 -38
  233. package/dist/src/tasks-runner/tasks-schedule.js +3 -3
  234. package/dist/src/tasks-runner/utils.d.ts +7 -8
  235. package/dist/src/tasks-runner/utils.js +23 -27
  236. package/dist/src/utils/child-process.js +2 -2
  237. package/dist/src/utils/compile-cache.d.ts +24 -0
  238. package/dist/src/utils/compile-cache.js +49 -0
  239. package/dist/src/utils/enable-compile-cache.d.ts +1 -0
  240. package/dist/src/utils/enable-compile-cache.js +7 -0
  241. package/dist/src/utils/fileutils.d.ts +0 -8
  242. package/dist/src/utils/fileutils.js +0 -40
  243. package/dist/src/utils/git-utils.d.ts +15 -0
  244. package/dist/src/utils/git-utils.js +138 -0
  245. package/dist/src/utils/handle-import.d.ts +4 -1
  246. package/dist/src/utils/handle-import.js +56 -2
  247. package/dist/src/utils/has-nx-js-plugin.d.ts +9 -0
  248. package/dist/src/utils/has-nx-js-plugin.js +24 -0
  249. package/dist/src/utils/installed-nx-version.d.ts +14 -4
  250. package/dist/src/utils/installed-nx-version.js +54 -7
  251. package/dist/src/utils/logger.d.ts +12 -1
  252. package/dist/src/utils/logger.js +57 -36
  253. package/dist/src/utils/nx-key.d.ts +0 -1
  254. package/dist/src/utils/nx-key.js +20 -23
  255. package/dist/src/utils/nx-package-group.d.ts +8 -0
  256. package/dist/src/utils/nx-package-group.js +15 -0
  257. package/dist/src/utils/output.d.ts +3 -2
  258. package/dist/src/utils/output.js +29 -28
  259. package/dist/src/utils/package-json.d.ts +14 -1
  260. package/dist/src/utils/package-json.js +20 -21
  261. package/dist/src/utils/perf-logging.js +3 -1
  262. package/dist/src/utils/plugin-cache-utils.d.ts +13 -4
  263. package/dist/src/utils/plugin-cache-utils.js +23 -13
  264. package/dist/src/utils/plugins/local-plugins.d.ts +18 -0
  265. package/dist/src/utils/plugins/local-plugins.js +30 -0
  266. package/dist/src/utils/tar.d.ts +8 -0
  267. package/dist/src/utils/tar.js +44 -0
  268. package/migrations.json +16 -0
  269. package/package.json +28 -28
  270. package/schemas/nx-schema.json +114 -80
  271. package/dist/src/plugins/js/project-graph/build-dependencies/strip-source-code.d.ts +0 -7
  272. package/dist/src/plugins/js/project-graph/build-dependencies/strip-source-code.js +0 -155
  273. package/dist/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.d.ts +0 -16
  274. package/dist/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.js +0 -121
@@ -1,11 +1,41 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findLocalPluginsWithGenerators = findLocalPluginsWithGenerators;
3
4
  exports.getLocalWorkspacePlugins = getLocalWorkspacePlugins;
4
5
  const fs_1 = require("fs");
5
6
  const path_1 = require("path");
6
7
  const fileutils_1 = require("../fileutils");
7
8
  const workspace_root_1 = require("../workspace-root");
8
9
  const plugin_capabilities_1 = require("./plugin-capabilities");
10
+ /**
11
+ * Sync, lightweight scan: for each given project root, read its package.json
12
+ * and yield it as a plugin if it declares a `generators`/`schematics`
13
+ * collection. Used by tab completion which cannot afford the heavier
14
+ * {@link getLocalWorkspacePlugins} (that one loads each plugin's JS to
15
+ * walk its capabilities).
16
+ *
17
+ * `projectRoots` are paths relative to `workspaceRoot`.
18
+ */
19
+ function findLocalPluginsWithGenerators(projectRoots) {
20
+ const plugins = new Map();
21
+ for (const root of projectRoots) {
22
+ if (!root)
23
+ continue;
24
+ const dir = (0, path_1.join)(workspace_root_1.workspaceRoot, root);
25
+ let pkg = null;
26
+ try {
27
+ pkg = (0, fileutils_1.readJsonFile)((0, path_1.join)(dir, 'package.json'));
28
+ }
29
+ catch {
30
+ continue;
31
+ }
32
+ const field = pkg?.generators ?? pkg?.schematics;
33
+ if (pkg?.name && typeof field === 'string') {
34
+ plugins.set(pkg.name, { dir, field });
35
+ }
36
+ }
37
+ return plugins;
38
+ }
9
39
  async function getLocalWorkspacePlugins(projectsConfiguration, nxJson) {
10
40
  const plugins = new Map();
11
41
  for (const project of Object.values(projectsConfiguration.projects)) {
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Extracts a file from a given tarball to the specified destination.
3
+ * @param tarballPath The path to the tarball from where the file should be extracted.
4
+ * @param file The path to the file inside the tarball.
5
+ * @param destinationFilePath The destination file path.
6
+ * @returns True if the file was extracted successfully, false otherwise.
7
+ */
8
+ export declare function extractFileFromTarball(tarballPath: string, file: string, destinationFilePath: string): Promise<string>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.extractFileFromTarball = extractFileFromTarball;
4
+ const tslib_1 = require("tslib");
5
+ const node_fs_1 = require("node:fs");
6
+ const path_1 = require("path");
7
+ const tar = tslib_1.__importStar(require("tar-stream"));
8
+ const zlib_1 = require("zlib");
9
+ /**
10
+ * Extracts a file from a given tarball to the specified destination.
11
+ * @param tarballPath The path to the tarball from where the file should be extracted.
12
+ * @param file The path to the file inside the tarball.
13
+ * @param destinationFilePath The destination file path.
14
+ * @returns True if the file was extracted successfully, false otherwise.
15
+ */
16
+ async function extractFileFromTarball(tarballPath, file, destinationFilePath) {
17
+ return new Promise((resolve, reject) => {
18
+ (0, node_fs_1.mkdirSync)((0, path_1.dirname)(destinationFilePath), { recursive: true });
19
+ var tarExtractStream = tar.extract();
20
+ const destinationFileStream = (0, node_fs_1.createWriteStream)(destinationFilePath);
21
+ let isFileExtracted = false;
22
+ tarExtractStream.on('entry', function (header, stream, next) {
23
+ if (header.name === file) {
24
+ stream.pipe(destinationFileStream);
25
+ stream.on('end', () => {
26
+ isFileExtracted = true;
27
+ });
28
+ destinationFileStream.on('close', () => {
29
+ resolve(destinationFilePath);
30
+ });
31
+ }
32
+ stream.on('end', function () {
33
+ next();
34
+ });
35
+ stream.resume();
36
+ });
37
+ tarExtractStream.on('finish', function () {
38
+ if (!isFileExtracted) {
39
+ reject();
40
+ }
41
+ });
42
+ (0, node_fs_1.createReadStream)(tarballPath).pipe((0, zlib_1.createGunzip)()).pipe(tarExtractStream);
43
+ });
44
+ }
package/migrations.json CHANGED
@@ -160,6 +160,22 @@
160
160
  "version": "22.7.0-beta.0",
161
161
  "description": "Adds .nx/self-healing to .gitignore",
162
162
  "implementation": "./dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore"
163
+ },
164
+ "23-0-0-consolidate-release-tag-config": {
165
+ "version": "23.0.0-beta.16",
166
+ "description": "Consolidates any remaining legacy releaseTag* flat properties into the nested releaseTag object. The flat properties were removed in Nx 23.",
167
+ "implementation": "./dist/src/migrations/update-23-0-0/consolidate-release-tag-config"
168
+ },
169
+ "23-0-0-convert-target-defaults-to-array": {
170
+ "cli": "nx",
171
+ "version": "23.0.0-beta.13",
172
+ "description": "Converts nx.json `targetDefaults` from the legacy record shape to the new filtered array shape.",
173
+ "implementation": "./dist/src/migrations/update-23-0-0/convert-target-defaults-to-array"
174
+ },
175
+ "23-0-0-add-migrate-runs-to-git-ignore": {
176
+ "version": "23.0.0-beta.18",
177
+ "description": "Adds .nx/migrate-runs to .gitignore",
178
+ "implementation": "./dist/src/migrations/update-23-0-0/add-migrate-runs-to-git-ignore"
163
179
  }
164
180
  }
165
181
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "23.0.0-beta.2",
3
+ "version": "23.0.0-beta.21",
4
4
  "private": false,
5
5
  "type": "commonjs",
6
6
  "description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
@@ -60,11 +60,11 @@
60
60
  "ansi-styles": "4.3.0",
61
61
  "argparse": "2.0.1",
62
62
  "asynckit": "0.4.0",
63
- "axios": "1.15.0",
63
+ "axios": "1.16.0",
64
64
  "balanced-match": "4.0.3",
65
65
  "base64-js": "1.5.1",
66
66
  "bl": "4.1.0",
67
- "brace-expansion": "5.0.2",
67
+ "brace-expansion": "5.0.6",
68
68
  "buffer": "5.7.1",
69
69
  "call-bind-apply-helpers": "1.0.2",
70
70
  "chalk": "4.1.2",
@@ -93,7 +93,7 @@
93
93
  "escape-string-regexp": "1.0.5",
94
94
  "figures": "3.2.0",
95
95
  "flat": "5.0.2",
96
- "follow-redirects": "1.15.11",
96
+ "follow-redirects": "1.16.0",
97
97
  "form-data": "4.0.5",
98
98
  "fs-constants": "1.0.0",
99
99
  "function-bind": "1.1.2",
@@ -113,21 +113,22 @@
113
113
  "is-interactive": "1.0.0",
114
114
  "is-unicode-supported": "0.1.0",
115
115
  "is-wsl": "2.2.0",
116
+ "isexe": "2.0.0",
116
117
  "json5": "2.2.3",
117
- "jsonc-parser": "3.2.0",
118
+ "jsonc-parser": "3.3.1",
118
119
  "lines-and-columns": "2.0.3",
119
120
  "log-symbols": "4.1.0",
120
121
  "math-intrinsics": "1.1.0",
121
122
  "mime-db": "1.52.0",
122
123
  "mime-types": "2.1.35",
123
124
  "mimic-fn": "2.1.0",
124
- "minimatch": "10.2.4",
125
+ "minimatch": "10.2.5",
125
126
  "minimist": "1.2.8",
126
127
  "npm-run-path": "4.0.1",
127
128
  "once": "1.4.0",
128
129
  "onetime": "5.1.2",
129
130
  "open": "8.4.2",
130
- "ora": "5.3.0",
131
+ "ora": "5.4.1",
131
132
  "path-key": "3.1.1",
132
133
  "picocolors": "1.1.1",
133
134
  "proxy-from-env": "2.1.0",
@@ -145,16 +146,16 @@
145
146
  "strip-bom": "3.0.0",
146
147
  "supports-color": "7.2.0",
147
148
  "tar-stream": "2.2.0",
148
- "tmp": "0.2.4",
149
- "tree-kill": "1.2.2",
149
+ "tmp": "0.2.6",
150
150
  "tsconfig-paths": "4.2.0",
151
151
  "tslib": "2.8.1",
152
152
  "util-deprecate": "1.0.2",
153
153
  "wcwidth": "1.0.1",
154
+ "which": "3.0.1",
154
155
  "wrap-ansi": "7.0.0",
155
156
  "wrappy": "1.0.2",
156
157
  "y18n": "5.0.8",
157
- "yaml": "2.8.0",
158
+ "yaml": "2.9.0",
158
159
  "yargs": "17.7.2",
159
160
  "yargs-parser": "21.1.1"
160
161
  },
@@ -171,16 +172,16 @@
171
172
  }
172
173
  },
173
174
  "optionalDependencies": {
174
- "@nx/nx-darwin-arm64": "23.0.0-beta.2",
175
- "@nx/nx-darwin-x64": "23.0.0-beta.2",
176
- "@nx/nx-freebsd-x64": "23.0.0-beta.2",
177
- "@nx/nx-linux-arm-gnueabihf": "23.0.0-beta.2",
178
- "@nx/nx-linux-arm64-gnu": "23.0.0-beta.2",
179
- "@nx/nx-linux-arm64-musl": "23.0.0-beta.2",
180
- "@nx/nx-linux-x64-gnu": "23.0.0-beta.2",
181
- "@nx/nx-linux-x64-musl": "23.0.0-beta.2",
182
- "@nx/nx-win32-arm64-msvc": "23.0.0-beta.2",
183
- "@nx/nx-win32-x64-msvc": "23.0.0-beta.2"
175
+ "@nx/nx-darwin-arm64": "23.0.0-beta.21",
176
+ "@nx/nx-darwin-x64": "23.0.0-beta.21",
177
+ "@nx/nx-freebsd-x64": "23.0.0-beta.21",
178
+ "@nx/nx-linux-arm-gnueabihf": "23.0.0-beta.21",
179
+ "@nx/nx-linux-arm64-gnu": "23.0.0-beta.21",
180
+ "@nx/nx-linux-arm64-musl": "23.0.0-beta.21",
181
+ "@nx/nx-linux-x64-gnu": "23.0.0-beta.21",
182
+ "@nx/nx-linux-x64-musl": "23.0.0-beta.21",
183
+ "@nx/nx-win32-arm64-msvc": "23.0.0-beta.21",
184
+ "@nx/nx-win32-x64-msvc": "23.0.0-beta.21"
184
185
  },
185
186
  "nx-migrations": {
186
187
  "migrations": "./migrations.json",
@@ -278,9 +279,6 @@
278
279
  "src/native": [
279
280
  "dist/src/native/index.d.ts"
280
281
  ],
281
- "src": [
282
- "dist/src/index.d.ts"
283
- ],
284
282
  "src/analytics": [
285
283
  "dist/src/analytics/index.d.ts"
286
284
  ],
@@ -317,6 +315,9 @@
317
315
  "src/utils/catalog": [
318
316
  "dist/src/utils/catalog/index.d.ts"
319
317
  ],
318
+ "src/internal-testing-utils/*": [
319
+ "src/internal-testing-utils/*.ts"
320
+ ],
320
321
  "src/*.js": [
321
322
  "dist/src/*.d.ts"
322
323
  ],
@@ -387,11 +388,6 @@
387
388
  "types": "./dist/plugins/*.d.ts",
388
389
  "default": "./dist/plugins/*.js"
389
390
  },
390
- "./src": {
391
- "@nx/nx-source": "./src/index.ts",
392
- "types": "./dist/src/index.d.ts",
393
- "default": "./dist/src/index.js"
394
- },
395
391
  "./src/analytics": {
396
392
  "@nx/nx-source": "./src/analytics/index.ts",
397
393
  "types": "./dist/src/analytics/index.d.ts",
@@ -485,6 +481,10 @@
485
481
  "@nx/nx-source": "./src/native/*.mjs",
486
482
  "default": "./dist/src/native/*.mjs"
487
483
  },
484
+ "./src/internal-testing-utils/*": {
485
+ "types": "./src/internal-testing-utils/*.ts",
486
+ "default": "./src/internal-testing-utils/*.ts"
487
+ },
488
488
  "./src/*.js": {
489
489
  "@nx/nx-source": "./src/*.ts",
490
490
  "types": "./dist/src/*.d.ts",
@@ -43,11 +43,24 @@
43
43
  }
44
44
  },
45
45
  "targetDefaults": {
46
- "type": "object",
47
- "description": "Target defaults",
48
- "additionalProperties": {
49
- "$ref": "#/definitions/targetDefaultsConfig"
50
- }
46
+ "description": "Target defaults. The recommended form is an array of entries; each entry matches by `target` (name or glob), `executor`, or both, and optionally narrows by `projects` and `plugin`. The legacy record/object form (keyed by target name or executor) is still read but deprecated; run `nx repair` to convert it.",
47
+ "oneOf": [
48
+ {
49
+ "type": "array",
50
+ "items": {
51
+ "$ref": "#/definitions/targetDefaultEntry"
52
+ }
53
+ },
54
+ {
55
+ "type": "object",
56
+ "deprecated": true,
57
+ "deprecationMessage": "The record-shape `targetDefaults` is deprecated and will be removed in a future major. Run `nx repair` to convert this nx.json to the new array-shape `targetDefaults`, which also unlocks the `projects` and `plugin` filters.",
58
+ "description": "Deprecated: the record-shape `targetDefaults` is still read for backwards compatibility, but new workspaces should use the array form. Run `nx repair` to convert.",
59
+ "additionalProperties": {
60
+ "$ref": "#/definitions/targetDefaultsConfig"
61
+ }
62
+ }
63
+ ]
51
64
  },
52
65
  "workspaceLayout": {
53
66
  "type": "object",
@@ -225,7 +238,7 @@
225
238
  }
226
239
  }
227
240
  ],
228
- "description": "By default, we will try and resolve the latest match for the releaseTagPattern from the current branch, falling back to all branches if no match is found on the current branch. Setting this to true will cause us to ALWAYS check all branches for the latest match. Setting it to false will cause us to ONLY check the current branch for the latest match. Setting it to an array of strings will cause us to check all branches WHEN the current branch is one of the strings in the array. Glob patterns are supported."
241
+ "description": "By default, we will try and resolve the latest match for the releaseTag.pattern from the current branch, falling back to all branches if no match is found on the current branch. Setting this to true will cause us to ALWAYS check all branches for the latest match. Setting it to false will cause us to ONLY check the current branch for the latest match. Setting it to an array of strings will cause us to check all branches WHEN the current branch is one of the strings in the array. Glob patterns are supported."
229
242
  },
230
243
  "requireSemver": {
231
244
  "type": "boolean",
@@ -237,42 +250,11 @@
237
250
  "description": "Controls how docker versions are used relative to semver versions when creating git tags and changelog entries. Set to true to use only the docker version, false to use only the semver version, or 'both' to create tags and changelog entries for both docker and semver versions. By default, this is set to true when docker configuration is present, and false otherwise."
238
251
  },
239
252
  "strictPreid": {
240
- "$ref": "#/definitions/NxReleaseReleaseTagPatternStrictPreidConfiguration"
253
+ "$ref": "#/definitions/NxReleaseStrictPreidConfiguration"
241
254
  }
242
255
  },
243
256
  "additionalProperties": false
244
257
  },
245
- "releaseTagPattern": {
246
- "type": "string",
247
- "description": "DEPRECATED: Use releaseTag.pattern instead. Will be removed in Nx 23."
248
- },
249
- "releaseTagPatternCheckAllBranchesWhen": {
250
- "oneOf": [
251
- {
252
- "type": "boolean"
253
- },
254
- {
255
- "type": "array",
256
- "items": {
257
- "type": "string"
258
- }
259
- }
260
- ],
261
- "description": "DEPRECATED: Use releaseTag.checkAllBranchesWhen instead. Will be removed in Nx 23."
262
- },
263
- "releaseTagPatternRequireSemver": {
264
- "type": "boolean",
265
- "description": "DEPRECATED: Use releaseTag.requireSemver instead. Will be removed in Nx 23."
266
- },
267
- "releaseTagPatternPreferDockerVersion": {
268
- "type": ["boolean", "string"],
269
- "enum": [true, false, "both"],
270
- "description": "DEPRECATED: Use releaseTag.preferDockerVersion instead. Will be removed in Nx 23."
271
- },
272
- "releaseTagPatternStrictPreid": {
273
- "$ref": "#/definitions/NxReleaseReleaseTagPatternStrictPreidConfiguration",
274
- "description": "DEPRECATED: Use releaseTag.strictPreid instead. Will be removed in Nx 23."
275
- },
276
258
  "versionPlans": {
277
259
  "oneOf": [
278
260
  {
@@ -362,7 +344,7 @@
362
344
  "properties": {
363
345
  "pattern": {
364
346
  "type": "string",
365
- "description": "Optionally override the git/release tag pattern to use. This field is the source of truth for changelog generation and release tagging, as well as for conventional commits parsing. It supports interpolating the version as {version} and (if releasing independently or forcing project level version control system releases) the project name as {projectName} within the string. The default releaseTagPattern for fixed/unified releases is: \"v{version}\". The default releaseTagPattern for independent releases at the project level is: \"{projectName}@{version}\""
347
+ "description": "Optionally override the git/release tag pattern to use. This field is the source of truth for changelog generation and release tagging, as well as for conventional commits parsing. It supports interpolating the version as {version} and (if releasing independently or forcing project level version control system releases) the project name as {projectName} within the string. The default releaseTag.pattern for fixed/unified releases is: \"v{version}\". The default releaseTag.pattern for independent releases at the project level is: \"{projectName}@{version}\""
366
348
  },
367
349
  "checkAllBranchesWhen": {
368
350
  "oneOf": [
@@ -376,7 +358,7 @@
376
358
  }
377
359
  }
378
360
  ],
379
- "description": "By default, we will try and resolve the latest match for the releaseTagPattern from the current branch, falling back to all branches if no match is found on the current branch. Setting this to true will cause us to ALWAYS check all branches for the latest match. Setting it to false will cause us to ONLY check the current branch for the latest match. Setting it to an array of strings will cause us to check all branches WHEN the current branch is one of the strings in the array. Glob patterns are supported."
361
+ "description": "By default, we will try and resolve the latest match for the releaseTag.pattern from the current branch, falling back to all branches if no match is found on the current branch. Setting this to true will cause us to ALWAYS check all branches for the latest match. Setting it to false will cause us to ONLY check the current branch for the latest match. Setting it to an array of strings will cause us to check all branches WHEN the current branch is one of the strings in the array. Glob patterns are supported."
380
362
  },
381
363
  "requireSemver": {
382
364
  "type": "boolean",
@@ -388,42 +370,11 @@
388
370
  "description": "Controls how docker versions are used relative to semver versions when creating git tags and changelog entries. Set to true to use only the docker version, false to use only the semver version, or 'both' to create tags and changelog entries for both docker and semver versions. By default, this is set to true when docker configuration is present, and false otherwise."
389
371
  },
390
372
  "strictPreid": {
391
- "$ref": "#/definitions/NxReleaseReleaseTagPatternStrictPreidConfiguration"
373
+ "$ref": "#/definitions/NxReleaseStrictPreidConfiguration"
392
374
  }
393
375
  },
394
376
  "additionalProperties": false
395
377
  },
396
- "releaseTagPattern": {
397
- "type": "string",
398
- "description": "DEPRECATED: Use releaseTag.pattern instead. Will be removed in Nx 23."
399
- },
400
- "releaseTagPatternCheckAllBranchesWhen": {
401
- "oneOf": [
402
- {
403
- "type": "boolean"
404
- },
405
- {
406
- "type": "array",
407
- "items": {
408
- "type": "string"
409
- }
410
- }
411
- ],
412
- "description": "DEPRECATED: Use releaseTag.checkAllBranchesWhen instead. Will be removed in Nx 23."
413
- },
414
- "releaseTagPatternRequireSemver": {
415
- "type": "boolean",
416
- "description": "DEPRECATED: Use releaseTag.requireSemver instead. Will be removed in Nx 23."
417
- },
418
- "releaseTagPatternPreferDockerVersion": {
419
- "type": ["boolean", "string"],
420
- "enum": [true, false, "both"],
421
- "description": "DEPRECATED: Use releaseTag.preferDockerVersion instead. Will be removed in Nx 23."
422
- },
423
- "releaseTagPatternStrictPreid": {
424
- "$ref": "#/definitions/NxReleaseReleaseTagPatternStrictPreidConfiguration",
425
- "description": "DEPRECATED: Use releaseTag.strictPreid instead. Will be removed in Nx 23."
426
- },
427
378
  "docker": {
428
379
  "oneOf": [
429
380
  {
@@ -866,6 +817,80 @@
866
817
  },
867
818
  "additionalProperties": false
868
819
  },
820
+ "targetDefaultEntry": {
821
+ "type": "object",
822
+ "description": "A single target defaults entry. At least one of `target`, `executor`, `projects`, or `plugin` must be set — an entry with neither a locator nor a filter would broadcast to every target in the workspace and is ignored at runtime.",
823
+ "anyOf": [
824
+ { "required": ["target"] },
825
+ { "required": ["executor"] },
826
+ { "required": ["projects"] },
827
+ { "required": ["plugin"] }
828
+ ],
829
+ "properties": {
830
+ "target": {
831
+ "type": "string",
832
+ "description": "The target name or glob pattern (e.g. 'build', 'e2e-ci--*') this default applies to. When omitted, the entry matches by `executor` alone."
833
+ },
834
+ "projects": {
835
+ "oneOf": [
836
+ {
837
+ "type": "string",
838
+ "description": "A project name, glob, or tag (e.g. 'tag:dotnet')."
839
+ },
840
+ {
841
+ "type": "array",
842
+ "items": { "type": "string" },
843
+ "description": "A list of project names, globs, or tags (e.g. ['apps/*', '!apps/legacy'])."
844
+ }
845
+ ],
846
+ "description": "Restrict the default to matching projects. Uses findMatchingProjects syntax."
847
+ },
848
+ "plugin": {
849
+ "type": "string",
850
+ "description": "Restrict the default to targets originated by a specific plugin (e.g. '@nx/vite')."
851
+ },
852
+ "executor": {
853
+ "$ref": "#/definitions/targetDefaultsConfig/properties/executor"
854
+ },
855
+ "command": {
856
+ "$ref": "#/definitions/targetDefaultsConfig/properties/command"
857
+ },
858
+ "metadata": {
859
+ "$ref": "#/definitions/targetDefaultsConfig/properties/metadata"
860
+ },
861
+ "options": {
862
+ "$ref": "#/definitions/targetDefaultsConfig/properties/options"
863
+ },
864
+ "outputs": {
865
+ "$ref": "#/definitions/targetDefaultsConfig/properties/outputs"
866
+ },
867
+ "defaultConfiguration": {
868
+ "$ref": "#/definitions/targetDefaultsConfig/properties/defaultConfiguration"
869
+ },
870
+ "configurations": {
871
+ "$ref": "#/definitions/targetDefaultsConfig/properties/configurations"
872
+ },
873
+ "continuous": {
874
+ "$ref": "#/definitions/targetDefaultsConfig/properties/continuous"
875
+ },
876
+ "parallelism": {
877
+ "$ref": "#/definitions/targetDefaultsConfig/properties/parallelism"
878
+ },
879
+ "inputs": {
880
+ "$ref": "#/definitions/inputs"
881
+ },
882
+ "dependsOn": {
883
+ "$ref": "#/definitions/targetDefaultsConfig/properties/dependsOn"
884
+ },
885
+ "cache": {
886
+ "$ref": "#/definitions/targetDefaultsConfig/properties/cache"
887
+ },
888
+ "syncGenerators": {
889
+ "$ref": "#/definitions/targetDefaultsConfig/properties/syncGenerators"
890
+ }
891
+ },
892
+ "additionalProperties": false
893
+ },
869
894
  "targetDefaultsConfig": {
870
895
  "type": "object",
871
896
  "description": "Target defaults",
@@ -874,6 +899,15 @@
874
899
  "description": "The function that Nx will invoke when you run this target",
875
900
  "type": "string"
876
901
  },
902
+ "command": {
903
+ "description": "Shorthand for `nx:run-commands` — the shell command to run.",
904
+ "type": "string"
905
+ },
906
+ "metadata": {
907
+ "description": "Free-form metadata about the target (description, technologies, help text, etc.).",
908
+ "type": "object",
909
+ "additionalProperties": true
910
+ },
877
911
  "options": {
878
912
  "type": "object"
879
913
  },
@@ -1172,8 +1206,8 @@
1172
1206
  },
1173
1207
  "adjustSemverBumpsForZeroMajorVersion": {
1174
1208
  "type": "boolean",
1175
- "description": "Whether to strictly follow SemVer V2 spec for 0.x versions where breaking changes bump the minor version (instead of major), and new features bump the patch version (instead of minor). When enabled: 'major' bumps become 'minor' bumps for 0.x versions, 'minor' bumps become 'patch' bumps for 0.x versions. Versions 1.0.0 and above are unaffected. This is false by default for backward compatibility.",
1176
- "default": false
1209
+ "description": "Whether to strictly follow SemVer V2 spec for 0.x versions where breaking changes bump the minor version (instead of major), and new features bump the patch version (instead of minor). When enabled: 'major' bumps become 'minor' bumps for 0.x versions, 'minor' bumps become 'patch' bumps for 0.x versions. Versions 1.0.0 and above are unaffected. This is true by default. Set to false to treat all bumps the same regardless of major version.",
1210
+ "default": true
1177
1211
  },
1178
1212
  "applyPreidToDependents": {
1179
1213
  "type": "boolean",
@@ -1285,8 +1319,8 @@
1285
1319
  },
1286
1320
  "preserveMatchingDependencyRanges": {
1287
1321
  "type": ["boolean", "array"],
1288
- "description": "Whether to preserve matching dependency ranges when updating them during versioning. This is false by default. (e.g. The new version will be '1.2.0' and the current version range in dependents is already '^1.0.0'. Therefore, the manifest file is not updated.)",
1289
- "default": false,
1322
+ "description": "Whether to preserve matching dependency ranges when updating them during versioning. This is true by default. (e.g. The new version will be '1.2.0' and the current version range in dependents is already '^1.0.0'. Therefore, the manifest file is not updated.)",
1323
+ "default": true,
1290
1324
  "items": {
1291
1325
  "type": "string",
1292
1326
  "enum": [
@@ -1299,8 +1333,8 @@
1299
1333
  },
1300
1334
  "adjustSemverBumpsForZeroMajorVersion": {
1301
1335
  "type": "boolean",
1302
- "description": "Whether to apply the common convention for 0.x versions where breaking changes bump the minor version (instead of major), and new features bump the patch version (instead of minor). When enabled: 'major' bumps become 'minor' bumps for 0.x versions, 'minor' bumps become 'patch' bumps for 0.x versions. Versions 1.0.0 and above are unaffected. This is false by default for backward compatibility.",
1303
- "default": false
1336
+ "description": "Whether to apply the common convention for 0.x versions where breaking changes bump the minor version (instead of major), and new features bump the patch version (instead of minor). When enabled: 'major' bumps become 'minor' bumps for 0.x versions, 'minor' bumps become 'patch' bumps for 0.x versions. Versions 1.0.0 and above are unaffected. This is true by default. Set to false to treat all bumps the same regardless of major version.",
1337
+ "default": true
1304
1338
  },
1305
1339
  "applyPreidToDependents": {
1306
1340
  "type": "boolean",
@@ -1398,9 +1432,9 @@
1398
1432
  }
1399
1433
  }
1400
1434
  },
1401
- "NxReleaseReleaseTagPatternStrictPreidConfiguration": {
1435
+ "NxReleaseStrictPreidConfiguration": {
1402
1436
  "type": "boolean",
1403
- "description": "When set to true and multiple tags match your configured \"releaseTagPattern\", the git tag matching logic will strictly prefer the tag which contain a semver preid which matches the one given to the nx release invocation.\n\nFor example, let's say your \"releaseTagPattern\" is \"{projectName}@{version}\" and you have the following tags for project \"my-lib\", which uses semver:\n- my-lib@1.2.4-beta.1\n- my-lib@1.2.4-alpha.1\n- my-lib@1.2.3\n\nIf \"releaseTagPatternStrictPreid\" is set to true and you run:\n- `nx release --preid beta`, the git tag \"my-lib@1.2.4-beta.1\" will be resolved.\n- `nx release --preid alpha`, the git tag \"my-lib@1.2.4-alpha.1\" will be resolved.\n- `nx release` (no preid), the git tag \"my-lib@1.2.3\" will be resolved.\n\nIf \"releaseTagPatternStrictPreid\" is set to false, the git tag \"my-lib@1.2.4-beta.1\" will always be resolved as the latest tag that matches the pattern, regardless of any preid which gets passed to nx release.\n\nNOTE: This feature was added in a minor version and is therefore set to false by default, but this may change in a future major version."
1437
+ "description": "When set to true and multiple tags match your configured \"releaseTag.pattern\", the git tag matching logic will strictly prefer the tag which contain a semver preid which matches the one given to the nx release invocation.\n\nFor example, let's say your \"releaseTag.pattern\" is \"{projectName}@{version}\" and you have the following tags for project \"my-lib\", which uses semver:\n- my-lib@1.2.4-beta.1\n- my-lib@1.2.4-alpha.1\n- my-lib@1.2.3\n\nIf \"releaseTag.strictPreid\" is set to true and you run:\n- `nx release --preid beta`, the git tag \"my-lib@1.2.4-beta.1\" will be resolved.\n- `nx release --preid alpha`, the git tag \"my-lib@1.2.4-alpha.1\" will be resolved.\n- `nx release` (no preid), the git tag \"my-lib@1.2.3\" will be resolved.\n\nIf \"releaseTag.strictPreid\" is set to false, the git tag \"my-lib@1.2.4-beta.1\" will always be resolved as the latest tag that matches the pattern, regardless of any preid which gets passed to nx release.\n\nThis is true by default. Set to false to always resolve the latest matching tag regardless of preid."
1404
1438
  },
1405
1439
  "ChangelogRenderOptions": {
1406
1440
  "type": "object",
@@ -1,7 +0,0 @@
1
- import type { Scanner } from 'typescript';
2
- /**
3
- * @deprecated This is deprecated and will be removed in Nx 20.
4
- * This was not intended to be exposed.
5
- * Please talk to us if you need this.
6
- */
7
- export declare function stripSourceCode(scanner: Scanner, contents: string): string;