nx 23.0.0-beta.21 → 23.0.0-beta.22

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 (48) hide show
  1. package/dist/src/adapter/compat.d.ts +1 -1
  2. package/dist/src/adapter/compat.js +1 -0
  3. package/dist/src/command-line/examples.js +4 -4
  4. package/dist/src/command-line/migrate/agentic/prompts/generic-validation.d.ts +5 -0
  5. package/dist/src/command-line/migrate/agentic/prompts/generic-validation.js +1 -0
  6. package/dist/src/command-line/migrate/agentic/prompts/hybrid-prompt-migration.d.ts +5 -0
  7. package/dist/src/command-line/migrate/agentic/prompts/hybrid-prompt-migration.js +1 -0
  8. package/dist/src/command-line/migrate/agentic/prompts/prompt-migration.d.ts +5 -0
  9. package/dist/src/command-line/migrate/agentic/prompts/prompt-migration.js +1 -0
  10. package/dist/src/command-line/migrate/agentic/prompts/shared-rendering.d.ts +1 -0
  11. package/dist/src/command-line/migrate/agentic/prompts/shared-rendering.js +15 -0
  12. package/dist/src/command-line/migrate/agentic/run-step.d.ts +7 -0
  13. package/dist/src/command-line/migrate/agentic/run-step.js +3 -1
  14. package/dist/src/command-line/migrate/agentic/select.js +120 -32
  15. package/dist/src/command-line/migrate/command-object.d.ts +42 -0
  16. package/dist/src/command-line/migrate/command-object.js +37 -7
  17. package/dist/src/command-line/migrate/migrate-config.d.ts +27 -0
  18. package/dist/src/command-line/migrate/migrate-config.js +103 -0
  19. package/dist/src/command-line/migrate/migrate.d.ts +37 -2
  20. package/dist/src/command-line/migrate/migrate.js +97 -8
  21. package/dist/src/command-line/release/changelog/version-plan-filtering.d.ts +3 -1
  22. package/dist/src/command-line/release/changelog/version-plan-filtering.js +7 -3
  23. package/dist/src/command-line/release/changelog.d.ts +7 -0
  24. package/dist/src/command-line/release/changelog.js +22 -9
  25. package/dist/src/command-line/release/release.js +65 -55
  26. package/dist/src/command-line/release/utils/git.d.ts +6 -0
  27. package/dist/src/command-line/release/utils/git.js +33 -0
  28. package/dist/src/command-line/release/version/derive-specifier-from-conventional-commits.js +3 -2
  29. package/dist/src/command-line/release/version.d.ts +3 -0
  30. package/dist/src/command-line/release/version.js +13 -3
  31. package/dist/src/config/misc-interfaces.d.ts +8 -0
  32. package/dist/src/config/nx-json.d.ts +49 -0
  33. package/dist/src/core/graph/main.js +1 -1
  34. package/dist/src/native/nx.wasm32-wasi.debug.wasm +0 -0
  35. package/dist/src/native/nx.wasm32-wasi.wasm +0 -0
  36. package/dist/src/plugins/js/lock-file/lock-file.d.ts +5 -0
  37. package/dist/src/plugins/js/lock-file/lock-file.js +34 -24
  38. package/dist/src/plugins/js/project-graph/affected/lock-file-changes.d.ts +2 -4
  39. package/dist/src/plugins/js/project-graph/affected/lock-file-changes.js +121 -43
  40. package/dist/src/project-graph/file-utils.d.ts +7 -0
  41. package/dist/src/project-graph/file-utils.js +78 -10
  42. package/dist/src/tasks-runner/init-tasks-runner.d.ts +2 -2
  43. package/dist/src/tasks-runner/init-tasks-runner.js +6 -6
  44. package/dist/src/tasks-runner/task-orchestrator.d.ts +2 -2
  45. package/dist/src/tasks-runner/task-orchestrator.js +6 -6
  46. package/migrations.json +18 -9
  47. package/package.json +11 -11
  48. package/schemas/nx-schema.json +41 -0
