@ohos-ports/nx 23.3.0-beta.3 → 24.0.2-beta.0
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.
- package/README.md +3 -6
- package/dist/bin/nx.js +2 -2
- package/dist/bin/post-install.js +5 -3
- package/dist/nx-cloud-internals.d.ts +1 -0
- package/dist/nx-cloud-internals.js +7 -1
- package/dist/src/adapter/ngcli-adapter.js +2 -2
- package/dist/src/ai/clone-ai-config-repo.js +49 -12
- package/dist/src/command-line/add/add.d.ts +2 -0
- package/dist/src/command-line/add/add.js +24 -6
- package/dist/src/command-line/affected/affected.js +2 -2
- package/dist/src/command-line/configure-ai-agents/configure-ai-agents.js +1 -13
- package/dist/src/command-line/graph/graph.js +38 -10
- package/dist/src/command-line/init/command-object.js +0 -12
- package/dist/src/command-line/init/implementation/add-nx-to-nest.js +21 -62
- package/dist/src/command-line/init/init-v2.js +1 -3
- package/dist/src/command-line/migrate/agentic/close-agent-session.d.ts +1 -1
- package/dist/src/command-line/migrate/agentic/close-agent-session.js +4 -3
- package/dist/src/command-line/migrate/agentic/definitions.d.ts +1 -3
- package/dist/src/command-line/migrate/agentic/definitions.js +5 -97
- package/dist/src/command-line/migrate/agentic/handoff-gitignore.d.ts +7 -45
- package/dist/src/command-line/migrate/agentic/handoff-gitignore.js +9 -51
- package/dist/src/command-line/migrate/agentic/handoff.d.ts +1 -43
- package/dist/src/command-line/migrate/agentic/handoff.js +3 -119
- package/dist/src/command-line/migrate/agentic/instruction-files.d.ts +0 -21
- package/dist/src/command-line/migrate/agentic/instruction-files.js +6 -27
- package/dist/src/command-line/migrate/agentic/master/run-master-session.d.ts +19 -1
- package/dist/src/command-line/migrate/agentic/master/run-master-session.js +88 -49
- package/dist/src/command-line/migrate/agentic/master/spawn-master.d.ts +1 -0
- package/dist/src/command-line/migrate/agentic/master/spawn-master.js +86 -24
- package/dist/src/command-line/migrate/agentic/print-dropped-agent-context.d.ts +2 -2
- package/dist/src/command-line/migrate/agentic/print-dropped-agent-context.js +2 -2
- package/dist/src/command-line/migrate/agentic/prompts/fragments.d.ts +1 -12
- package/dist/src/command-line/migrate/agentic/prompts/fragments.js +8 -17
- package/dist/src/command-line/migrate/agentic/prompts/shared-rendering.d.ts +0 -15
- package/dist/src/command-line/migrate/agentic/prompts/shared-rendering.js +3 -100
- package/dist/src/command-line/migrate/agentic/select.d.ts +12 -6
- package/dist/src/command-line/migrate/agentic/select.js +38 -8
- package/dist/src/command-line/migrate/agentic/types.d.ts +9 -68
- package/dist/src/command-line/migrate/agentic/types.js +6 -8
- package/dist/src/command-line/migrate/command-object.js +6 -10
- package/dist/src/command-line/migrate/execute-migration.d.ts +6 -6
- package/dist/src/command-line/migrate/execute-migration.js +25 -15
- package/dist/src/command-line/migrate/migrate-analytics.d.ts +18 -1
- package/dist/src/command-line/migrate/migrate-analytics.js +38 -0
- package/dist/src/command-line/migrate/migrate-commits.d.ts +29 -17
- package/dist/src/command-line/migrate/migrate-commits.js +86 -32
- package/dist/src/command-line/migrate/migrate-config.d.ts +6 -6
- package/dist/src/command-line/migrate/migrate-config.js +12 -6
- package/dist/src/command-line/migrate/migrate-output.d.ts +1 -6
- package/dist/src/command-line/migrate/migrate-output.js +1 -10
- package/dist/src/command-line/migrate/migrate.d.ts +6 -30
- package/dist/src/command-line/migrate/migrate.js +257 -255
- package/dist/src/command-line/migrate/resolve-package-version.d.ts +2 -4
- package/dist/src/command-line/migrate/resolve-package-version.js +2 -35
- package/dist/src/command-line/migrate/run/agent-output.d.ts +2 -0
- package/dist/src/command-line/migrate/run/agent-output.js +9 -0
- package/dist/src/command-line/migrate/run/broker.d.ts +14 -5
- package/dist/src/command-line/migrate/run/broker.js +69 -21
- package/dist/src/command-line/migrate/run/clean-retry.js +4 -2
- package/dist/src/command-line/migrate/run/existing-run-report.d.ts +1 -1
- package/dist/src/command-line/migrate/run/existing-run-report.js +7 -5
- package/dist/src/command-line/migrate/run/give-up.d.ts +4 -3
- package/dist/src/command-line/migrate/run/give-up.js +8 -5
- package/dist/src/command-line/migrate/run/index.d.ts +7 -5
- package/dist/src/command-line/migrate/run/index.js +16 -1
- package/dist/src/command-line/migrate/run/issues.js +7 -2
- package/dist/src/command-line/migrate/run/orchestrator.d.ts +61 -4
- package/dist/src/command-line/migrate/run/orchestrator.js +397 -133
- package/dist/src/command-line/migrate/run/run-state.d.ts +17 -1
- package/dist/src/command-line/migrate/run/run-state.js +41 -2
- package/dist/src/command-line/migrate/run/runbook.d.ts +1 -0
- package/dist/src/command-line/migrate/run/runbook.js +115 -18
- package/dist/src/command-line/migrate/run/state-lock.d.ts +29 -4
- package/dist/src/command-line/migrate/run/state-lock.js +102 -10
- package/dist/src/command-line/migrate/run/state-machine.js +4 -1
- package/dist/src/command-line/migrate/run/util.d.ts +7 -2
- package/dist/src/command-line/migrate/run/util.js +30 -3
- package/dist/src/command-line/migrate/run/worker.d.ts +1 -1
- package/dist/src/command-line/migrate/run/worker.js +252 -250
- package/dist/src/command-line/migrate/sort-migrations.d.ts +1 -7
- package/dist/src/command-line/migrate/sort-migrations.js +1 -12
- package/dist/src/command-line/nx-cloud/connect/connect-to-nx-cloud.js +17 -12
- package/dist/src/command-line/release/changelog.js +9 -6
- package/dist/src/command-line/release/config/config.d.ts +1 -0
- package/dist/src/command-line/release/config/config.js +48 -9
- package/dist/src/command-line/release/release.js +2 -2
- package/dist/src/command-line/release/utils/git.js +8 -7
- package/dist/src/command-line/release/utils/interpolate-release-config.d.ts +6 -0
- package/dist/src/command-line/release/utils/interpolate-release-config.js +39 -0
- package/dist/src/command-line/release/utils/release-graph.d.ts +5 -0
- package/dist/src/command-line/release/utils/release-graph.js +1 -0
- package/dist/src/command-line/release/utils/remote-release-clients/github.js +5 -6
- package/dist/src/command-line/release/utils/remote-release-clients/gitlab.js +5 -6
- package/dist/src/command-line/release/utils/resolve-changelog-renderer.js +2 -2
- package/dist/src/command-line/release/utils/shared.js +10 -10
- package/dist/src/command-line/release/utils/version-plan-utils.d.ts +3 -12
- package/dist/src/command-line/release/utils/version-plan-utils.js +33 -55
- package/dist/src/command-line/release/version/version-actions.js +2 -1
- package/dist/src/command-line/release/version.js +5 -2
- package/dist/src/command-line/repair/repair.js +1 -1
- package/dist/src/command-line/report/report.js +1 -1
- package/dist/src/command-line/reset/reset.js +58 -62
- package/dist/src/command-line/run/executor-utils.js +1 -0
- package/dist/src/command-line/run/run-one.d.ts +20 -1
- package/dist/src/command-line/run/run-one.js +153 -5
- package/dist/src/command-line/run/run.js +2 -1
- package/dist/src/command-line/show/projects.js +5 -3
- package/dist/src/command-line/show/show-target/info.d.ts +10 -1
- package/dist/src/command-line/show/show-target/info.js +100 -15
- package/dist/src/command-line/show/show-target/inputs.js +10 -2
- package/dist/src/command-line/show/show-target/utils.js +1 -0
- package/dist/src/command-line/watch/command-object.js +3 -22
- package/dist/src/command-line/watch/watch.d.ts +0 -7
- package/dist/src/command-line/watch/watch.js +1 -1
- package/dist/src/command-line/yargs-utils/shared-options.js +1 -1
- package/dist/src/config/misc-interfaces.d.ts +18 -0
- package/dist/src/config/nx-json.d.ts +22 -11
- package/dist/src/config/task-graph.d.ts +1 -1
- package/dist/src/config/workspace-json-project-json.d.ts +88 -0
- package/dist/src/core/graph/main.js +1 -1
- package/dist/src/core/graph/runtime.js +1 -1
- package/dist/src/core/graph/styles.css +1 -1
- package/dist/src/core/graph/styles.js +1 -1
- package/dist/src/daemon/client/client.d.ts +15 -0
- package/dist/src/daemon/client/client.js +181 -71
- package/dist/src/daemon/client/daemon-socket-messenger.d.ts +1 -1
- package/dist/src/daemon/client/daemon-socket-messenger.js +2 -2
- package/dist/src/daemon/server/client-socket-context.js +1 -1
- package/dist/src/daemon/server/handle-configure-ai-agents.js +2 -2
- package/dist/src/daemon/server/handle-process-in-background.js +21 -9
- package/dist/src/daemon/server/handle-select-affected-tasks.d.ts +2 -1
- package/dist/src/daemon/server/handle-select-affected-tasks.js +21 -13
- package/dist/src/daemon/server/native-js-loader.d.ts +1 -0
- package/dist/src/daemon/server/native-js-loader.js +21 -0
- package/dist/src/daemon/server/nx-console-operations.js +2 -2
- package/dist/src/daemon/server/project-graph-incremental-recomputation.js +4 -8
- package/dist/src/daemon/server/server.d.ts +2 -1
- package/dist/src/daemon/server/server.js +17 -4
- package/dist/src/daemon/server/shutdown-utils.js +1 -4
- package/dist/src/daemon/server/start.d.ts +1 -0
- package/dist/src/daemon/server/start.js +2 -0
- package/dist/src/daemon/socket-utils.d.ts +11 -9
- package/dist/src/daemon/socket-utils.js +31 -61
- package/dist/src/daemon/tmp-dir.d.ts +19 -14
- package/dist/src/daemon/tmp-dir.js +142 -354
- package/dist/src/devkit-exports.d.ts +9 -1
- package/dist/src/devkit-exports.js +12 -1
- package/dist/src/devkit-internals.d.ts +6 -5
- package/dist/src/devkit-internals.js +13 -4
- package/dist/src/executors/run-commands/run-commands.impl.d.ts +4 -2
- package/dist/src/executors/run-commands/run-commands.impl.js +53 -27
- package/dist/src/executors/run-commands/running-tasks.d.ts +13 -4
- package/dist/src/executors/run-commands/running-tasks.js +148 -95
- package/dist/src/executors/run-commands/schema.json +1 -1
- package/dist/src/hasher/check-task-files.js +5 -8
- package/dist/src/hasher/file-hasher.js +9 -7
- package/dist/src/hasher/hash-task.js +4 -0
- package/dist/src/hasher/native-task-hasher-impl.js +3 -1
- package/dist/src/hasher/task-hasher.d.ts +2 -0
- package/dist/src/hasher/task-hasher.js +4 -1
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.d.ts +1 -2
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.js +6 -11
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.md +2 -2
- package/dist/src/migrations/update-24-0-0/enable-legacy-affected.d.ts +4 -0
- package/dist/src/migrations/update-24-0-0/enable-legacy-affected.js +15 -0
- package/dist/src/migrations/update-24-0-0/enable-legacy-affected.md +30 -0
- package/dist/src/migrations/update-24-0-0/find-custom-hashers.d.ts +3 -0
- package/dist/src/migrations/update-24-0-0/find-custom-hashers.js +100 -0
- package/dist/src/migrations/update-24-0-0/find-custom-hashers.md +63 -0
- package/dist/src/migrations/update-24-0-0/move-custom-hashers-to-inputs.md +146 -0
- package/dist/src/migrations/update-24-0-0/rename-ultracache-ignore-options.d.ts +3 -0
- package/dist/src/migrations/update-24-0-0/rename-ultracache-ignore-options.js +130 -0
- package/dist/src/migrations/update-24-0-0/rename-ultracache-ignore-options.md +62 -0
- package/dist/src/native/assert-supported-platform.js +1 -1
- package/dist/src/native/index.d.ts +238 -18
- package/dist/src/native/index.js +6 -1
- package/dist/src/native/native-bindings.js +15 -6
- package/dist/src/native/nx.openharmony-arm64.node +0 -0
- package/dist/src/native/nx.wasi-browser.js +1 -0
- package/dist/src/native/nx.wasi.cjs +1 -0
- package/dist/src/native/nx.wasm32-wasi.debug.wasm +0 -0
- package/dist/src/native/nx.wasm32-wasi.wasm +0 -0
- package/dist/src/nx-cloud/update-manager.d.ts +14 -0
- package/dist/src/nx-cloud/update-manager.js +237 -50
- package/dist/src/plugins/js/lock-file/pnpm-parser.js +3 -4
- package/dist/src/plugins/js/lock-file/pruned-output.d.ts +2 -2
- package/dist/src/plugins/js/lock-file/pruned-output.js +4 -4
- package/dist/src/plugins/js/utils/register.js +9 -4
- package/dist/src/project-graph/affected/affected-tasks.d.ts +9 -6
- package/dist/src/project-graph/affected/affected-tasks.js +31 -7
- package/dist/src/project-graph/plugins/isolation/isolated-plugin.js +7 -0
- package/dist/src/project-graph/plugins/loaded-nx-plugin.js +49 -6
- package/dist/src/project-graph/utils/project-configuration/target-merging.js +1 -1
- package/dist/src/project-graph/utils/project-configuration/target-normalization.js +12 -133
- package/dist/src/project-graph/utils/project-configuration-utils.js +2 -2
- package/dist/src/project-graph/utils/retrieve-workspace-files.js +27 -6
- package/dist/src/tasks-runner/create-task-graph.d.ts +8 -7
- package/dist/src/tasks-runner/create-task-graph.js +50 -27
- package/dist/src/tasks-runner/default-tasks-runner.js +1 -1
- package/dist/src/tasks-runner/init-tasks-runner.js +116 -59
- package/dist/src/tasks-runner/life-cycle.d.ts +4 -1
- package/dist/src/tasks-runner/life-cycle.js +7 -0
- package/dist/src/tasks-runner/life-cycles/performance-analysis.d.ts +5 -2
- package/dist/src/tasks-runner/life-cycles/performance-analysis.js +13 -7
- package/dist/src/tasks-runner/life-cycles/performance-life-cycle.d.ts +4 -3
- package/dist/src/tasks-runner/life-cycles/performance-life-cycle.js +9 -2
- package/dist/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +5 -2
- package/dist/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js +4 -1
- package/dist/src/tasks-runner/life-cycles/summary-terminal-output-life-cycle.js +5 -1
- package/dist/src/tasks-runner/pseudo-ipc.d.ts +1 -0
- package/dist/src/tasks-runner/pseudo-ipc.js +4 -0
- package/dist/src/tasks-runner/pseudo-terminal.d.ts +1 -1
- package/dist/src/tasks-runner/pseudo-terminal.js +2 -2
- package/dist/src/tasks-runner/readiness/executor-ready-signal.d.ts +7 -0
- package/dist/src/tasks-runner/readiness/executor-ready-signal.js +43 -0
- package/dist/src/tasks-runner/readiness/probes.d.ts +14 -0
- package/dist/src/tasks-runner/readiness/probes.js +101 -0
- package/dist/src/tasks-runner/readiness/ready-signal-server.d.ts +18 -0
- package/dist/src/tasks-runner/readiness/ready-signal-server.js +72 -0
- package/dist/src/tasks-runner/readiness/ready-signal.d.ts +33 -0
- package/dist/src/tasks-runner/readiness/ready-signal.js +92 -0
- package/dist/src/tasks-runner/readiness/ready-when.d.ts +84 -0
- package/dist/src/tasks-runner/readiness/ready-when.js +371 -0
- package/dist/src/tasks-runner/readiness/startup-host.d.ts +1 -0
- package/dist/src/tasks-runner/readiness/startup-host.js +32 -0
- package/dist/src/tasks-runner/run-command.d.ts +6 -2
- package/dist/src/tasks-runner/run-command.js +21 -31
- package/dist/src/tasks-runner/run-outcome.d.ts +16 -0
- package/dist/src/tasks-runner/run-outcome.js +39 -0
- package/dist/src/tasks-runner/running-tasks/batch-process.js +6 -0
- package/dist/src/tasks-runner/running-tasks/node-child-process.js +5 -4
- package/dist/src/tasks-runner/running-tasks/running-task.d.ts +1 -1
- package/dist/src/tasks-runner/task-env.d.ts +10 -0
- package/dist/src/tasks-runner/task-env.js +37 -5
- package/dist/src/tasks-runner/task-graph-utils.d.ts +9 -6
- package/dist/src/tasks-runner/task-graph-utils.js +17 -12
- package/dist/src/tasks-runner/task-orchestrator.d.ts +62 -18
- package/dist/src/tasks-runner/task-orchestrator.js +750 -150
- package/dist/src/tasks-runner/tasks-runner.d.ts +1 -1
- package/dist/src/tasks-runner/tasks-schedule.d.ts +18 -1
- package/dist/src/tasks-runner/tasks-schedule.js +63 -6
- package/dist/src/tasks-runner/tokens.d.ts +54 -0
- package/dist/src/tasks-runner/tokens.js +161 -0
- package/dist/src/tasks-runner/utils.d.ts +35 -6
- package/dist/src/tasks-runner/utils.js +149 -68
- package/dist/src/ultracache/ci-status.d.ts +24 -0
- package/dist/src/ultracache/ci-status.js +87 -0
- package/dist/src/ultracache/config.d.ts +3 -3
- package/dist/src/ultracache/config.js +4 -4
- package/dist/src/ultracache/fetch.d.ts +2 -0
- package/dist/src/ultracache/fetch.js +1 -0
- package/dist/src/ultracache/overrides.js +4 -0
- package/dist/src/utils/acknowledge-build-scripts.d.ts +34 -1
- package/dist/src/utils/acknowledge-build-scripts.js +171 -32
- package/dist/src/utils/child-process.js +2 -1
- package/dist/src/utils/find-matching-projects.js +9 -6
- package/dist/src/utils/git-utils.d.ts +12 -5
- package/dist/src/utils/git-utils.js +69 -11
- package/dist/src/utils/long-running-target.d.ts +1 -3
- package/dist/src/utils/long-running-target.js +1 -3
- package/dist/src/utils/nx-package-group.js +1 -1
- package/dist/src/utils/output.d.ts +4 -3
- package/dist/src/utils/output.js +4 -3
- package/dist/src/utils/owned-private-dir.d.ts +1 -17
- package/dist/src/utils/owned-private-dir.js +10 -62
- package/dist/src/utils/package-json.js +1 -1
- package/dist/src/utils/package-manager.d.ts +8 -0
- package/dist/src/utils/package-manager.js +65 -8
- package/dist/src/utils/perf-hooks.d.ts +1 -0
- package/dist/src/utils/plugins/core-plugins.js +5 -1
- package/dist/src/utils/progress-topics.d.ts +1 -0
- package/dist/src/utils/progress-topics.js +1 -0
- package/dist/src/utils/safe-spawn.js +1 -5
- package/dist/src/utils/shell-quoting.d.ts +8 -1
- package/dist/src/utils/shell-quoting.js +12 -1
- package/dist/src/utils/spawn-without-terminal.d.ts +27 -0
- package/dist/src/utils/spawn-without-terminal.js +110 -0
- package/dist/src/utils/string-similarity.d.ts +38 -0
- package/dist/src/utils/string-similarity.js +108 -0
- package/dist/src/utils/versions.js +1 -1
- package/migrations.json +20 -6
- package/package.json +15 -24
- package/schemas/migrations-schema.json +11 -0
- package/schemas/nx-schema.json +133 -11
- package/schemas/project-schema.json +114 -4
- package/dist/src/command-line/migrate/agentic/prompts/generic-validation.d.ts +0 -56
- package/dist/src/command-line/migrate/agentic/prompts/generic-validation.js +0 -67
- package/dist/src/command-line/migrate/agentic/prompts/hybrid-prompt-migration.d.ts +0 -49
- package/dist/src/command-line/migrate/agentic/prompts/hybrid-prompt-migration.js +0 -53
- package/dist/src/command-line/migrate/agentic/prompts/prompt-migration.d.ts +0 -26
- package/dist/src/command-line/migrate/agentic/prompts/prompt-migration.js +0 -27
- package/dist/src/command-line/migrate/agentic/prompts/system-prompt.d.ts +0 -70
- package/dist/src/command-line/migrate/agentic/prompts/system-prompt.js +0 -113
- package/dist/src/command-line/migrate/agentic/run-step.d.ts +0 -68
- package/dist/src/command-line/migrate/agentic/run-step.js +0 -148
- package/dist/src/command-line/migrate/agentic/runner.d.ts +0 -21
- package/dist/src/command-line/migrate/agentic/runner.js +0 -262
- package/dist/src/migrations/update-23-0-0/consolidate-release-tag-config.d.ts +0 -9
- package/dist/src/migrations/update-23-0-0/consolidate-release-tag-config.js +0 -18
- package/dist/src/tasks-runner/legacy-depends-on-warning.d.ts +0 -18
- package/dist/src/tasks-runner/legacy-depends-on-warning.js +0 -109
package/migrations.json
CHANGED
|
@@ -175,11 +175,6 @@
|
|
|
175
175
|
"implementation": "./dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore",
|
|
176
176
|
"documentation": "./dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore.md"
|
|
177
177
|
},
|
|
178
|
-
"23-0-0-consolidate-release-tag-config": {
|
|
179
|
-
"version": "23.0.0-beta.16",
|
|
180
|
-
"description": "Consolidates any remaining legacy releaseTag* flat properties into the nested releaseTag object. The flat properties were removed in Nx 23.",
|
|
181
|
-
"implementation": "./dist/src/migrations/update-23-0-0/consolidate-release-tag-config"
|
|
182
|
-
},
|
|
183
178
|
"23-0-0-add-migrate-runs-to-git-ignore": {
|
|
184
179
|
"version": "23.0.0-beta.18",
|
|
185
180
|
"description": "Adds .nx/migrate-runs to .gitignore",
|
|
@@ -187,9 +182,28 @@
|
|
|
187
182
|
},
|
|
188
183
|
"23-2-0-set-cache-on-executor-target-defaults": {
|
|
189
184
|
"version": "23.2.0-beta.8",
|
|
190
|
-
"description": "Sets \"cache\" on some executor-based target defaults whose caching was previously enabled by a target name default, maintaining compatibility with how cacheability resolved before Nx 23. Keys the migration cannot decide are left alone and
|
|
185
|
+
"description": "Sets \"cache\" on some executor-based target defaults whose caching was previously enabled by a target name default, maintaining compatibility with how cacheability resolved before Nx 23. Keys the migration cannot decide are left alone, and the targets resolving through them need \"cache\" set by hand.",
|
|
191
186
|
"implementation": "./dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults",
|
|
192
187
|
"documentation": "./dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.md"
|
|
188
|
+
},
|
|
189
|
+
"24-0-0-move-custom-hashers-to-inputs": {
|
|
190
|
+
"version": "24.0.0-beta.0",
|
|
191
|
+
"description": "Finds local executors that declare a custom hasher, which is deprecated and will be removed in Nx 25. Rewriting a hasher as target inputs means reading what its code hashes, so the rewrite is driven by an AI prompt; the generator only reports each hasher.",
|
|
192
|
+
"implementation": "./dist/src/migrations/update-24-0-0/find-custom-hashers",
|
|
193
|
+
"prompt": "./dist/src/migrations/update-24-0-0/move-custom-hashers-to-inputs.md",
|
|
194
|
+
"documentation": "./dist/src/migrations/update-24-0-0/find-custom-hashers.md"
|
|
195
|
+
},
|
|
196
|
+
"24-0-0-enable-legacy-affected": {
|
|
197
|
+
"version": "24.0.0-beta.3",
|
|
198
|
+
"description": "Sets affected.legacy to true in nx.json so nx affected keeps selecting whole projects. Nx 24 selects individual affected tasks by default.",
|
|
199
|
+
"implementation": "./dist/src/migrations/update-24-0-0/enable-legacy-affected",
|
|
200
|
+
"documentation": "./dist/src/migrations/update-24-0-0/enable-legacy-affected.md"
|
|
201
|
+
},
|
|
202
|
+
"24-0-0-rename-ultracache-ignore-options": {
|
|
203
|
+
"version": "24.0.0-beta.3",
|
|
204
|
+
"description": "Renames the ultracache target options \"ignoredReads\" and \"ignoredWrites\" to \"ignoreReads\" and \"ignoreWrites\", and renames .nx/workflows/sandboxing-config.yaml to ultracache-config.yaml with its \"exclude-reads\" and \"exclude-writes\" keys renamed to \"ignore-reads\" and \"ignore-writes\".",
|
|
205
|
+
"implementation": "./dist/src/migrations/update-24-0-0/rename-ultracache-ignore-options",
|
|
206
|
+
"documentation": "./dist/src/migrations/update-24-0-0/rename-ultracache-ignore-options.md"
|
|
193
207
|
}
|
|
194
208
|
}
|
|
195
209
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-ports/nx",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.0.2-beta.0",
|
|
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.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/ohos-ports/ohos-ports.git",
|
|
10
|
-
"directory": "ports/nx/
|
|
10
|
+
"directory": "ports/nx/24.0.2"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"dist/bin",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"bugs": {
|
|
47
47
|
"url": "https://github.com/ohos-ports/ohos-ports/issues"
|
|
48
48
|
},
|
|
49
|
-
"homepage": "https://github.com/ohos-ports/ohos-ports/tree/main/ports/nx/
|
|
49
|
+
"homepage": "https://github.com/ohos-ports/ohos-ports/tree/main/ports/nx/24.0.2",
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@clack/core": "1.4.3",
|
|
52
52
|
"@clack/prompts": "1.7.0",
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"bl": "4.1.0",
|
|
67
67
|
"brace-expansion": "5.0.12",
|
|
68
68
|
"buffer": "5.7.1",
|
|
69
|
-
"bundle-name": "4.1.0",
|
|
70
69
|
"chalk": "4.1.2",
|
|
71
70
|
"cli-cursor": "3.1.0",
|
|
72
71
|
"cli-spinners": "2.6.1",
|
|
@@ -74,10 +73,7 @@
|
|
|
74
73
|
"clone": "1.0.4",
|
|
75
74
|
"color-convert": "2.0.1",
|
|
76
75
|
"color-name": "1.1.4",
|
|
77
|
-
"default-browser": "5.2.1",
|
|
78
|
-
"default-browser-id": "5.0.0",
|
|
79
76
|
"defaults": "1.0.4",
|
|
80
|
-
"define-lazy-prop": "3.0.0",
|
|
81
77
|
"dotenv": "16.4.7",
|
|
82
78
|
"dotenv-expand": "12.0.3",
|
|
83
79
|
"ejs": "5.0.1",
|
|
@@ -93,14 +89,11 @@
|
|
|
93
89
|
"get-caller-file": "2.0.5",
|
|
94
90
|
"has-flag": "4.0.0",
|
|
95
91
|
"ieee754": "1.2.1",
|
|
96
|
-
"ignore": "7.0.
|
|
92
|
+
"ignore": "7.0.12",
|
|
97
93
|
"inherits": "2.0.4",
|
|
98
|
-
"is-docker": "3.0.0",
|
|
99
94
|
"is-fullwidth-code-point": "3.0.0",
|
|
100
|
-
"is-inside-container": "1.0.0",
|
|
101
95
|
"is-interactive": "1.0.0",
|
|
102
96
|
"is-unicode-supported": "0.1.0",
|
|
103
|
-
"is-wsl": "3.1.0",
|
|
104
97
|
"isexe": "2.0.0",
|
|
105
98
|
"json5": "2.2.3",
|
|
106
99
|
"jsonc-parser": "3.3.1",
|
|
@@ -112,7 +105,6 @@
|
|
|
112
105
|
"npm-run-path": "4.0.1",
|
|
113
106
|
"once": "1.4.0",
|
|
114
107
|
"onetime": "5.1.2",
|
|
115
|
-
"open": "10.1.0",
|
|
116
108
|
"ora": "5.4.1",
|
|
117
109
|
"path-key": "3.1.1",
|
|
118
110
|
"picocolors": "1.1.1",
|
|
@@ -120,7 +112,6 @@
|
|
|
120
112
|
"require-directory": "2.1.1",
|
|
121
113
|
"resolve.exports": "2.0.3",
|
|
122
114
|
"restore-cursor": "3.1.0",
|
|
123
|
-
"run-applescript": "7.0.0",
|
|
124
115
|
"safe-buffer": "5.2.1",
|
|
125
116
|
"semver": "7.8.5",
|
|
126
117
|
"signal-exit": "3.0.7",
|
|
@@ -159,17 +150,16 @@
|
|
|
159
150
|
}
|
|
160
151
|
},
|
|
161
152
|
"optionalDependencies": {
|
|
162
|
-
"@nx/nx-darwin-arm64": "
|
|
163
|
-
"@nx/nx-darwin-x64": "
|
|
164
|
-
"@nx/nx-freebsd-x64": "
|
|
165
|
-
"@nx/nx-linux-arm-gnueabihf": "
|
|
166
|
-
"@nx/nx-linux-arm64-gnu": "
|
|
167
|
-
"@nx/nx-linux-arm64-musl": "
|
|
168
|
-
"@nx/nx-linux-x64-gnu": "
|
|
169
|
-
"@nx/nx-linux-x64-musl": "
|
|
170
|
-
"@nx/nx-win32-arm64-msvc": "
|
|
171
|
-
"@nx/nx-win32-x64-msvc": "
|
|
172
|
-
"@ohos-ports/nx-openharmony-arm64": "23.3.0-beta.0"
|
|
153
|
+
"@nx/nx-darwin-arm64": "24.0.2",
|
|
154
|
+
"@nx/nx-darwin-x64": "24.0.2",
|
|
155
|
+
"@nx/nx-freebsd-x64": "24.0.2",
|
|
156
|
+
"@nx/nx-linux-arm-gnueabihf": "24.0.2",
|
|
157
|
+
"@nx/nx-linux-arm64-gnu": "24.0.2",
|
|
158
|
+
"@nx/nx-linux-arm64-musl": "24.0.2",
|
|
159
|
+
"@nx/nx-linux-x64-gnu": "24.0.2",
|
|
160
|
+
"@nx/nx-linux-x64-musl": "24.0.2",
|
|
161
|
+
"@nx/nx-win32-arm64-msvc": "24.0.2",
|
|
162
|
+
"@nx/nx-win32-x64-msvc": "24.0.2"
|
|
173
163
|
},
|
|
174
164
|
"nx-migrations": {
|
|
175
165
|
"migrations": "./migrations.json",
|
|
@@ -202,6 +192,7 @@
|
|
|
202
192
|
"@nx/plugin",
|
|
203
193
|
"@nx/react",
|
|
204
194
|
"@nx/react-native",
|
|
195
|
+
"@nx/rolldown",
|
|
205
196
|
"@nx/rollup",
|
|
206
197
|
"@nx/remix",
|
|
207
198
|
"@nx/rspack",
|
|
@@ -85,9 +85,20 @@
|
|
|
85
85
|
"x-repair-skip": {
|
|
86
86
|
"type": "boolean",
|
|
87
87
|
"description": "Exclude this migration when users run `nx repair`."
|
|
88
|
+
},
|
|
89
|
+
"optionalUpdate": {
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"description": "Marks a migration that applies an optional dependency update, such as a major version bump that also rewrites code. `nx migrate --include=required` skips it, and `nx migrate --include=optional` runs it whenever `requires` is met. Requires `requires`, set to the versions the migration updates from."
|
|
88
92
|
}
|
|
89
93
|
},
|
|
90
94
|
"required": ["version"],
|
|
95
|
+
"if": {
|
|
96
|
+
"properties": { "optionalUpdate": { "const": true } },
|
|
97
|
+
"required": ["optionalUpdate"]
|
|
98
|
+
},
|
|
99
|
+
"then": {
|
|
100
|
+
"required": ["requires"]
|
|
101
|
+
},
|
|
91
102
|
"anyOf": [
|
|
92
103
|
{
|
|
93
104
|
"required": ["implementation"]
|
package/schemas/nx-schema.json
CHANGED
|
@@ -15,11 +15,16 @@
|
|
|
15
15
|
"properties": {
|
|
16
16
|
"defaultBase": {
|
|
17
17
|
"type": "string",
|
|
18
|
-
"description": "Default based branch used by affected commands."
|
|
18
|
+
"description": "Default based branch used by affected commands.",
|
|
19
|
+
"deprecated": "Use the top-level `defaultBase` instead. Support for setting `defaultBase` in `affected` will be removed in Nx 25."
|
|
20
|
+
},
|
|
21
|
+
"legacy": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"default": false,
|
|
24
|
+
"description": "Select every task of each affected project, instead of only the tasks whose inputs a change reaches."
|
|
19
25
|
}
|
|
20
26
|
},
|
|
21
|
-
"additionalProperties": false
|
|
22
|
-
"deprecated": "Use `defaultBase` instead. Support for setting `defaultBase` in `affected` will be removed in Nx 20."
|
|
27
|
+
"additionalProperties": false
|
|
23
28
|
},
|
|
24
29
|
"extends": {
|
|
25
30
|
"type": "string",
|
|
@@ -150,7 +155,7 @@
|
|
|
150
155
|
},
|
|
151
156
|
"useInferencePlugins": {
|
|
152
157
|
"type": "boolean",
|
|
153
|
-
"description": "
|
|
158
|
+
"description": "When `false`, `nx add` does not update package.json scripts by default and `nx init` uses its legacy setup. Generators ignore this setting and always add their inference plugin."
|
|
154
159
|
},
|
|
155
160
|
"analytics": {
|
|
156
161
|
"type": "boolean",
|
|
@@ -424,7 +429,7 @@
|
|
|
424
429
|
"properties": {
|
|
425
430
|
"createCommits": {
|
|
426
431
|
"type": "boolean",
|
|
427
|
-
"description": "Whether to automatically create a git commit after each migration runs. Equivalent to the `--create-commits` flag. Defaults to `false
|
|
432
|
+
"description": "Whether to automatically create a git commit after each migration runs. Equivalent to the `--create-commits` flag. Defaults to `true` when the agentic flow runs the migrations in a Git repository, and `false` otherwise."
|
|
428
433
|
},
|
|
429
434
|
"commitPrefix": {
|
|
430
435
|
"type": "string",
|
|
@@ -442,7 +447,7 @@
|
|
|
442
447
|
},
|
|
443
448
|
"useRegistryResolution": {
|
|
444
449
|
"type": "boolean",
|
|
445
|
-
"description": "Whether nx migrate resolves package versions via the npm registry (faster) instead of a package-manager install. The NX_MIGRATE_USE_REGISTRY_RESOLUTION
|
|
450
|
+
"description": "Whether nx migrate resolves package versions via the npm registry (faster) instead of a package-manager install. The NX_MIGRATE_USE_REGISTRY_RESOLUTION env var takes precedence over this.",
|
|
446
451
|
"default": true
|
|
447
452
|
},
|
|
448
453
|
"agentic": {
|
|
@@ -459,7 +464,11 @@
|
|
|
459
464
|
},
|
|
460
465
|
"validate": {
|
|
461
466
|
"type": "boolean",
|
|
462
|
-
"description": "Whether
|
|
467
|
+
"description": "Whether the AI agent driving a migrate run reviews the changes of generator-only migrations. Equivalent to the `--validate` flag. Defaults to `true`."
|
|
468
|
+
},
|
|
469
|
+
"finalValidation": {
|
|
470
|
+
"type": "boolean",
|
|
471
|
+
"description": "Whether a migrate run an AI agent drives ends with a final check, where the agent makes sure the projects the run touched still lint, build, and pass their unit tests. Equivalent to the `--final-validation` flag. Defaults to `true`."
|
|
463
472
|
}
|
|
464
473
|
},
|
|
465
474
|
"additionalProperties": false
|
|
@@ -615,6 +624,76 @@
|
|
|
615
624
|
}
|
|
616
625
|
},
|
|
617
626
|
"definitions": {
|
|
627
|
+
"readyWhen": {
|
|
628
|
+
"description": "How Nx detects that this continuous target is ready. Dependents opt in with \"waitFor\": \"ready\" on their dependsOn entry. Strings may use the {workspaceRoot}, {projectRoot}, {projectName}, {options.*}, and {env.*} placeholders, resolved against the options and environment the task runs with. A placeholder can list fallbacks, as in {options.port ?? env.PORT ?? 4200}. Set it to null to turn off a check inherited from a plugin or targetDefaults.",
|
|
629
|
+
"type": "object",
|
|
630
|
+
"properties": {
|
|
631
|
+
"...": {
|
|
632
|
+
"type": "boolean",
|
|
633
|
+
"const": true,
|
|
634
|
+
"description": "Merges with the inherited readyWhen instead of replacing it, so { \"...\": true, \"timeout\": 1200000 } keeps an inferred check and only gives it more time. Keys before this token defer to the inherited value; keys after it win."
|
|
635
|
+
},
|
|
636
|
+
"url": {
|
|
637
|
+
"type": "string",
|
|
638
|
+
"description": "Ready when an HTTP or HTTPS GET gets a status from 200 to 403. A redirect counts as ready and is not followed"
|
|
639
|
+
},
|
|
640
|
+
"port": {
|
|
641
|
+
"type": ["integer", "string"],
|
|
642
|
+
"minimum": 0,
|
|
643
|
+
"maximum": 65535,
|
|
644
|
+
"description": "Ready when a TCP connection to this port succeeds. A string can be a port number, auto, or a placeholder such as {options.port}. With 0 or auto the server picks its port, so Nx runs no check and the target counts as ready once it starts"
|
|
645
|
+
},
|
|
646
|
+
"host": {
|
|
647
|
+
"type": "string",
|
|
648
|
+
"description": "Host to connect to with port. By default 127.0.0.1 and ::1 are both tried"
|
|
649
|
+
},
|
|
650
|
+
"command": {
|
|
651
|
+
"type": "string",
|
|
652
|
+
"description": "Ready when this command, run through the shell at the workspace root, exits with code 0. It runs with the environment the task runs with, and the task's options as JSON in NX_TASK_OPTIONS"
|
|
653
|
+
},
|
|
654
|
+
"logMatches": {
|
|
655
|
+
"description": "Ready when every one of these substrings has appeared in the task's output",
|
|
656
|
+
"oneOf": [
|
|
657
|
+
{ "type": "string" },
|
|
658
|
+
{
|
|
659
|
+
"type": "array",
|
|
660
|
+
"items": { "type": "string" },
|
|
661
|
+
"minItems": 1
|
|
662
|
+
}
|
|
663
|
+
]
|
|
664
|
+
},
|
|
665
|
+
"timeout": {
|
|
666
|
+
"type": "integer",
|
|
667
|
+
"minimum": 1,
|
|
668
|
+
"default": 600000,
|
|
669
|
+
"description": "Milliseconds to wait for readiness before failing dependents that wait for it. Defaults to 10 minutes"
|
|
670
|
+
},
|
|
671
|
+
"interval": {
|
|
672
|
+
"type": "integer",
|
|
673
|
+
"minimum": 1,
|
|
674
|
+
"default": 250,
|
|
675
|
+
"description": "Milliseconds between probe attempts. Unused by logMatches and signal"
|
|
676
|
+
},
|
|
677
|
+
"signal": {
|
|
678
|
+
"const": true,
|
|
679
|
+
"description": "Ready when the task reports it, through emitReadySignal from @nx/devkit. The webpack, Rspack, Vite and Rsbuild plugins of Nx report it once their dev server listens"
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
"oneOf": [
|
|
683
|
+
{ "required": ["..."] },
|
|
684
|
+
{
|
|
685
|
+
"not": { "required": ["..."] },
|
|
686
|
+
"oneOf": [
|
|
687
|
+
{ "required": ["url"] },
|
|
688
|
+
{ "required": ["port"] },
|
|
689
|
+
{ "required": ["command"] },
|
|
690
|
+
{ "required": ["logMatches"] },
|
|
691
|
+
{ "required": ["signal"] }
|
|
692
|
+
]
|
|
693
|
+
}
|
|
694
|
+
],
|
|
695
|
+
"additionalProperties": false
|
|
696
|
+
},
|
|
618
697
|
"ownersPattern": {
|
|
619
698
|
"type": "object",
|
|
620
699
|
"properties": {
|
|
@@ -668,6 +747,10 @@
|
|
|
668
747
|
"includeIgnored": {
|
|
669
748
|
"type": "boolean",
|
|
670
749
|
"description": "Hash the glob straight from disk instead of the workspace file map, so gitignored or generated files can be inputs. A missing exact path still takes part in the hash. A ! negation only filters includeIgnored matches when it also sets includeIgnored: true."
|
|
750
|
+
},
|
|
751
|
+
"always": {
|
|
752
|
+
"type": "boolean",
|
|
753
|
+
"description": "Keep the files this input resolves to in the hash even when the task is hashed from its ultracache recording."
|
|
671
754
|
}
|
|
672
755
|
},
|
|
673
756
|
"required": ["fileset"],
|
|
@@ -693,11 +776,15 @@
|
|
|
693
776
|
},
|
|
694
777
|
"dependencies": {
|
|
695
778
|
"type": "boolean",
|
|
696
|
-
"description": "Include files belonging to the input for all the project dependencies of this target."
|
|
779
|
+
"description": "Include files belonging to the input for all the project dependencies of this target. With projects, include them for the dependencies of the selected projects instead of the projects themselves."
|
|
697
780
|
},
|
|
698
781
|
"input": {
|
|
699
782
|
"type": "string",
|
|
700
783
|
"description": "The name of the input."
|
|
784
|
+
},
|
|
785
|
+
"always": {
|
|
786
|
+
"type": "boolean",
|
|
787
|
+
"description": "Keep the files this input resolves to in the hash even when the task is hashed from its ultracache recording."
|
|
701
788
|
}
|
|
702
789
|
},
|
|
703
790
|
"oneOf": [
|
|
@@ -705,7 +792,10 @@
|
|
|
705
792
|
"required": ["projects", "input"]
|
|
706
793
|
},
|
|
707
794
|
{
|
|
708
|
-
"required": ["dependencies", "input"]
|
|
795
|
+
"required": ["dependencies", "input"],
|
|
796
|
+
"not": {
|
|
797
|
+
"required": ["projects"]
|
|
798
|
+
}
|
|
709
799
|
},
|
|
710
800
|
{
|
|
711
801
|
"required": ["input"],
|
|
@@ -791,6 +881,10 @@
|
|
|
791
881
|
"type": "string"
|
|
792
882
|
},
|
|
793
883
|
"description": "Denylist of fields to exclude from the hash. Supports dot notation for nested paths."
|
|
884
|
+
},
|
|
885
|
+
"always": {
|
|
886
|
+
"type": "boolean",
|
|
887
|
+
"description": "Keep the file in the hash even when the task is hashed from its ultracache recording."
|
|
794
888
|
}
|
|
795
889
|
},
|
|
796
890
|
"required": ["json"],
|
|
@@ -912,6 +1006,9 @@
|
|
|
912
1006
|
"continuous": {
|
|
913
1007
|
"$ref": "#/definitions/targetDefaultsConfig/properties/continuous"
|
|
914
1008
|
},
|
|
1009
|
+
"readyWhen": {
|
|
1010
|
+
"$ref": "#/definitions/targetDefaultsConfig/properties/readyWhen"
|
|
1011
|
+
},
|
|
915
1012
|
"parallelism": {
|
|
916
1013
|
"$ref": "#/definitions/targetDefaultsConfig/properties/parallelism"
|
|
917
1014
|
},
|
|
@@ -975,6 +1072,9 @@
|
|
|
975
1072
|
"default": false,
|
|
976
1073
|
"description": "Whether this target runs continuously until stopped"
|
|
977
1074
|
},
|
|
1075
|
+
"readyWhen": {
|
|
1076
|
+
"oneOf": [{ "$ref": "#/definitions/readyWhen" }, { "type": "null" }]
|
|
1077
|
+
},
|
|
978
1078
|
"parallelism": {
|
|
979
1079
|
"type": "boolean",
|
|
980
1080
|
"default": true,
|
|
@@ -1021,6 +1121,23 @@
|
|
|
1021
1121
|
"description": "Configuration for params handling.",
|
|
1022
1122
|
"enum": ["ignore", "forward"],
|
|
1023
1123
|
"default": "ignore"
|
|
1124
|
+
},
|
|
1125
|
+
"options": {
|
|
1126
|
+
"type": "string",
|
|
1127
|
+
"description": "Whether to forward task options to the dependency target.",
|
|
1128
|
+
"enum": ["ignore", "forward"],
|
|
1129
|
+
"default": "ignore"
|
|
1130
|
+
},
|
|
1131
|
+
"inputs": {
|
|
1132
|
+
"type": "boolean",
|
|
1133
|
+
"description": "Set to false to keep a continuous dependency's inputs out of this target's hash and affected calculation. Has no effect on dependencies that are not continuous.",
|
|
1134
|
+
"default": true
|
|
1135
|
+
},
|
|
1136
|
+
"waitFor": {
|
|
1137
|
+
"type": "string",
|
|
1138
|
+
"description": "For a continuous dependency, whether to wait until it has started or until it is ready per its readyWhen. Ignored when the dependency is not continuous or has no readyWhen.",
|
|
1139
|
+
"enum": ["started", "ready"],
|
|
1140
|
+
"default": "started"
|
|
1024
1141
|
}
|
|
1025
1142
|
},
|
|
1026
1143
|
"oneOf": [
|
|
@@ -1067,14 +1184,19 @@
|
|
|
1067
1184
|
"default": "on",
|
|
1068
1185
|
"description": "How this target's tasks participate. 'on' records IO and lets the recording stand in for the declared inputs and outputs. 'warn' records and reports undeclared reads and writes without applying them. 'error' is reserved for failing the task on an undeclared read or write; until per-target enforcement lands it behaves as 'warn'. 'off' records nothing."
|
|
1069
1186
|
},
|
|
1070
|
-
"
|
|
1187
|
+
"collectStats": {
|
|
1188
|
+
"type": "boolean",
|
|
1189
|
+
"default": false,
|
|
1190
|
+
"description": "Collect successful stat metadata accesses as inputs. Missing-path probes are tracked independently of this setting."
|
|
1191
|
+
},
|
|
1192
|
+
"ignoreReads": {
|
|
1071
1193
|
"type": "array",
|
|
1072
1194
|
"items": {
|
|
1073
1195
|
"type": "string"
|
|
1074
1196
|
},
|
|
1075
1197
|
"description": "Workspace-relative glob patterns for reads excluded from ultracache reports. The first path segment cannot contain '*', and '?', '!', '[', ']' and extglobs are not supported; anchor the pattern to a directory instead of leading with '**'."
|
|
1076
1198
|
},
|
|
1077
|
-
"
|
|
1199
|
+
"ignoreWrites": {
|
|
1078
1200
|
"type": "array",
|
|
1079
1201
|
"items": {
|
|
1080
1202
|
"type": "string"
|
|
@@ -102,6 +102,23 @@
|
|
|
102
102
|
"description": "Configuration for params handling.",
|
|
103
103
|
"enum": ["ignore", "forward"],
|
|
104
104
|
"default": "ignore"
|
|
105
|
+
},
|
|
106
|
+
"options": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"description": "Whether to forward task options to the dependency target.",
|
|
109
|
+
"enum": ["ignore", "forward"],
|
|
110
|
+
"default": "ignore"
|
|
111
|
+
},
|
|
112
|
+
"inputs": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"description": "Set to false to keep a continuous dependency's inputs out of this target's hash and affected calculation. Has no effect on dependencies that are not continuous.",
|
|
115
|
+
"default": true
|
|
116
|
+
},
|
|
117
|
+
"waitFor": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"description": "For a continuous dependency, whether to wait until it has started or until it is ready per its readyWhen. Ignored when the dependency is not continuous or has no readyWhen.",
|
|
120
|
+
"enum": ["started", "ready"],
|
|
121
|
+
"default": "started"
|
|
105
122
|
}
|
|
106
123
|
},
|
|
107
124
|
"oneOf": [
|
|
@@ -152,14 +169,19 @@
|
|
|
152
169
|
"default": "on",
|
|
153
170
|
"description": "How this target's tasks participate. 'on' records IO and lets the recording stand in for the declared inputs and outputs. 'warn' records and reports undeclared reads and writes without applying them. 'error' is reserved for failing the task on an undeclared read or write; until per-target enforcement lands it behaves as 'warn'. 'off' records nothing."
|
|
154
171
|
},
|
|
155
|
-
"
|
|
172
|
+
"collectStats": {
|
|
173
|
+
"type": "boolean",
|
|
174
|
+
"default": false,
|
|
175
|
+
"description": "Collect successful stat metadata accesses as inputs. Missing-path probes are tracked independently of this setting."
|
|
176
|
+
},
|
|
177
|
+
"ignoreReads": {
|
|
156
178
|
"type": "array",
|
|
157
179
|
"items": {
|
|
158
180
|
"type": "string"
|
|
159
181
|
},
|
|
160
182
|
"description": "Workspace-relative glob patterns for reads excluded from ultracache reports. The first path segment cannot contain '*', and '?', '!', '[', ']' and extglobs are not supported; anchor the pattern to a directory instead of leading with '**'."
|
|
161
183
|
},
|
|
162
|
-
"
|
|
184
|
+
"ignoreWrites": {
|
|
163
185
|
"type": "array",
|
|
164
186
|
"items": {
|
|
165
187
|
"type": "string"
|
|
@@ -174,6 +196,9 @@
|
|
|
174
196
|
"default": false,
|
|
175
197
|
"description": "Whether this target runs continuously until stopped"
|
|
176
198
|
},
|
|
199
|
+
"readyWhen": {
|
|
200
|
+
"oneOf": [{ "$ref": "#/definitions/readyWhen" }, { "type": "null" }]
|
|
201
|
+
},
|
|
177
202
|
"parallelism": {
|
|
178
203
|
"type": "boolean",
|
|
179
204
|
"default": true,
|
|
@@ -234,6 +259,76 @@
|
|
|
234
259
|
}
|
|
235
260
|
},
|
|
236
261
|
"definitions": {
|
|
262
|
+
"readyWhen": {
|
|
263
|
+
"description": "How Nx detects that this continuous target is ready. Dependents opt in with \"waitFor\": \"ready\" on their dependsOn entry. Strings may use the {workspaceRoot}, {projectRoot}, {projectName}, {options.*}, and {env.*} placeholders, resolved against the options and environment the task runs with. A placeholder can list fallbacks, as in {options.port ?? env.PORT ?? 4200}. Set it to null to turn off a check inherited from a plugin or targetDefaults.",
|
|
264
|
+
"type": "object",
|
|
265
|
+
"properties": {
|
|
266
|
+
"...": {
|
|
267
|
+
"type": "boolean",
|
|
268
|
+
"const": true,
|
|
269
|
+
"description": "Merges with the inherited readyWhen instead of replacing it, so { \"...\": true, \"timeout\": 1200000 } keeps an inferred check and only gives it more time. Keys before this token defer to the inherited value; keys after it win."
|
|
270
|
+
},
|
|
271
|
+
"url": {
|
|
272
|
+
"type": "string",
|
|
273
|
+
"description": "Ready when an HTTP or HTTPS GET gets a status from 200 to 403. A redirect counts as ready and is not followed"
|
|
274
|
+
},
|
|
275
|
+
"port": {
|
|
276
|
+
"type": ["integer", "string"],
|
|
277
|
+
"minimum": 0,
|
|
278
|
+
"maximum": 65535,
|
|
279
|
+
"description": "Ready when a TCP connection to this port succeeds. A string can be a port number, auto, or a placeholder such as {options.port}. With 0 or auto the server picks its port, so Nx runs no check and the target counts as ready once it starts"
|
|
280
|
+
},
|
|
281
|
+
"host": {
|
|
282
|
+
"type": "string",
|
|
283
|
+
"description": "Host to connect to with port. By default 127.0.0.1 and ::1 are both tried"
|
|
284
|
+
},
|
|
285
|
+
"command": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"description": "Ready when this command, run through the shell at the workspace root, exits with code 0. It runs with the environment the task runs with, and the task's options as JSON in NX_TASK_OPTIONS"
|
|
288
|
+
},
|
|
289
|
+
"logMatches": {
|
|
290
|
+
"description": "Ready when every one of these substrings has appeared in the task's output",
|
|
291
|
+
"oneOf": [
|
|
292
|
+
{ "type": "string" },
|
|
293
|
+
{
|
|
294
|
+
"type": "array",
|
|
295
|
+
"items": { "type": "string" },
|
|
296
|
+
"minItems": 1
|
|
297
|
+
}
|
|
298
|
+
]
|
|
299
|
+
},
|
|
300
|
+
"timeout": {
|
|
301
|
+
"type": "integer",
|
|
302
|
+
"minimum": 1,
|
|
303
|
+
"default": 600000,
|
|
304
|
+
"description": "Milliseconds to wait for readiness before failing dependents that wait for it. Defaults to 10 minutes"
|
|
305
|
+
},
|
|
306
|
+
"interval": {
|
|
307
|
+
"type": "integer",
|
|
308
|
+
"minimum": 1,
|
|
309
|
+
"default": 250,
|
|
310
|
+
"description": "Milliseconds between probe attempts. Unused by logMatches and signal"
|
|
311
|
+
},
|
|
312
|
+
"signal": {
|
|
313
|
+
"const": true,
|
|
314
|
+
"description": "Ready when the task reports it, through emitReadySignal from @nx/devkit. The webpack, Rspack, Vite and Rsbuild plugins of Nx report it once their dev server listens"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
"oneOf": [
|
|
318
|
+
{ "required": ["..."] },
|
|
319
|
+
{
|
|
320
|
+
"not": { "required": ["..."] },
|
|
321
|
+
"oneOf": [
|
|
322
|
+
{ "required": ["url"] },
|
|
323
|
+
{ "required": ["port"] },
|
|
324
|
+
{ "required": ["command"] },
|
|
325
|
+
{ "required": ["logMatches"] },
|
|
326
|
+
{ "required": ["signal"] }
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"additionalProperties": false
|
|
331
|
+
},
|
|
237
332
|
"inputs": {
|
|
238
333
|
"type": "array",
|
|
239
334
|
"items": {
|
|
@@ -255,6 +350,10 @@
|
|
|
255
350
|
"includeIgnored": {
|
|
256
351
|
"type": "boolean",
|
|
257
352
|
"description": "Hash the glob straight from disk instead of the workspace file map, so gitignored or generated files can be inputs. A missing exact path still takes part in the hash. A ! negation only filters includeIgnored matches when it also sets includeIgnored: true."
|
|
353
|
+
},
|
|
354
|
+
"always": {
|
|
355
|
+
"type": "boolean",
|
|
356
|
+
"description": "Keep the files this input resolves to in the hash even when the task is hashed from its ultracache recording."
|
|
258
357
|
}
|
|
259
358
|
},
|
|
260
359
|
"required": ["fileset"],
|
|
@@ -280,11 +379,15 @@
|
|
|
280
379
|
},
|
|
281
380
|
"dependencies": {
|
|
282
381
|
"type": "boolean",
|
|
283
|
-
"description": "Include files belonging to the input for all the project dependencies of this target."
|
|
382
|
+
"description": "Include files belonging to the input for all the project dependencies of this target. With projects, include them for the dependencies of the selected projects instead of the projects themselves."
|
|
284
383
|
},
|
|
285
384
|
"input": {
|
|
286
385
|
"type": "string",
|
|
287
386
|
"description": "The name of the input."
|
|
387
|
+
},
|
|
388
|
+
"always": {
|
|
389
|
+
"type": "boolean",
|
|
390
|
+
"description": "Keep the files this input resolves to in the hash even when the task is hashed from its ultracache recording."
|
|
288
391
|
}
|
|
289
392
|
},
|
|
290
393
|
"oneOf": [
|
|
@@ -292,7 +395,10 @@
|
|
|
292
395
|
"required": ["projects", "input"]
|
|
293
396
|
},
|
|
294
397
|
{
|
|
295
|
-
"required": ["dependencies", "input"]
|
|
398
|
+
"required": ["dependencies", "input"],
|
|
399
|
+
"not": {
|
|
400
|
+
"required": ["projects"]
|
|
401
|
+
}
|
|
296
402
|
},
|
|
297
403
|
{
|
|
298
404
|
"required": ["input"],
|
|
@@ -378,6 +484,10 @@
|
|
|
378
484
|
"type": "string"
|
|
379
485
|
},
|
|
380
486
|
"description": "Denylist of fields to exclude from the hash. Supports dot notation for nested paths."
|
|
487
|
+
},
|
|
488
|
+
"always": {
|
|
489
|
+
"type": "boolean",
|
|
490
|
+
"description": "Keep the file in the hash even when the task is hashed from its ultracache recording."
|
|
381
491
|
}
|
|
382
492
|
},
|
|
383
493
|
"required": ["json"],
|