@depup/nx 23.2.1-depup.7 → 23.3.0-depup.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 +8 -19
- package/changes.json +10 -54
- package/dist/bin/init-local.js +7 -1
- package/dist/nx-cloud-internals.d.ts +1 -0
- package/dist/nx-cloud-internals.js +9 -0
- package/dist/plugins/package-json.js +1 -1
- package/dist/src/command-line/add/add.js +5 -1
- package/dist/src/command-line/affected/affected.js +70 -9
- package/dist/src/command-line/affected/command-object.js +1 -1
- package/dist/src/command-line/format/format.js +2 -18
- package/dist/src/command-line/graph/graph.d.ts +31 -0
- package/dist/src/command-line/graph/graph.js +113 -20
- package/dist/src/command-line/init/implementation/add-nx-to-monorepo.js +0 -3
- package/dist/src/command-line/init/implementation/add-nx-to-nest.js +0 -3
- package/dist/src/command-line/init/implementation/add-nx-to-npm-repo.js +0 -3
- package/dist/src/command-line/init/implementation/angular/index.js +0 -3
- package/dist/src/command-line/init/implementation/angular/legacy-angular-versions.js +0 -3
- package/dist/src/command-line/init/implementation/format.js +2 -3
- package/dist/src/command-line/init/implementation/utils.d.ts +0 -1
- package/dist/src/command-line/init/implementation/utils.js +6 -9
- package/dist/src/command-line/init/init-v2.js +0 -3
- package/dist/src/command-line/migrate/agentic/capture-generator-output.d.ts +25 -0
- package/dist/src/command-line/migrate/agentic/capture-generator-output.js +121 -5
- package/dist/src/command-line/migrate/agentic/close-agent-session.d.ts +21 -0
- package/dist/src/command-line/migrate/agentic/close-agent-session.js +126 -0
- package/dist/src/command-line/migrate/agentic/definitions.d.ts +24 -0
- package/dist/src/command-line/migrate/agentic/definitions.js +79 -20
- package/dist/src/command-line/migrate/agentic/format-command.d.ts +14 -0
- package/dist/src/command-line/migrate/agentic/format-command.js +44 -0
- package/dist/src/command-line/migrate/agentic/handoff-gitignore.d.ts +3 -3
- package/dist/src/command-line/migrate/agentic/handoff-gitignore.js +3 -3
- package/dist/src/command-line/migrate/agentic/handoff.d.ts +50 -17
- package/dist/src/command-line/migrate/agentic/handoff.js +166 -24
- package/dist/src/command-line/migrate/agentic/instruction-files.d.ts +23 -0
- package/dist/src/command-line/migrate/agentic/instruction-files.js +41 -0
- package/dist/src/command-line/migrate/agentic/master/invocations.d.ts +12 -0
- package/dist/src/command-line/migrate/agentic/master/invocations.js +54 -0
- package/dist/src/command-line/migrate/agentic/master/run-master-session.d.ts +16 -0
- package/dist/src/command-line/migrate/agentic/master/run-master-session.js +175 -0
- package/dist/src/command-line/migrate/agentic/master/spawn-master.d.ts +31 -0
- package/dist/src/command-line/migrate/agentic/master/spawn-master.js +222 -0
- package/dist/src/command-line/migrate/agentic/prompts/final-validation.d.ts +13 -0
- package/dist/src/command-line/migrate/agentic/prompts/final-validation.js +41 -0
- package/dist/src/command-line/migrate/agentic/prompts/fragments.d.ts +17 -0
- package/dist/src/command-line/migrate/agentic/prompts/fragments.js +90 -0
- package/dist/src/command-line/migrate/agentic/prompts/generic-validation.js +4 -3
- package/dist/src/command-line/migrate/agentic/prompts/system-prompt.d.ts +25 -1
- package/dist/src/command-line/migrate/agentic/prompts/system-prompt.js +57 -34
- package/dist/src/command-line/migrate/agentic/run-step.js +28 -4
- package/dist/src/command-line/migrate/agentic/runner.d.ts +3 -15
- package/dist/src/command-line/migrate/agentic/runner.js +57 -239
- package/dist/src/command-line/migrate/agentic/terminal-repair.d.ts +1 -0
- package/dist/src/command-line/migrate/agentic/terminal-repair.js +27 -0
- package/dist/src/command-line/migrate/agentic/types.d.ts +23 -8
- package/dist/src/command-line/migrate/agentic/types.js +10 -7
- package/dist/src/command-line/migrate/agentic/windows-cmd.d.ts +33 -0
- package/dist/src/command-line/migrate/agentic/windows-cmd.js +88 -0
- package/dist/src/command-line/migrate/command-object.d.ts +2 -0
- package/dist/src/command-line/migrate/command-object.js +11 -1
- package/dist/src/command-line/migrate/deferred-output.d.ts +44 -0
- package/dist/src/command-line/migrate/deferred-output.js +92 -0
- package/dist/src/command-line/migrate/execute-migration.d.ts +9 -3
- package/dist/src/command-line/migrate/execute-migration.js +53 -16
- package/dist/src/command-line/migrate/migrate-analytics.d.ts +34 -9
- package/dist/src/command-line/migrate/migrate-analytics.js +71 -10
- package/dist/src/command-line/migrate/migrate-commits.d.ts +5 -4
- package/dist/src/command-line/migrate/migrate-commits.js +16 -6
- package/dist/src/command-line/migrate/migrate-config.d.ts +5 -2
- package/dist/src/command-line/migrate/migrate-config.js +19 -11
- package/dist/src/command-line/migrate/migrate-output.d.ts +3 -7
- package/dist/src/command-line/migrate/migrate-output.js +3 -7
- package/dist/src/command-line/migrate/migrate.d.ts +3 -0
- package/dist/src/command-line/migrate/migrate.js +183 -46
- package/dist/src/command-line/migrate/resolve-package-version.js +2 -19
- package/dist/src/command-line/migrate/run/agent-output.d.ts +11 -0
- package/dist/src/command-line/migrate/run/agent-output.js +21 -2
- package/dist/src/command-line/migrate/run/agent-work-payload.d.ts +37 -0
- package/dist/src/command-line/migrate/run/agent-work-payload.js +156 -0
- package/dist/src/command-line/migrate/run/atomic-write.d.ts +8 -0
- package/dist/src/command-line/migrate/run/atomic-write.js +17 -0
- package/dist/src/command-line/migrate/run/broker.d.ts +150 -0
- package/dist/src/command-line/migrate/run/broker.js +568 -0
- package/dist/src/command-line/migrate/run/clean-retry.d.ts +12 -0
- package/dist/src/command-line/migrate/run/clean-retry.js +99 -0
- package/dist/src/command-line/migrate/run/existing-run-report.d.ts +55 -0
- package/dist/src/command-line/migrate/run/existing-run-report.js +227 -0
- package/dist/src/command-line/migrate/run/give-up.d.ts +41 -0
- package/dist/src/command-line/migrate/run/give-up.js +148 -0
- package/dist/src/command-line/migrate/run/index.d.ts +9 -6
- package/dist/src/command-line/migrate/run/index.js +21 -2
- package/dist/src/command-line/migrate/run/issues.d.ts +127 -0
- package/dist/src/command-line/migrate/run/issues.js +1121 -0
- package/dist/src/command-line/migrate/run/orchestrator.d.ts +59 -1
- package/dist/src/command-line/migrate/run/orchestrator.js +1529 -457
- package/dist/src/command-line/migrate/run/run-id.d.ts +0 -8
- package/dist/src/command-line/migrate/run/run-id.js +0 -30
- package/dist/src/command-line/migrate/run/run-state.d.ts +77 -17
- package/dist/src/command-line/migrate/run/run-state.js +263 -32
- package/dist/src/command-line/migrate/run/runbook.d.ts +18 -0
- package/dist/src/command-line/migrate/run/runbook.js +118 -0
- package/dist/src/command-line/migrate/run/state-lock.d.ts +33 -2
- package/dist/src/command-line/migrate/run/state-lock.js +128 -2
- package/dist/src/command-line/migrate/run/state-machine.d.ts +50 -1
- package/dist/src/command-line/migrate/run/state-machine.js +339 -26
- package/dist/src/command-line/migrate/run/util.d.ts +3 -1
- package/dist/src/command-line/migrate/run/util.js +24 -3
- package/dist/src/command-line/migrate/run/worker.js +290 -129
- package/dist/src/command-line/migrate/step-actions.d.ts +1 -1
- package/dist/src/command-line/migrate/step-actions.js +7 -1
- package/dist/src/command-line/migrate/text.d.ts +6 -0
- package/dist/src/command-line/migrate/text.js +25 -0
- package/dist/src/command-line/migrate/version-skew-guard.js +2 -0
- package/dist/src/command-line/nx-cloud/connect/connect-to-nx-cloud.js +5 -11
- package/dist/src/command-line/release/publish.js +11 -8
- package/dist/src/command-line/release/utils/get-touched-projects-for-group.js +3 -3
- package/dist/src/command-line/release/utils/release-graph.js +1 -1
- package/dist/src/command-line/release/utils/remote-release-clients/github.js +5 -8
- package/dist/src/command-line/release/utils/remote-release-clients/gitlab.js +3 -3
- package/dist/src/command-line/release/utils/remote-release-clients/remote-release-client.d.ts +4 -2
- package/dist/src/command-line/release/utils/remote-release-clients/remote-release-client.js +37 -3
- package/dist/src/command-line/release/version/version-actions.d.ts +3 -0
- package/dist/src/command-line/reset/reset.js +10 -4
- package/dist/src/command-line/run/run-one.js +5 -1
- package/dist/src/command-line/run-many/run-many.js +6 -12
- package/dist/src/command-line/show/command-object.js +1 -1
- package/dist/src/command-line/show/projects.js +52 -1
- package/dist/src/command-line/yargs-utils/shared-options.d.ts +5 -1
- package/dist/src/command-line/yargs-utils/shared-options.js +38 -4
- package/dist/src/config/task-graph.d.ts +1 -1
- package/dist/src/config/workspace-json-project-json.d.ts +23 -1
- package/dist/src/core/graph/main.js +1 -1
- package/dist/src/core/graph/runtime.js +1 -1
- package/dist/src/core/graph/styles.js +1 -1
- package/dist/src/daemon/client/client.d.ts +14 -8
- package/dist/src/daemon/client/client.js +41 -12
- package/dist/src/daemon/message-types/get-plugin-capabilities.d.ts +5 -0
- package/dist/src/daemon/message-types/get-plugin-capabilities.js +11 -0
- package/dist/src/daemon/message-types/run-tasks-execution-hooks.d.ts +3 -2
- package/dist/src/daemon/message-types/select-affected-tasks.d.ts +21 -0
- package/dist/src/daemon/message-types/select-affected-tasks.js +11 -0
- package/dist/src/daemon/message-types/ultracache-configuration-version.d.ts +8 -0
- package/dist/src/daemon/message-types/ultracache-configuration-version.js +2 -0
- package/dist/src/daemon/server/dotenv-graph-changes.d.ts +1 -1
- package/dist/src/daemon/server/dotenv-graph-changes.js +2 -2
- package/dist/src/daemon/server/handle-get-plugin-capabilities.d.ts +2 -0
- package/dist/src/daemon/server/handle-get-plugin-capabilities.js +13 -0
- package/dist/src/daemon/server/handle-hash-tasks.d.ts +10 -2
- package/dist/src/daemon/server/handle-hash-tasks.js +18 -3
- package/dist/src/daemon/server/handle-select-affected-tasks.d.ts +3 -0
- package/dist/src/daemon/server/handle-select-affected-tasks.js +26 -0
- package/dist/src/daemon/server/handle-tasks-execution-hooks.d.ts +3 -2
- package/dist/src/daemon/server/{handle-outputs-changes.d.ts → handle-watch-events.d.ts} +4 -4
- package/dist/src/daemon/server/{handle-outputs-changes.js → handle-watch-events.js} +36 -37
- package/dist/src/daemon/server/outputs-tracking.d.ts +7 -19
- package/dist/src/daemon/server/outputs-tracking.js +7 -107
- package/dist/src/daemon/server/planning-context.d.ts +8 -0
- package/dist/src/daemon/server/planning-context.js +18 -0
- package/dist/src/daemon/server/project-graph-incremental-recomputation.d.ts +22 -7
- package/dist/src/daemon/server/project-graph-incremental-recomputation.js +104 -74
- package/dist/src/daemon/server/restart-checks.d.ts +22 -0
- package/dist/src/daemon/server/restart-checks.js +77 -0
- package/dist/src/daemon/server/server.d.ts +1 -0
- package/dist/src/daemon/server/server.js +54 -30
- package/dist/src/daemon/server/shutdown-utils.d.ts +0 -5
- package/dist/src/daemon/server/shutdown-utils.js +3 -26
- package/dist/src/daemon/server/ultracache-configuration-state.d.ts +7 -0
- package/dist/src/daemon/server/ultracache-configuration-state.js +36 -0
- package/dist/src/devkit-internals.d.ts +3 -1
- package/dist/src/devkit-internals.js +8 -3
- package/dist/src/executors/run-commands/run-commands.impl.d.ts +2 -1
- package/dist/src/executors/run-commands/run-commands.impl.js +19 -5
- package/dist/src/executors/run-commands/running-tasks.d.ts +5 -4
- package/dist/src/executors/run-commands/running-tasks.js +13 -13
- package/dist/src/hasher/create-task-hasher.d.ts +8 -1
- package/dist/src/hasher/create-task-hasher.js +13 -3
- package/dist/src/hasher/hash-plan-inspector.js +2 -2
- package/dist/src/hasher/hash-task.d.ts +2 -2
- package/dist/src/hasher/hash-task.js +28 -17
- package/dist/src/hasher/native-task-hasher-impl.d.ts +20 -4
- package/dist/src/hasher/native-task-hasher-impl.js +75 -9
- package/dist/src/hasher/task-hasher.d.ts +24 -7
- package/dist/src/hasher/task-hasher.js +27 -8
- package/dist/src/hasher/task-planning-context.d.ts +13 -0
- package/dist/src/hasher/task-planning-context.js +12 -0
- package/dist/src/native/index.d.ts +582 -21
- package/dist/src/native/index.js +3 -3
- package/dist/src/native/native-bindings.js +13 -1
- package/dist/src/native/nx.wasm32-wasi.debug.wasm +0 -0
- package/dist/src/native/nx.wasm32-wasi.wasm +0 -0
- package/dist/src/native/transform-objects.d.ts +11 -2
- package/dist/src/native/transform-objects.js +46 -0
- package/dist/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +15 -8
- package/dist/src/nx-cloud/update-manager.d.ts +3 -0
- package/dist/src/nx-cloud/update-manager.js +19 -13
- package/dist/src/nx-cloud/utilities/client.d.ts +1 -1
- package/dist/src/nx-cloud/utilities/client.js +1 -1
- package/dist/src/nx-cloud/utilities/is-workspace-claimed.js +2 -1
- package/dist/src/nx-cloud/utilities/nx-cloud-http-client.d.ts +5 -0
- package/dist/src/nx-cloud/utilities/nx-cloud-http-client.js +16 -0
- package/dist/src/nx-cloud/utilities/url-shorten.js +17 -10
- package/dist/src/plugins/js/index.js +45 -64
- package/dist/src/plugins/js/lock-file/lock-file.d.ts +4 -4
- package/dist/src/plugins/js/lock-file/lock-file.js +6 -7
- package/dist/src/plugins/js/lock-file/pnpm-parser.js +1 -1
- package/dist/src/plugins/js/lock-file/utils/pnpm-normalizer.d.ts +2 -0
- package/dist/src/plugins/js/lock-file/utils/pnpm-normalizer.js +22 -0
- package/dist/src/plugins/js/project-graph/affected/lock-file-changes.d.ts +10 -2
- package/dist/src/plugins/js/project-graph/affected/lock-file-changes.js +51 -29
- package/dist/src/plugins/js/project-graph/affected/npm-packages.d.ts +10 -2
- package/dist/src/plugins/js/project-graph/affected/npm-packages.js +32 -11
- package/dist/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +22 -18
- package/dist/src/plugins/js/utils/register.js +13 -4
- package/dist/src/plugins/package-json/create-nodes.d.ts +2 -2
- package/dist/src/plugins/package-json/create-nodes.js +13 -13
- package/dist/src/project-graph/affected/affected-project-graph-models.d.ts +14 -0
- package/dist/src/project-graph/affected/affected-project-graph.js +5 -18
- package/dist/src/project-graph/affected/affected-projects.d.ts +7 -0
- package/dist/src/project-graph/affected/affected-projects.js +42 -0
- package/dist/src/project-graph/affected/affected-reasons.d.ts +116 -0
- package/dist/src/project-graph/affected/affected-reasons.js +459 -0
- package/dist/src/project-graph/affected/affected-tasks.d.ts +103 -0
- package/dist/src/project-graph/affected/affected-tasks.js +386 -0
- package/dist/src/project-graph/affected/print-explanation.d.ts +11 -0
- package/dist/src/project-graph/affected/print-explanation.js +44 -0
- package/dist/src/project-graph/error-types.d.ts +5 -0
- package/dist/src/project-graph/error-types.js +44 -5
- package/dist/src/project-graph/file-utils.d.ts +2 -0
- package/dist/src/project-graph/file-utils.js +12 -3
- package/dist/src/project-graph/nx-deps-cache.d.ts +5 -2
- package/dist/src/project-graph/nx-deps-cache.js +4 -4
- package/dist/src/project-graph/plugins/get-plugins.d.ts +3 -1
- package/dist/src/project-graph/plugins/get-plugins.js +60 -82
- package/dist/src/project-graph/plugins/in-process-loader.d.ts +1 -1
- package/dist/src/project-graph/plugins/in-process-loader.js +1 -4
- package/dist/src/project-graph/plugins/isolation/index.d.ts +1 -1
- package/dist/src/project-graph/plugins/isolation/index.js +3 -1
- package/dist/src/project-graph/plugins/isolation/isolated-plugin.d.ts +8 -0
- package/dist/src/project-graph/plugins/isolation/isolated-plugin.js +42 -6
- package/dist/src/project-graph/plugins/isolation/load-isolated-plugin.d.ts +10 -1
- package/dist/src/project-graph/plugins/isolation/load-isolated-plugin.js +67 -17
- package/dist/src/project-graph/plugins/isolation/messaging.d.ts +3 -2
- package/dist/src/project-graph/plugins/isolation/plugin-worker.js +5 -1
- package/dist/src/project-graph/plugins/loaded-nx-plugin.d.ts +5 -2
- package/dist/src/project-graph/plugins/loaded-nx-plugin.js +14 -1
- package/dist/src/project-graph/plugins/nx-plugin-capabilities.d.ts +6 -0
- package/dist/src/project-graph/plugins/nx-plugin-capabilities.js +28 -0
- package/dist/src/project-graph/plugins/task-results-stub.d.ts +50 -0
- package/dist/src/project-graph/plugins/task-results-stub.js +111 -0
- package/dist/src/project-graph/plugins/tasks-execution-hooks.d.ts +3 -2
- package/dist/src/project-graph/plugins/tasks-execution-hooks.js +14 -1
- package/dist/src/project-graph/project-graph.js +43 -42
- package/dist/src/project-graph/utils/project-configuration/target-merging.js +67 -0
- package/dist/src/project-graph/utils/project-configuration/target-normalization.js +83 -0
- package/dist/src/project-graph/utils/project-configuration/utils.d.ts +1 -0
- package/dist/src/project-graph/utils/project-configuration/utils.js +1 -0
- package/dist/src/tasks-runner/batch/run-batch.js +15 -0
- package/dist/src/tasks-runner/cache.d.ts +37 -2
- package/dist/src/tasks-runner/cache.js +42 -1
- package/dist/src/tasks-runner/create-task-graph.d.ts +24 -1
- package/dist/src/tasks-runner/create-task-graph.js +57 -2
- package/dist/src/tasks-runner/default-tasks-runner.js +1 -1
- package/dist/src/tasks-runner/forked-process-task-runner.d.ts +1 -1
- package/dist/src/tasks-runner/forked-process-task-runner.js +11 -10
- package/dist/src/tasks-runner/init-tasks-runner.d.ts +7 -2
- package/dist/src/tasks-runner/init-tasks-runner.js +15 -7
- package/dist/src/tasks-runner/is-tui-enabled.js +4 -3
- package/dist/src/tasks-runner/life-cycle.d.ts +7 -0
- package/dist/src/tasks-runner/life-cycle.js +7 -0
- package/dist/src/tasks-runner/life-cycles/summary-terminal-output-life-cycle.d.ts +35 -0
- package/dist/src/tasks-runner/life-cycles/summary-terminal-output-life-cycle.js +146 -0
- package/dist/src/tasks-runner/prune-task-graph.d.ts +17 -0
- package/dist/src/tasks-runner/prune-task-graph.js +45 -0
- package/dist/src/tasks-runner/run-command.d.ts +41 -5
- package/dist/src/tasks-runner/run-command.js +98 -22
- package/dist/src/tasks-runner/running-tasks/batch-process.d.ts +93 -19
- package/dist/src/tasks-runner/running-tasks/batch-process.js +184 -88
- package/dist/src/tasks-runner/task-io-service.d.ts +11 -3
- package/dist/src/tasks-runner/task-io-service.js +14 -5
- package/dist/src/tasks-runner/task-orchestrator.d.ts +71 -4
- package/dist/src/tasks-runner/task-orchestrator.js +266 -66
- package/dist/src/tasks-runner/tasks-runner.d.ts +2 -0
- package/dist/src/tasks-runner/terminal-output-path.d.ts +11 -0
- package/dist/src/tasks-runner/terminal-output-path.js +18 -0
- package/dist/src/tasks-runner/utils.d.ts +5 -0
- package/dist/src/tasks-runner/utils.js +14 -2
- package/dist/src/ultracache/config.d.ts +21 -0
- package/dist/src/ultracache/config.js +29 -0
- package/dist/src/ultracache/fetch.d.ts +21 -0
- package/dist/src/ultracache/fetch.js +43 -0
- package/dist/src/ultracache/overrides.d.ts +17 -0
- package/dist/src/ultracache/overrides.js +61 -0
- package/dist/src/ultracache/report.d.ts +13 -0
- package/dist/src/ultracache/report.js +62 -0
- package/dist/src/ultracache/store.d.ts +41 -0
- package/dist/src/ultracache/store.js +158 -0
- package/dist/src/utils/ab-testing.d.ts +4 -1
- package/dist/src/utils/ab-testing.js +22 -19
- package/dist/src/utils/chunkify.d.ts +1 -7
- package/dist/src/utils/chunkify.js +2 -8
- package/dist/src/utils/command-line-utils.d.ts +20 -0
- package/dist/src/utils/command-line-utils.js +10 -3
- package/dist/src/utils/create-cli-options.d.ts +6 -0
- package/dist/src/utils/create-cli-options.js +29 -0
- package/dist/src/utils/db-connection.d.ts +2 -0
- package/dist/src/utils/db-connection.js +2 -0
- package/dist/src/utils/formatters/index.d.ts +6 -0
- package/dist/src/utils/formatters/index.js +5 -0
- package/dist/src/utils/formatters/prettier.d.ts +0 -8
- package/dist/src/utils/formatters/prettier.js +4 -26
- package/dist/src/utils/git-utils.d.ts +19 -0
- package/dist/src/utils/git-utils.js +97 -39
- package/dist/src/utils/handle-errors.js +5 -43
- package/dist/src/utils/http-client.d.ts +27 -0
- package/dist/src/utils/http-client.js +193 -0
- package/dist/src/utils/installed-nx-version.js +2 -48
- package/dist/src/utils/json-diff.d.ts +4 -2
- package/dist/src/utils/json-diff.js +6 -94
- package/dist/src/utils/min-release-age/packument.js +1 -1
- package/dist/src/utils/nx-cloud-utils.d.ts +2 -0
- package/dist/src/utils/nx-cloud-utils.js +6 -1
- package/dist/src/utils/output.d.ts +22 -3
- package/dist/src/utils/output.js +28 -5
- package/dist/src/utils/package-json.d.ts +25 -0
- package/dist/src/utils/package-json.js +49 -6
- package/dist/src/utils/package-manager.d.ts +6 -0
- package/dist/src/utils/package-manager.js +10 -0
- package/dist/src/utils/plugins/plugin-capabilities.js +7 -2
- package/dist/src/utils/project-graph-utils.d.ts +2 -0
- package/dist/src/utils/project-graph-utils.js +12 -0
- package/dist/src/utils/provenance.js +20 -4
- package/dist/src/utils/serialize-overrides-into-command-line.js +2 -4
- package/dist/src/utils/workspace-context.d.ts +51 -3
- package/dist/src/utils/workspace-context.js +174 -10
- package/package.json +38 -100
- package/schemas/nx-schema.json +38 -0
- package/schemas/project-schema.json +35 -0
- package/dist/src/daemon/server/file-watching/route-workspace-changes.d.ts +0 -9
- package/dist/src/daemon/server/file-watching/route-workspace-changes.js +0 -76
- package/dist/src/daemon/server/watcher.d.ts +0 -18
- package/dist/src/daemon/server/watcher.js +0 -126
- package/dist/src/nx-cloud/utilities/axios.d.ts +0 -4
- package/dist/src/nx-cloud/utilities/axios.js +0 -17
- package/dist/src/project-graph/affected/locators/project-glob-changes.d.ts +0 -2
- package/dist/src/project-graph/affected/locators/project-glob-changes.js +0 -47
- package/dist/src/project-graph/affected/locators/workspace-json-changes.d.ts +0 -4
- package/dist/src/project-graph/affected/locators/workspace-json-changes.js +0 -47
- package/dist/src/project-graph/affected/locators/workspace-projects.d.ts +0 -3
- package/dist/src/project-graph/affected/locators/workspace-projects.js +0 -74
- package/dist/src/utils/collapse-expanded-outputs.d.ts +0 -10
- package/dist/src/utils/collapse-expanded-outputs.js +0 -72
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/nx",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.3.0-depup.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration. (with updated dependencies)",
|
|
6
6
|
"repository": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"dist/bin",
|
|
13
|
+
"dist/nx-cloud-internals.*",
|
|
13
14
|
"dist/plugins",
|
|
14
15
|
"dist/presets",
|
|
15
16
|
"dist/release",
|
|
@@ -58,25 +59,21 @@
|
|
|
58
59
|
"@clack/prompts": "^1.8.1",
|
|
59
60
|
"@emnapi/core": "^1.11.3",
|
|
60
61
|
"@emnapi/runtime": "^1.11.3",
|
|
61
|
-
"@emnapi/wasi-threads": "^2.
|
|
62
|
+
"@emnapi/wasi-threads": "^2.2.0",
|
|
62
63
|
"@jest/diff-sequences": "^30.5.0",
|
|
63
|
-
"@napi-rs/wasm-runtime": "^1.2.
|
|
64
|
+
"@napi-rs/wasm-runtime": "^1.2.5",
|
|
64
65
|
"@tybys/wasm-util": "^0.10.4",
|
|
65
66
|
"@yarnpkg/lockfile": "1.1.0",
|
|
66
67
|
"@zkochan/js-yaml": "^0.0.11",
|
|
67
|
-
"agent-base": "^9.0.0",
|
|
68
68
|
"ansi-regex": "^6.4.0",
|
|
69
69
|
"ansi-styles": "^7.0.0",
|
|
70
70
|
"argparse": "^3.0.2",
|
|
71
|
-
"asynckit": "^0.5.0",
|
|
72
|
-
"axios": "^1.20.0",
|
|
73
71
|
"balanced-match": "^4.0.4",
|
|
74
72
|
"base64-js": "1.5.1",
|
|
75
73
|
"bl": "^7.0.12",
|
|
76
|
-
"brace-expansion": "
|
|
74
|
+
"brace-expansion": "5.0.12",
|
|
77
75
|
"buffer": "^6.0.3",
|
|
78
76
|
"bundle-name": "^4.1.1",
|
|
79
|
-
"call-bind-apply-helpers": "1.0.2",
|
|
80
77
|
"chalk": "^6.0.1",
|
|
81
78
|
"cli-cursor": "^5.0.0",
|
|
82
79
|
"cli-spinners": "^3.4.0",
|
|
@@ -84,43 +81,24 @@
|
|
|
84
81
|
"clone": "^2.1.2",
|
|
85
82
|
"color-convert": "^3.1.3",
|
|
86
83
|
"color-name": "^2.1.1",
|
|
87
|
-
"combined-stream": "1.0.8",
|
|
88
|
-
"debug": "4.4.3",
|
|
89
84
|
"default-browser": "^5.5.1",
|
|
90
85
|
"default-browser-id": "^5.0.1",
|
|
91
86
|
"defaults": "^3.0.0",
|
|
92
87
|
"define-lazy-prop": "3.0.0",
|
|
93
|
-
"
|
|
94
|
-
"dotenv": "^18.0.5",
|
|
88
|
+
"dotenv": "^18.0.6",
|
|
95
89
|
"dotenv-expand": "^1000.0.0",
|
|
96
|
-
"dunder-proto": "1.0.1",
|
|
97
90
|
"ejs": "^7.0.1",
|
|
98
91
|
"emoji-regex": "^11.0.0",
|
|
99
92
|
"end-of-stream": "1.4.5",
|
|
100
|
-
"es-define-property": "1.0.1",
|
|
101
|
-
"es-errors": "1.3.0",
|
|
102
|
-
"es-object-atoms": "^1.1.2",
|
|
103
|
-
"es-set-tostringtag": "2.1.0",
|
|
104
93
|
"escalade": "3.2.0",
|
|
105
94
|
"escape-string-regexp": "^5.0.0",
|
|
106
95
|
"fast-string-truncated-width": "3.0.3",
|
|
107
96
|
"fast-string-width": "3.0.2",
|
|
108
97
|
"fast-wrap-ansi": "^0.2.2",
|
|
109
98
|
"figures": "^6.1.0",
|
|
110
|
-
"flat": "^6.0.1",
|
|
111
|
-
"follow-redirects": "^1.16.1",
|
|
112
|
-
"form-data": "4.0.6",
|
|
113
99
|
"fs-constants": "1.0.0",
|
|
114
|
-
"function-bind": "1.1.2",
|
|
115
100
|
"get-caller-file": "2.0.5",
|
|
116
|
-
"get-intrinsic": "1.3.0",
|
|
117
|
-
"get-proto": "1.0.1",
|
|
118
|
-
"gopd": "1.2.0",
|
|
119
101
|
"has-flag": "^5.0.1",
|
|
120
|
-
"has-symbols": "1.1.0",
|
|
121
|
-
"has-tostringtag": "1.0.2",
|
|
122
|
-
"hasown": "2.0.4",
|
|
123
|
-
"https-proxy-agent": "^9.1.0",
|
|
124
102
|
"ieee754": "1.2.1",
|
|
125
103
|
"ignore": "^7.0.12",
|
|
126
104
|
"inherits": "2.0.4",
|
|
@@ -135,13 +113,9 @@
|
|
|
135
113
|
"jsonc-parser": "3.3.1",
|
|
136
114
|
"lines-and-columns": "^2.0.4",
|
|
137
115
|
"log-symbols": "^7.0.1",
|
|
138
|
-
"math-intrinsics": "1.1.0",
|
|
139
|
-
"mime-db": "^1.54.0",
|
|
140
|
-
"mime-types": "^3.0.2",
|
|
141
116
|
"mimic-fn": "^5.0.0",
|
|
142
117
|
"minimatch": "^10.2.6",
|
|
143
118
|
"minimist": "1.2.8",
|
|
144
|
-
"ms": "2.1.3",
|
|
145
119
|
"npm-run-path": "^6.0.0",
|
|
146
120
|
"once": "1.4.0",
|
|
147
121
|
"onetime": "^8.0.0",
|
|
@@ -149,17 +123,16 @@
|
|
|
149
123
|
"ora": "^9.4.1",
|
|
150
124
|
"path-key": "^4.0.0",
|
|
151
125
|
"picocolors": "1.1.1",
|
|
152
|
-
"proxy-from-env": "2.1.0",
|
|
153
126
|
"readable-stream": "^4.7.0",
|
|
154
127
|
"require-directory": "2.1.1",
|
|
155
128
|
"resolve.exports": "2.0.3",
|
|
156
129
|
"restore-cursor": "^5.1.0",
|
|
157
130
|
"run-applescript": "^7.1.0",
|
|
158
131
|
"safe-buffer": "5.2.1",
|
|
159
|
-
"semver": "
|
|
132
|
+
"semver": "7.8.5",
|
|
160
133
|
"signal-exit": "^4.1.0",
|
|
161
134
|
"sisteransi": "^2.0.0",
|
|
162
|
-
"smol-toml": "
|
|
135
|
+
"smol-toml": "1.9.0",
|
|
163
136
|
"string-width": "^8.3.0",
|
|
164
137
|
"string_decoder": "1.3.0",
|
|
165
138
|
"strip-ansi": "^7.2.0",
|
|
@@ -169,6 +142,7 @@
|
|
|
169
142
|
"tmp": "0.2.7",
|
|
170
143
|
"tsconfig-paths": "4.2.0",
|
|
171
144
|
"tslib": "2.8.1",
|
|
145
|
+
"undici": "^8.11.2",
|
|
172
146
|
"util-deprecate": "1.0.2",
|
|
173
147
|
"wcwidth": "1.0.1",
|
|
174
148
|
"which": "^7.0.0",
|
|
@@ -192,16 +166,16 @@
|
|
|
192
166
|
}
|
|
193
167
|
},
|
|
194
168
|
"optionalDependencies": {
|
|
195
|
-
"@nx/nx-darwin-arm64": "23.
|
|
196
|
-
"@nx/nx-darwin-x64": "23.
|
|
197
|
-
"@nx/nx-freebsd-x64": "23.
|
|
198
|
-
"@nx/nx-linux-arm-gnueabihf": "23.
|
|
199
|
-
"@nx/nx-linux-arm64-gnu": "23.
|
|
200
|
-
"@nx/nx-linux-arm64-musl": "23.
|
|
201
|
-
"@nx/nx-linux-x64-gnu": "23.
|
|
202
|
-
"@nx/nx-linux-x64-musl": "23.
|
|
203
|
-
"@nx/nx-win32-arm64-msvc": "23.
|
|
204
|
-
"@nx/nx-win32-x64-msvc": "23.
|
|
169
|
+
"@nx/nx-darwin-arm64": "23.3.0",
|
|
170
|
+
"@nx/nx-darwin-x64": "23.3.0",
|
|
171
|
+
"@nx/nx-freebsd-x64": "23.3.0",
|
|
172
|
+
"@nx/nx-linux-arm-gnueabihf": "23.3.0",
|
|
173
|
+
"@nx/nx-linux-arm64-gnu": "23.3.0",
|
|
174
|
+
"@nx/nx-linux-arm64-musl": "23.3.0",
|
|
175
|
+
"@nx/nx-linux-x64-gnu": "23.3.0",
|
|
176
|
+
"@nx/nx-linux-x64-musl": "23.3.0",
|
|
177
|
+
"@nx/nx-win32-arm64-msvc": "23.3.0",
|
|
178
|
+
"@nx/nx-win32-x64-msvc": "23.3.0"
|
|
205
179
|
},
|
|
206
180
|
"nx-migrations": {
|
|
207
181
|
"migrations": "./migrations.json",
|
|
@@ -283,6 +257,9 @@
|
|
|
283
257
|
},
|
|
284
258
|
"typesVersions": {
|
|
285
259
|
"*": {
|
|
260
|
+
"nx-cloud-internals": [
|
|
261
|
+
"dist/nx-cloud-internals.d.ts"
|
|
262
|
+
],
|
|
286
263
|
"bin/*": [
|
|
287
264
|
"dist/bin/*.d.ts"
|
|
288
265
|
],
|
|
@@ -371,6 +348,11 @@
|
|
|
371
348
|
},
|
|
372
349
|
"./package.json": "./package.json",
|
|
373
350
|
"./package": "./package.json",
|
|
351
|
+
"./nx-cloud-internals": {
|
|
352
|
+
"@nx/nx-source": "./nx-cloud-internals.ts",
|
|
353
|
+
"types": "./dist/nx-cloud-internals.d.ts",
|
|
354
|
+
"default": "./dist/nx-cloud-internals.js"
|
|
355
|
+
},
|
|
374
356
|
"./migrations.json": "./migrations.json",
|
|
375
357
|
"./migrations": "./migrations.json",
|
|
376
358
|
"./generators.json": "./generators.json",
|
|
@@ -566,7 +548,7 @@
|
|
|
566
548
|
},
|
|
567
549
|
"@emnapi/wasi-threads": {
|
|
568
550
|
"from": "1.0.4",
|
|
569
|
-
"to": "^2.
|
|
551
|
+
"to": "^2.2.0"
|
|
570
552
|
},
|
|
571
553
|
"@jest/diff-sequences": {
|
|
572
554
|
"from": "30.0.1",
|
|
@@ -574,7 +556,7 @@
|
|
|
574
556
|
},
|
|
575
557
|
"@napi-rs/wasm-runtime": {
|
|
576
558
|
"from": "0.2.4",
|
|
577
|
-
"to": "^1.2.
|
|
559
|
+
"to": "^1.2.5"
|
|
578
560
|
},
|
|
579
561
|
"@tybys/wasm-util": {
|
|
580
562
|
"from": "0.9.0",
|
|
@@ -584,10 +566,6 @@
|
|
|
584
566
|
"from": "0.0.7",
|
|
585
567
|
"to": "^0.0.11"
|
|
586
568
|
},
|
|
587
|
-
"agent-base": {
|
|
588
|
-
"from": "6.0.2",
|
|
589
|
-
"to": "^9.0.0"
|
|
590
|
-
},
|
|
591
569
|
"ansi-regex": {
|
|
592
570
|
"from": "5.0.1",
|
|
593
571
|
"to": "^6.4.0"
|
|
@@ -600,14 +578,6 @@
|
|
|
600
578
|
"from": "2.0.1",
|
|
601
579
|
"to": "^3.0.2"
|
|
602
580
|
},
|
|
603
|
-
"asynckit": {
|
|
604
|
-
"from": "0.4.0",
|
|
605
|
-
"to": "^0.5.0"
|
|
606
|
-
},
|
|
607
|
-
"axios": {
|
|
608
|
-
"from": "1.18.1",
|
|
609
|
-
"to": "^1.20.0"
|
|
610
|
-
},
|
|
611
581
|
"balanced-match": {
|
|
612
582
|
"from": "4.0.3",
|
|
613
583
|
"to": "^4.0.4"
|
|
@@ -616,10 +586,6 @@
|
|
|
616
586
|
"from": "4.1.0",
|
|
617
587
|
"to": "^7.0.12"
|
|
618
588
|
},
|
|
619
|
-
"brace-expansion": {
|
|
620
|
-
"from": "5.0.9",
|
|
621
|
-
"to": "^5.0.12"
|
|
622
|
-
},
|
|
623
589
|
"buffer": {
|
|
624
590
|
"from": "5.7.1",
|
|
625
591
|
"to": "^6.0.3"
|
|
@@ -670,7 +636,7 @@
|
|
|
670
636
|
},
|
|
671
637
|
"dotenv": {
|
|
672
638
|
"from": "16.4.7",
|
|
673
|
-
"to": "^18.0.
|
|
639
|
+
"to": "^18.0.6"
|
|
674
640
|
},
|
|
675
641
|
"dotenv-expand": {
|
|
676
642
|
"from": "12.0.3",
|
|
@@ -684,10 +650,6 @@
|
|
|
684
650
|
"from": "8.0.0",
|
|
685
651
|
"to": "^11.0.0"
|
|
686
652
|
},
|
|
687
|
-
"es-object-atoms": {
|
|
688
|
-
"from": "1.1.1",
|
|
689
|
-
"to": "^1.1.2"
|
|
690
|
-
},
|
|
691
653
|
"escape-string-regexp": {
|
|
692
654
|
"from": "1.0.5",
|
|
693
655
|
"to": "^5.0.0"
|
|
@@ -700,24 +662,12 @@
|
|
|
700
662
|
"from": "3.2.0",
|
|
701
663
|
"to": "^6.1.0"
|
|
702
664
|
},
|
|
703
|
-
"flat": {
|
|
704
|
-
"from": "5.0.2",
|
|
705
|
-
"to": "^6.0.1"
|
|
706
|
-
},
|
|
707
|
-
"follow-redirects": {
|
|
708
|
-
"from": "1.16.0",
|
|
709
|
-
"to": "^1.16.1"
|
|
710
|
-
},
|
|
711
665
|
"has-flag": {
|
|
712
666
|
"from": "4.0.0",
|
|
713
667
|
"to": "^5.0.1"
|
|
714
668
|
},
|
|
715
|
-
"https-proxy-agent": {
|
|
716
|
-
"from": "5.0.1",
|
|
717
|
-
"to": "^9.1.0"
|
|
718
|
-
},
|
|
719
669
|
"ignore": {
|
|
720
|
-
"from": "7.0.
|
|
670
|
+
"from": "7.0.6",
|
|
721
671
|
"to": "^7.0.12"
|
|
722
672
|
},
|
|
723
673
|
"is-docker": {
|
|
@@ -752,14 +702,6 @@
|
|
|
752
702
|
"from": "4.1.0",
|
|
753
703
|
"to": "^7.0.1"
|
|
754
704
|
},
|
|
755
|
-
"mime-db": {
|
|
756
|
-
"from": "1.52.0",
|
|
757
|
-
"to": "^1.54.0"
|
|
758
|
-
},
|
|
759
|
-
"mime-types": {
|
|
760
|
-
"from": "2.1.35",
|
|
761
|
-
"to": "^3.0.2"
|
|
762
|
-
},
|
|
763
705
|
"mimic-fn": {
|
|
764
706
|
"from": "2.1.0",
|
|
765
707
|
"to": "^5.0.0"
|
|
@@ -800,10 +742,6 @@
|
|
|
800
742
|
"from": "7.0.0",
|
|
801
743
|
"to": "^7.1.0"
|
|
802
744
|
},
|
|
803
|
-
"semver": {
|
|
804
|
-
"from": "7.8.4",
|
|
805
|
-
"to": "^7.8.5"
|
|
806
|
-
},
|
|
807
745
|
"signal-exit": {
|
|
808
746
|
"from": "3.0.7",
|
|
809
747
|
"to": "^4.1.0"
|
|
@@ -812,10 +750,6 @@
|
|
|
812
750
|
"from": "1.0.5",
|
|
813
751
|
"to": "^2.0.0"
|
|
814
752
|
},
|
|
815
|
-
"smol-toml": {
|
|
816
|
-
"from": "1.6.1",
|
|
817
|
-
"to": "^1.9.0"
|
|
818
|
-
},
|
|
819
753
|
"string-width": {
|
|
820
754
|
"from": "4.2.3",
|
|
821
755
|
"to": "^8.3.0"
|
|
@@ -836,6 +770,10 @@
|
|
|
836
770
|
"from": "2.2.0",
|
|
837
771
|
"to": "^3.2.2"
|
|
838
772
|
},
|
|
773
|
+
"undici": {
|
|
774
|
+
"from": "7.29.0",
|
|
775
|
+
"to": "^8.11.2"
|
|
776
|
+
},
|
|
839
777
|
"which": {
|
|
840
778
|
"from": "3.0.1",
|
|
841
779
|
"to": "^7.0.0"
|
|
@@ -857,10 +795,10 @@
|
|
|
857
795
|
"to": "^22.0.0"
|
|
858
796
|
}
|
|
859
797
|
},
|
|
860
|
-
"depsUpdated":
|
|
798
|
+
"depsUpdated": 66,
|
|
861
799
|
"originalPackage": "nx",
|
|
862
|
-
"originalVersion": "23.
|
|
863
|
-
"processedAt": "2026-10-
|
|
800
|
+
"originalVersion": "23.3.0",
|
|
801
|
+
"processedAt": "2026-10-07T16:13:03.677Z",
|
|
864
802
|
"smokeTest": "failed"
|
|
865
803
|
}
|
|
866
804
|
}
|
package/schemas/nx-schema.json
CHANGED
|
@@ -664,6 +664,10 @@
|
|
|
664
664
|
"dependencies": {
|
|
665
665
|
"type": "boolean",
|
|
666
666
|
"description": "Include files matching the fileset for all the project dependencies of this target."
|
|
667
|
+
},
|
|
668
|
+
"includeIgnored": {
|
|
669
|
+
"type": "boolean",
|
|
670
|
+
"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."
|
|
667
671
|
}
|
|
668
672
|
},
|
|
669
673
|
"required": ["fileset"],
|
|
@@ -920,6 +924,9 @@
|
|
|
920
924
|
"cache": {
|
|
921
925
|
"$ref": "#/definitions/targetDefaultsConfig/properties/cache"
|
|
922
926
|
},
|
|
927
|
+
"ultracache": {
|
|
928
|
+
"$ref": "#/definitions/targetDefaultsConfig/properties/ultracache"
|
|
929
|
+
},
|
|
923
930
|
"syncGenerators": {
|
|
924
931
|
"$ref": "#/definitions/targetDefaultsConfig/properties/syncGenerators"
|
|
925
932
|
}
|
|
@@ -1046,6 +1053,37 @@
|
|
|
1046
1053
|
"type": "boolean",
|
|
1047
1054
|
"description": "Specifies if the given target should be cacheable"
|
|
1048
1055
|
},
|
|
1056
|
+
"ultracache": {
|
|
1057
|
+
"type": "object",
|
|
1058
|
+
"description": "Configures ultracache for tasks of this target. Nx Cloud only.",
|
|
1059
|
+
"properties": {
|
|
1060
|
+
"...": {
|
|
1061
|
+
"type": "boolean",
|
|
1062
|
+
"const": true,
|
|
1063
|
+
"description": "Merges with the inherited ultracache configuration instead of replacing it. Keys before this token defer to the inherited value; keys after it win."
|
|
1064
|
+
},
|
|
1065
|
+
"mode": {
|
|
1066
|
+
"enum": ["on", "warn", "error", "off"],
|
|
1067
|
+
"default": "on",
|
|
1068
|
+
"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
|
+
},
|
|
1070
|
+
"ignoredReads": {
|
|
1071
|
+
"type": "array",
|
|
1072
|
+
"items": {
|
|
1073
|
+
"type": "string"
|
|
1074
|
+
},
|
|
1075
|
+
"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
|
+
},
|
|
1077
|
+
"ignoredWrites": {
|
|
1078
|
+
"type": "array",
|
|
1079
|
+
"items": {
|
|
1080
|
+
"type": "string"
|
|
1081
|
+
},
|
|
1082
|
+
"description": "Workspace-relative glob patterns for writes 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 '**'."
|
|
1083
|
+
}
|
|
1084
|
+
},
|
|
1085
|
+
"additionalProperties": false
|
|
1086
|
+
},
|
|
1049
1087
|
"syncGenerators": {
|
|
1050
1088
|
"type": "array",
|
|
1051
1089
|
"items": {
|
|
@@ -138,6 +138,37 @@
|
|
|
138
138
|
"type": "boolean",
|
|
139
139
|
"description": "Specifies if the given target should be cacheable"
|
|
140
140
|
},
|
|
141
|
+
"ultracache": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"description": "Configures ultracache for tasks of this target. Nx Cloud only.",
|
|
144
|
+
"properties": {
|
|
145
|
+
"...": {
|
|
146
|
+
"type": "boolean",
|
|
147
|
+
"const": true,
|
|
148
|
+
"description": "Merges with the inherited ultracache configuration instead of replacing it. Keys before this token defer to the inherited value; keys after it win."
|
|
149
|
+
},
|
|
150
|
+
"mode": {
|
|
151
|
+
"enum": ["on", "warn", "error", "off"],
|
|
152
|
+
"default": "on",
|
|
153
|
+
"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
|
+
},
|
|
155
|
+
"ignoredReads": {
|
|
156
|
+
"type": "array",
|
|
157
|
+
"items": {
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
"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
|
+
},
|
|
162
|
+
"ignoredWrites": {
|
|
163
|
+
"type": "array",
|
|
164
|
+
"items": {
|
|
165
|
+
"type": "string"
|
|
166
|
+
},
|
|
167
|
+
"description": "Workspace-relative glob patterns for writes 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 '**'."
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"additionalProperties": false
|
|
171
|
+
},
|
|
141
172
|
"continuous": {
|
|
142
173
|
"type": "boolean",
|
|
143
174
|
"default": false,
|
|
@@ -220,6 +251,10 @@
|
|
|
220
251
|
"dependencies": {
|
|
221
252
|
"type": "boolean",
|
|
222
253
|
"description": "Include files matching the fileset for all the project dependencies of this target."
|
|
254
|
+
},
|
|
255
|
+
"includeIgnored": {
|
|
256
|
+
"type": "boolean",
|
|
257
|
+
"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."
|
|
223
258
|
}
|
|
224
259
|
},
|
|
225
260
|
"required": ["fileset"],
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { WatchEvent } from '../../../native';
|
|
2
|
-
/**
|
|
3
|
-
* Categorise a batch of watcher events by type and route them into the
|
|
4
|
-
* recomputation queue. Deletions are taken at face value; created and
|
|
5
|
-
* updated paths are stat'd to skip directories (the project graph only
|
|
6
|
-
* cares about files). A stat error means the file was unlinked between
|
|
7
|
-
* the watcher firing and us looking — drop the event.
|
|
8
|
-
*/
|
|
9
|
-
export declare function routeWorkspaceChanges(events: WatchEvent[]): void;
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.routeWorkspaceChanges = routeWorkspaceChanges;
|
|
4
|
-
const node_fs_1 = require("node:fs");
|
|
5
|
-
const node_path_1 = require("node:path");
|
|
6
|
-
const workspace_root_1 = require("../../../utils/workspace-root");
|
|
7
|
-
const logger_1 = require("../../logger");
|
|
8
|
-
const project_graph_incremental_recomputation_1 = require("../project-graph-incremental-recomputation");
|
|
9
|
-
const SUMMARY_CAP = 10;
|
|
10
|
-
function summarize(files) {
|
|
11
|
-
if (files.length === 0)
|
|
12
|
-
return '(none)';
|
|
13
|
-
if (files.length <= SUMMARY_CAP) {
|
|
14
|
-
return files.map((f) => ` - ${f}`).join('\n');
|
|
15
|
-
}
|
|
16
|
-
return (files
|
|
17
|
-
.slice(0, SUMMARY_CAP)
|
|
18
|
-
.map((f) => ` - ${f}`)
|
|
19
|
-
.join('\n') + `\n ... and ${files.length - SUMMARY_CAP} more`);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Categorise a batch of watcher events by type and route them into the
|
|
23
|
-
* recomputation queue. Deletions are taken at face value; created and
|
|
24
|
-
* updated paths are stat'd to skip directories (the project graph only
|
|
25
|
-
* cares about files). A stat error means the file was unlinked between
|
|
26
|
-
* the watcher firing and us looking — drop the event.
|
|
27
|
-
*/
|
|
28
|
-
function routeWorkspaceChanges(events) {
|
|
29
|
-
logger_1.serverLogger.watcherLog(`[watcher] routeWorkspaceChanges batch: ${events.length} events: ` +
|
|
30
|
-
events.map((e) => `${e.type}:${e.path}`).join(', '));
|
|
31
|
-
const updatedFilesToHash = [];
|
|
32
|
-
const createdFilesToHash = [];
|
|
33
|
-
const deletedFiles = [];
|
|
34
|
-
const droppedDirs = [];
|
|
35
|
-
const droppedStatErrors = [];
|
|
36
|
-
for (const event of events) {
|
|
37
|
-
if (event.type === 'delete') {
|
|
38
|
-
deletedFiles.push(event.path);
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
try {
|
|
42
|
-
const s = (0, node_fs_1.statSync)((0, node_path_1.join)(workspace_root_1.workspaceRoot, event.path));
|
|
43
|
-
if (!s.isFile()) {
|
|
44
|
-
droppedDirs.push(event.path);
|
|
45
|
-
continue;
|
|
46
|
-
}
|
|
47
|
-
if (event.type === 'update') {
|
|
48
|
-
updatedFilesToHash.push(event.path);
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
createdFilesToHash.push(event.path);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
catch (e) {
|
|
55
|
-
droppedStatErrors.push(`${event.path} (${e instanceof Error ? e.message : String(e)})`);
|
|
56
|
-
// File deleted between watcher emit and stat — drop it.
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
if (createdFilesToHash.length ||
|
|
60
|
-
updatedFilesToHash.length ||
|
|
61
|
-
deletedFiles.length ||
|
|
62
|
-
droppedDirs.length ||
|
|
63
|
-
droppedStatErrors.length) {
|
|
64
|
-
logger_1.serverLogger.watcherLog(`File changes detected:\n` +
|
|
65
|
-
`Created:\n${summarize(createdFilesToHash)}\n` +
|
|
66
|
-
`Updated:\n${summarize(updatedFilesToHash)}\n` +
|
|
67
|
-
`Deleted:\n${summarize(deletedFiles)}` +
|
|
68
|
-
(droppedDirs.length
|
|
69
|
-
? `\nDropped (dirs):\n${summarize(droppedDirs)}`
|
|
70
|
-
: '') +
|
|
71
|
-
(droppedStatErrors.length
|
|
72
|
-
? `\nDropped (stat errors):\n${summarize(droppedStatErrors)}`
|
|
73
|
-
: ''));
|
|
74
|
-
}
|
|
75
|
-
(0, project_graph_incremental_recomputation_1.scheduleProjectGraphRecomputation)(createdFilesToHash, updatedFilesToHash, deletedFiles);
|
|
76
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Server } from 'net';
|
|
2
|
-
import type { WatchEvent } from '../../native';
|
|
3
|
-
export type FileWatcherCallback = (err: Error | string | null, changeEvents: WatchEvent[] | null) => Promise<void>;
|
|
4
|
-
export declare function watchWorkspace(server: Server, cb: FileWatcherCallback): Promise<any>;
|
|
5
|
-
/**
|
|
6
|
-
* Synchronously drain anything the workspace watcher has buffered and feed
|
|
7
|
-
* it through the normal change-handling pipeline. Call this before serving
|
|
8
|
-
* a cached project graph so we never return data that the watcher has
|
|
9
|
-
* already seen invalidated but hasn't flushed yet.
|
|
10
|
-
*/
|
|
11
|
-
export declare function flushPendingWorkspaceChanges(): Promise<void>;
|
|
12
|
-
export declare function watchOutputFiles(server: Server, cb: FileWatcherCallback): Promise<any>;
|
|
13
|
-
/**
|
|
14
|
-
* NOTE: An event type of "create" will also apply to the case where the user has restored
|
|
15
|
-
* an original version of a file after modifying/deleting it by using git, so we adjust
|
|
16
|
-
* our log language accordingly.
|
|
17
|
-
*/
|
|
18
|
-
export declare function convertChangeEventsToLogMessage(changeEvents: WatchEvent[]): string;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.watchWorkspace = watchWorkspace;
|
|
4
|
-
exports.flushPendingWorkspaceChanges = flushPendingWorkspaceChanges;
|
|
5
|
-
exports.watchOutputFiles = watchOutputFiles;
|
|
6
|
-
exports.convertChangeEventsToLogMessage = convertChangeEventsToLogMessage;
|
|
7
|
-
const workspace_root_1 = require("../../utils/workspace-root");
|
|
8
|
-
const path_1 = require("path");
|
|
9
|
-
const shutdown_utils_1 = require("./shutdown-utils");
|
|
10
|
-
const path_2 = require("../../utils/path");
|
|
11
|
-
const cache_1 = require("../cache");
|
|
12
|
-
const server_1 = require("./server");
|
|
13
|
-
const handle_import_1 = require("../../utils/handle-import");
|
|
14
|
-
// Captured by watchWorkspace so flushPendingWorkspaceChanges can route
|
|
15
|
-
// force-flushed events through the same handling as the async callback.
|
|
16
|
-
// Definite-assignment: dispatchWorkspaceChanges only runs after
|
|
17
|
-
// watchWorkspace has set both, so reading them as non-nullable is safe.
|
|
18
|
-
let activeServer;
|
|
19
|
-
let workspaceChangesCallback;
|
|
20
|
-
function dispatchWorkspaceChanges(events) {
|
|
21
|
-
for (const event of events) {
|
|
22
|
-
if (event.path.endsWith('.gitignore') || event.path === '.nxignore') {
|
|
23
|
-
// If the ignore files themselves have changed we need to dynamically
|
|
24
|
-
// update our cached ignoreGlobs
|
|
25
|
-
(0, shutdown_utils_1.handleServerProcessTermination)({
|
|
26
|
-
server: activeServer,
|
|
27
|
-
reason: 'Stopping the daemon the set of ignored files changed (native)',
|
|
28
|
-
sockets: server_1.openSockets,
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
return workspaceChangesCallback(null, events);
|
|
33
|
-
}
|
|
34
|
-
async function watchWorkspace(server, cb) {
|
|
35
|
-
const { Watcher } = await (0, handle_import_1.handleImport)('../../native/index.js', __dirname);
|
|
36
|
-
activeServer = server;
|
|
37
|
-
workspaceChangesCallback = cb;
|
|
38
|
-
const watcher = new Watcher(workspace_root_1.workspaceRoot);
|
|
39
|
-
watcher.watch((err, events) => {
|
|
40
|
-
if (err) {
|
|
41
|
-
return cb(err, null);
|
|
42
|
-
}
|
|
43
|
-
dispatchWorkspaceChanges(events);
|
|
44
|
-
});
|
|
45
|
-
return watcher;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Synchronously drain anything the workspace watcher has buffered and feed
|
|
49
|
-
* it through the normal change-handling pipeline. Call this before serving
|
|
50
|
-
* a cached project graph so we never return data that the watcher has
|
|
51
|
-
* already seen invalidated but hasn't flushed yet.
|
|
52
|
-
*/
|
|
53
|
-
async function flushPendingWorkspaceChanges() {
|
|
54
|
-
const watcher = (0, shutdown_utils_1.getWatcherInstance)();
|
|
55
|
-
if (!watcher)
|
|
56
|
-
return;
|
|
57
|
-
const events = watcher.forceFlushPending();
|
|
58
|
-
if (events.length === 0)
|
|
59
|
-
return;
|
|
60
|
-
await dispatchWorkspaceChanges(events);
|
|
61
|
-
}
|
|
62
|
-
async function watchOutputFiles(server, cb) {
|
|
63
|
-
const { Watcher } = await (0, handle_import_1.handleImport)('../../native/index.js', __dirname);
|
|
64
|
-
const relativeServerProcess = (0, path_2.normalizePath)((0, path_1.relative)(workspace_root_1.workspaceRoot, cache_1.serverProcessJsonPath));
|
|
65
|
-
const watcher = new Watcher(workspace_root_1.workspaceRoot, [`!${relativeServerProcess}`], false);
|
|
66
|
-
watcher.watch((err, events) => {
|
|
67
|
-
if (err) {
|
|
68
|
-
return cb(err, null);
|
|
69
|
-
}
|
|
70
|
-
for (const event of events) {
|
|
71
|
-
if (event.path == relativeServerProcess &&
|
|
72
|
-
(0, cache_1.getDaemonProcessIdSync)() !== process.pid) {
|
|
73
|
-
return (0, shutdown_utils_1.handleServerProcessTermination)({
|
|
74
|
-
server,
|
|
75
|
-
reason: 'this process is no longer the current daemon (native)',
|
|
76
|
-
sockets: server_1.openSockets,
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
if (events.length !== 0) {
|
|
81
|
-
cb(null, events);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
return watcher;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* NOTE: An event type of "create" will also apply to the case where the user has restored
|
|
88
|
-
* an original version of a file after modifying/deleting it by using git, so we adjust
|
|
89
|
-
* our log language accordingly.
|
|
90
|
-
*/
|
|
91
|
-
function convertChangeEventsToLogMessage(changeEvents) {
|
|
92
|
-
// If only a single file was changed, show the information inline
|
|
93
|
-
if (changeEvents.length === 1) {
|
|
94
|
-
const { path, type } = changeEvents[0];
|
|
95
|
-
let typeLog = 'updated';
|
|
96
|
-
switch (type) {
|
|
97
|
-
case 'create':
|
|
98
|
-
typeLog = 'created or restored';
|
|
99
|
-
break;
|
|
100
|
-
case 'update':
|
|
101
|
-
typeLog = 'modified';
|
|
102
|
-
break;
|
|
103
|
-
case 'delete':
|
|
104
|
-
typeLog = 'deleted';
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
return `${path} was ${typeLog}`;
|
|
108
|
-
}
|
|
109
|
-
let numCreatedOrRestoredFiles = 0;
|
|
110
|
-
let numModifiedFiles = 0;
|
|
111
|
-
let numDeletedFiles = 0;
|
|
112
|
-
for (const event of changeEvents) {
|
|
113
|
-
switch (event.type) {
|
|
114
|
-
case 'create':
|
|
115
|
-
numCreatedOrRestoredFiles++;
|
|
116
|
-
break;
|
|
117
|
-
case 'update':
|
|
118
|
-
numModifiedFiles++;
|
|
119
|
-
break;
|
|
120
|
-
case 'delete':
|
|
121
|
-
numDeletedFiles++;
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return `${numCreatedOrRestoredFiles} file(s) created or restored, ${numModifiedFiles} file(s) modified, ${numDeletedFiles} file(s) deleted`;
|
|
126
|
-
}
|