package/migrations.json CHANGED
@@ -41,7 +41,8 @@
41
41
  "cli": "nx",
42
42
  "version": "17.0.0-beta.1",
43
43
  "description": "Updates the default cache directory to .nx/cache",
44
- "implementation": "./dist/src/migrations/update-17-0-0/move-cache-directory"
44
+ "implementation": "./dist/src/migrations/update-17-0-0/move-cache-directory",
45
+ "documentation": "./dist/src/migrations/update-17-0-0/move-cache-directory.md"
45
46
  },
46
47
  "17.0.0-use-minimal-config-for-tasks-runner-options": {
47
48
  "cli": "nx",
@@ -93,33 +94,39 @@
93
94
  "move-use-daemon-process": {
94
95
  "version": "20.0.0-beta.7",
95
96
  "description": "Migration for v20.0.0-beta.7",
96
- "implementation": "./dist/src/migrations/update-20-0-0/move-use-daemon-process"
97
+ "implementation": "./dist/src/migrations/update-20-0-0/move-use-daemon-process",
98
+ "documentation": "./dist/src/migrations/update-20-0-0/move-use-daemon-process.md"
97
99
  },
98
100
  "use-legacy-cache": {
99
101
  "version": "20.0.1",
100
102
  "description": "Set `useLegacyCache` to true for migrating workspaces",
101
103
  "implementation": "./dist/src/migrations/update-20-0-1/use-legacy-cache",
102
- "x-repair-skip": true
104
+ "x-repair-skip": true,
105
+ "documentation": "./dist/src/migrations/update-20-0-1/use-legacy-cache.md"
103
106
  },
104
107
  "remove-legacy-cache": {
105
108
  "version": "21.0.0-beta.8",
106
109
  "description": "Removes the legacy cache configuration from nx.json",
107
- "implementation": "./dist/src/migrations/update-21-0-0/remove-legacy-cache"
110
+ "implementation": "./dist/src/migrations/update-21-0-0/remove-legacy-cache",
111
+ "documentation": "./dist/src/migrations/update-21-0-0/remove-legacy-cache.md"
108
112
  },
109
113
  "remove-custom-tasks-runner": {
110
114
  "version": "21.0.0-beta.8",
111
115
  "description": "Removes the legacy cache configuration from nx.json",
112
- "implementation": "./dist/src/migrations/update-21-0-0/remove-custom-tasks-runner"
116
+ "implementation": "./dist/src/migrations/update-21-0-0/remove-custom-tasks-runner",
117
+ "documentation": "./dist/src/migrations/update-21-0-0/remove-custom-tasks-runner.md"
113
118
  },
114
119
  "release-version-config-changes": {
115
120
  "version": "21.0.0-beta.11",
116
121
  "description": "Updates release version config based on the breaking changes in Nx v21",
117
- "implementation": "./dist/src/migrations/update-21-0-0/release-version-config-changes"
122
+ "implementation": "./dist/src/migrations/update-21-0-0/release-version-config-changes",
123
+ "documentation": "./dist/src/migrations/update-21-0-0/release-version-config-changes.md"
118
124
  },
119
125
  "release-changelog-config-changes": {
120
126
  "version": "21.0.0-beta.11",
121
127
  "description": "Updates release changelog config based on the breaking changes in Nx v21",
122
- "implementation": "./dist/src/migrations/update-21-0-0/release-changelog-config-changes"
128
+ "implementation": "./dist/src/migrations/update-21-0-0/release-changelog-config-changes",
129
+ "documentation": "./dist/src/migrations/update-21-0-0/release-changelog-config-changes.md"
123
130
  },
124
131
  "22-0-0-release-version-config-changes": {
125
132
  "version": "22.0.0-beta.1",
@@ -159,7 +166,8 @@
159
166
  "cli": "nx",
160
167
  "version": "22.7.0-beta.0",
161
168
  "description": "Adds .nx/self-healing to .gitignore",
162
- "implementation": "./dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore"
169
+ "implementation": "./dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore",
170
+ "documentation": "./dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore.md"
163
171
  },
164
172
  "23-0-0-consolidate-release-tag-config": {
165
173
  "version": "23.0.0-beta.16",
@@ -170,7 +178,8 @@
170
178
  "cli": "nx",
171
179
  "version": "23.0.0-beta.13",
172
180
  "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"
181
+ "implementation": "./dist/src/migrations/update-23-0-0/convert-target-defaults-to-array",
182
+ "documentation": "./dist/src/migrations/update-23-0-0/convert-target-defaults-to-array.md"
174
183
  },
175
184
  "23-0-0-add-migrate-runs-to-git-ignore": {
176
185
  "version": "23.0.0-beta.18",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "23.0.0-beta.21",
3
+ "version": "23.0.0-beta.22",
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.",
@@ -172,16 +172,16 @@
172
172
  }
173
173
  },
174
174
  "optionalDependencies": {
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"
175
+ "@nx/nx-darwin-arm64": "23.0.0-beta.22",
176
+ "@nx/nx-darwin-x64": "23.0.0-beta.22",
177
+ "@nx/nx-freebsd-x64": "23.0.0-beta.22",
178
+ "@nx/nx-linux-arm-gnueabihf": "23.0.0-beta.22",
179
+ "@nx/nx-linux-arm64-gnu": "23.0.0-beta.22",
180
+ "@nx/nx-linux-arm64-musl": "23.0.0-beta.22",
181
+ "@nx/nx-linux-x64-gnu": "23.0.0-beta.22",
182
+ "@nx/nx-linux-x64-musl": "23.0.0-beta.22",
183
+ "@nx/nx-win32-arm64-msvc": "23.0.0-beta.22",
184
+ "@nx/nx-win32-x64-msvc": "23.0.0-beta.22"
185
185
  },
186
186
  "nx-migrations": {
187
187
  "migrations": "./migrations.json",
@@ -421,6 +421,47 @@
421
421
  },
422
422
  "additionalProperties": false
423
423
  },
424
+ "migrate": {
425
+ "type": "object",
426
+ "description": "Configuration for the `nx migrate` command",
427
+ "properties": {
428
+ "createCommits": {
429
+ "type": "boolean",
430
+ "description": "Whether to automatically create a git commit after each migration runs. Equivalent to the `--create-commits` flag. Defaults to `false`."
431
+ },
432
+ "commitPrefix": {
433
+ "type": "string",
434
+ "description": "Commit message prefix applied to each migration commit when commits are enabled. Equivalent to the `--commit-prefix` flag. Defaults to `\"chore: [nx migration] \"`."
435
+ },
436
+ "mode": {
437
+ "type": "string",
438
+ "enum": ["first-party", "third-party", "all"],
439
+ "description": "Restricts which packages to migrate when migrating Nx itself. Equivalent to the `--mode` flag. Defaults to `all`."
440
+ },
441
+ "multiMajorMode": {
442
+ "type": "string",
443
+ "enum": ["direct", "gradual"],
444
+ "description": "How to handle a migration that crosses more than one major version. Equivalent to the `--multi-major-mode` flag. The `NX_MULTI_MAJOR_MODE` environment variable takes precedence over this setting."
445
+ },
446
+ "agentic": {
447
+ "oneOf": [
448
+ {
449
+ "type": "boolean"
450
+ },
451
+ {
452
+ "type": "string",
453
+ "enum": ["claude-code", "codex", "opencode"]
454
+ }
455
+ ],
456
+ "description": "Default for the agentic flow used by `nx migrate --run-migrations`. Equivalent to the `--agentic` flag. `false` never uses the agentic flow, `true` uses it and resolves the installed agent, and an agent id always uses that agent."
457
+ },
458
+ "validate": {
459
+ "type": "boolean",
460
+ "description": "Whether to run agent-driven validation after generator-only migrations when the agentic flow is enabled. Equivalent to the `--validate` flag. Defaults to `true` when the agentic flow is enabled."
461
+ }
462
+ },
463
+ "additionalProperties": false
464
+ },
424
465
  "conformance": {
425
466
  "type": "object",
426
467
  "description": "Configuration for Nx Conformance",