@ohos-ports/nx 23.2.0-beta.0 → 23.2.1-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 +13 -60
- package/local-natives.js +59 -0
- package/package.json +9 -534
- package/LICENSE +0 -22
- package/dist/bin/init-local.d.ts +0 -8
- package/dist/bin/init-local.js +0 -186
- package/dist/bin/nx-cloud.d.ts +0 -3
- package/dist/bin/nx-cloud.js +0 -47
- package/dist/bin/nx.d.ts +0 -3
- package/dist/bin/nx.js +0 -341
- package/dist/bin/post-install.d.ts +0 -1
- package/dist/bin/post-install.js +0 -52
- package/dist/bin/run-executor.d.ts +0 -1
- package/dist/bin/run-executor.js +0 -66
- package/dist/plugins/package-json.d.ts +0 -4
- package/dist/plugins/package-json.js +0 -40
- package/dist/presets/core.json +0 -1
- package/dist/presets/npm.json +0 -7
- package/dist/release/changelog-renderer/index.d.ts +0 -110
- package/dist/release/changelog-renderer/index.js +0 -381
- package/dist/release/index.d.ts +0 -4
- package/dist/release/index.js +0 -13
- package/dist/src/adapter/angular-json.d.ts +0 -10
- package/dist/src/adapter/angular-json.js +0 -129
- package/dist/src/adapter/compat.d.ts +0 -2
- package/dist/src/adapter/compat.js +0 -154
- package/dist/src/adapter/ngcli-adapter.d.ts +0 -105
- package/dist/src/adapter/ngcli-adapter.js +0 -1083
- package/dist/src/adapter/rxjs-for-await.d.ts +0 -109
- package/dist/src/adapter/rxjs-for-await.js +0 -362
- package/dist/src/ai/clone-ai-config-repo.d.ts +0 -11
- package/dist/src/ai/clone-ai-config-repo.js +0 -155
- package/dist/src/ai/configure-ai-agents-disclaimer.d.ts +0 -5
- package/dist/src/ai/configure-ai-agents-disclaimer.js +0 -31
- package/dist/src/ai/constants.d.ts +0 -46
- package/dist/src/ai/constants.js +0 -92
- package/dist/src/ai/detect-ai-agent.d.ts +0 -2
- package/dist/src/ai/detect-ai-agent.js +0 -12
- package/dist/src/ai/set-up-ai-agents/get-agent-rules.d.ts +0 -5
- package/dist/src/ai/set-up-ai-agents/get-agent-rules.js +0 -26
- package/dist/src/ai/set-up-ai-agents/schema.d.ts +0 -11
- package/dist/src/ai/set-up-ai-agents/schema.json +0 -34
- package/dist/src/ai/set-up-ai-agents/set-up-ai-agents.d.ts +0 -10
- package/dist/src/ai/set-up-ai-agents/set-up-ai-agents.js +0 -578
- package/dist/src/ai/utils.d.ts +0 -33
- package/dist/src/ai/utils.js +0 -246
- package/dist/src/analytics/analytics.d.ts +0 -16
- package/dist/src/analytics/analytics.js +0 -246
- package/dist/src/analytics/index.d.ts +0 -1
- package/dist/src/analytics/index.js +0 -12
- package/dist/src/command-line/add/add.d.ts +0 -3
- package/dist/src/command-line/add/add.js +0 -138
- package/dist/src/command-line/add/command-object.d.ts +0 -8
- package/dist/src/command-line/add/command-object.js +0 -28
- package/dist/src/command-line/add/completion.d.ts +0 -1
- package/dist/src/command-line/add/completion.js +0 -15
- package/dist/src/command-line/affected/affected.d.ts +0 -10
- package/dist/src/command-line/affected/affected.js +0 -90
- package/dist/src/command-line/affected/command-object.d.ts +0 -6
- package/dist/src/command-line/affected/command-object.js +0 -83
- package/dist/src/command-line/affected/completion.d.ts +0 -1
- package/dist/src/command-line/affected/completion.js +0 -15
- package/dist/src/command-line/ai/ai-output.d.ts +0 -46
- package/dist/src/command-line/ai/ai-output.js +0 -86
- package/dist/src/command-line/completion/argv-layout.d.ts +0 -6
- package/dist/src/command-line/completion/argv-layout.js +0 -19
- package/dist/src/command-line/completion/command-completions.d.ts +0 -19
- package/dist/src/command-line/completion/command-completions.js +0 -120
- package/dist/src/command-line/completion/command-handlers.d.ts +0 -30
- package/dist/src/command-line/completion/command-handlers.js +0 -69
- package/dist/src/command-line/completion/command-object.d.ts +0 -10
- package/dist/src/command-line/completion/command-object.js +0 -102
- package/dist/src/command-line/completion/completion-providers.d.ts +0 -21
- package/dist/src/command-line/completion/completion-providers.js +0 -194
- package/dist/src/command-line/completion/infix-targets.d.ts +0 -1
- package/dist/src/command-line/completion/infix-targets.js +0 -48
- package/dist/src/command-line/completion/metadata.d.ts +0 -22
- package/dist/src/command-line/completion/metadata.js +0 -71
- package/dist/src/command-line/completion/registrations.d.ts +0 -9
- package/dist/src/command-line/completion/registrations.js +0 -16
- package/dist/src/command-line/completion/scripts/bash.sh +0 -51
- package/dist/src/command-line/completion/scripts/fish.fish +0 -47
- package/dist/src/command-line/completion/scripts/powershell.ps1 +0 -52
- package/dist/src/command-line/completion/scripts/zsh.zsh +0 -69
- package/dist/src/command-line/completion/scripts.d.ts +0 -18
- package/dist/src/command-line/completion/scripts.js +0 -140
- package/dist/src/command-line/completion/trigger.d.ts +0 -3
- package/dist/src/command-line/completion/trigger.js +0 -21
- package/dist/src/command-line/completion/value-completions.d.ts +0 -3
- package/dist/src/command-line/completion/value-completions.js +0 -21
- package/dist/src/command-line/configure-ai-agents/command-object.d.ts +0 -8
- package/dist/src/command-line/configure-ai-agents/command-object.js +0 -59
- package/dist/src/command-line/configure-ai-agents/configure-ai-agents.d.ts +0 -3
- package/dist/src/command-line/configure-ai-agents/configure-ai-agents.js +0 -436
- package/dist/src/command-line/daemon/command-object.d.ts +0 -3
- package/dist/src/command-line/daemon/command-object.js +0 -29
- package/dist/src/command-line/daemon/daemon.d.ts +0 -2
- package/dist/src/command-line/daemon/daemon.js +0 -31
- package/dist/src/command-line/deprecated/command-objects.d.ts +0 -9
- package/dist/src/command-line/deprecated/command-objects.js +0 -48
- package/dist/src/command-line/examples.d.ts +0 -12
- package/dist/src/command-line/examples.js +0 -403
- package/dist/src/command-line/exec/command-object.d.ts +0 -2
- package/dist/src/command-line/exec/command-object.js +0 -20
- package/dist/src/command-line/exec/exec.d.ts +0 -1
- package/dist/src/command-line/exec/exec.js +0 -143
- package/dist/src/command-line/format/command-object.d.ts +0 -3
- package/dist/src/command-line/format/command-object.js +0 -58
- package/dist/src/command-line/format/format.d.ts +0 -2
- package/dist/src/command-line/format/format.js +0 -216
- package/dist/src/command-line/generate/command-object.d.ts +0 -2
- package/dist/src/command-line/generate/command-object.js +0 -67
- package/dist/src/command-line/generate/completion.d.ts +0 -1
- package/dist/src/command-line/generate/completion.js +0 -9
- package/dist/src/command-line/generate/generate.d.ts +0 -21
- package/dist/src/command-line/generate/generate.js +0 -281
- package/dist/src/command-line/generate/generator-utils.d.ts +0 -18
- package/dist/src/command-line/generate/generator-utils.js +0 -91
- package/dist/src/command-line/graph/command-object.d.ts +0 -25
- package/dist/src/command-line/graph/command-object.js +0 -76
- package/dist/src/command-line/graph/completion.d.ts +0 -1
- package/dist/src/command-line/graph/completion.js +0 -13
- package/dist/src/command-line/graph/graph.d.ts +0 -70
- package/dist/src/command-line/graph/graph.js +0 -987
- package/dist/src/command-line/import/command-object.d.ts +0 -2
- package/dist/src/command-line/import/command-object.js +0 -63
- package/dist/src/command-line/import/import.d.ts +0 -26
- package/dist/src/command-line/import/import.js +0 -590
- package/dist/src/command-line/import/utils/ai-output.d.ts +0 -93
- package/dist/src/command-line/import/utils/ai-output.js +0 -209
- package/dist/src/command-line/import/utils/merge-remote-source.d.ts +0 -2
- package/dist/src/command-line/import/utils/merge-remote-source.js +0 -14
- package/dist/src/command-line/import/utils/prepare-source-repo.d.ts +0 -2
- package/dist/src/command-line/import/utils/prepare-source-repo.js +0 -27
- package/dist/src/command-line/index.d.ts +0 -22
- package/dist/src/command-line/index.js +0 -26
- package/dist/src/command-line/init/ai-agent-prompts.d.ts +0 -2
- package/dist/src/command-line/init/ai-agent-prompts.js +0 -30
- package/dist/src/command-line/init/command-object.d.ts +0 -2
- package/dist/src/command-line/init/command-object.js +0 -118
- package/dist/src/command-line/init/configure-plugins.d.ts +0 -34
- package/dist/src/command-line/init/configure-plugins.js +0 -214
- package/dist/src/command-line/init/implementation/add-nx-to-monorepo.d.ts +0 -6
- package/dist/src/command-line/init/implementation/add-nx-to-monorepo.js +0 -122
- package/dist/src/command-line/init/implementation/add-nx-to-nest.d.ts +0 -5
- package/dist/src/command-line/init/implementation/add-nx-to-nest.js +0 -353
- package/dist/src/command-line/init/implementation/add-nx-to-npm-repo.d.ts +0 -6
- package/dist/src/command-line/init/implementation/add-nx-to-npm-repo.js +0 -70
- package/dist/src/command-line/init/implementation/add-nx-to-turborepo.d.ts +0 -4
- package/dist/src/command-line/init/implementation/add-nx-to-turborepo.js +0 -37
- package/dist/src/command-line/init/implementation/angular/index.d.ts +0 -2
- package/dist/src/command-line/init/implementation/angular/index.js +0 -130
- package/dist/src/command-line/init/implementation/angular/integrated-workspace.d.ts +0 -1
- package/dist/src/command-line/init/implementation/angular/integrated-workspace.js +0 -9
- package/dist/src/command-line/init/implementation/angular/legacy-angular-versions.d.ts +0 -2
- package/dist/src/command-line/init/implementation/angular/legacy-angular-versions.js +0 -155
- package/dist/src/command-line/init/implementation/angular/standalone-workspace.d.ts +0 -1
- package/dist/src/command-line/init/implementation/angular/standalone-workspace.js +0 -204
- package/dist/src/command-line/init/implementation/angular/types.d.ts +0 -20
- package/dist/src/command-line/init/implementation/angular/types.js +0 -2
- package/dist/src/command-line/init/implementation/check-compatible-with-plugins.d.ts +0 -15
- package/dist/src/command-line/init/implementation/check-compatible-with-plugins.js +0 -136
- package/dist/src/command-line/init/implementation/deduce-default-base.d.ts +0 -1
- package/dist/src/command-line/init/implementation/deduce-default-base.js +0 -53
- package/dist/src/command-line/init/implementation/dot-nx/add-nx-scripts.d.ts +0 -11
- package/dist/src/command-line/init/implementation/dot-nx/add-nx-scripts.js +0 -151
- package/dist/src/command-line/init/implementation/dot-nx/nxw.d.ts +0 -1
- package/dist/src/command-line/init/implementation/dot-nx/nxw.js +0 -123
- package/dist/src/command-line/init/implementation/format.d.ts +0 -18
- package/dist/src/command-line/init/implementation/format.js +0 -114
- package/dist/src/command-line/init/implementation/utils.d.ts +0 -35
- package/dist/src/command-line/init/implementation/utils.js +0 -422
- package/dist/src/command-line/init/init-v1.d.ts +0 -8
- package/dist/src/command-line/init/init-v1.js +0 -101
- package/dist/src/command-line/init/init-v2.d.ts +0 -23
- package/dist/src/command-line/init/init-v2.js +0 -622
- package/dist/src/command-line/init/utils/ai-output.d.ts +0 -72
- package/dist/src/command-line/init/utils/ai-output.js +0 -180
- package/dist/src/command-line/list/command-object.d.ts +0 -2
- package/dist/src/command-line/list/command-object.js +0 -21
- package/dist/src/command-line/list/list.d.ts +0 -15
- package/dist/src/command-line/list/list.js +0 -48
- package/dist/src/command-line/mcp/command-object.d.ts +0 -2
- package/dist/src/command-line/mcp/command-object.js +0 -29
- package/dist/src/command-line/mcp/mcp.d.ts +0 -2
- package/dist/src/command-line/mcp/mcp.js +0 -60
- package/dist/src/command-line/migrate/agentic/capture-generator-output.d.ts +0 -22
- package/dist/src/command-line/migrate/agentic/capture-generator-output.js +0 -100
- package/dist/src/command-line/migrate/agentic/cli-args.d.ts +0 -12
- package/dist/src/command-line/migrate/agentic/cli-args.js +0 -38
- package/dist/src/command-line/migrate/agentic/definitions.d.ts +0 -6
- package/dist/src/command-line/migrate/agentic/definitions.js +0 -148
- package/dist/src/command-line/migrate/agentic/detect-installed.d.ts +0 -10
- package/dist/src/command-line/migrate/agentic/detect-installed.js +0 -68
- package/dist/src/command-line/migrate/agentic/handoff-gitignore.d.ts +0 -61
- package/dist/src/command-line/migrate/agentic/handoff-gitignore.js +0 -78
- package/dist/src/command-line/migrate/agentic/handoff.d.ts +0 -69
- package/dist/src/command-line/migrate/agentic/handoff.js +0 -193
- package/dist/src/command-line/migrate/agentic/inception.d.ts +0 -9
- package/dist/src/command-line/migrate/agentic/inception.js +0 -15
- package/dist/src/command-line/migrate/agentic/print-dropped-agent-context.d.ts +0 -17
- package/dist/src/command-line/migrate/agentic/print-dropped-agent-context.js +0 -57
- 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 -66
- 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/shared-rendering.d.ts +0 -19
- package/dist/src/command-line/migrate/agentic/prompts/shared-rendering.js +0 -145
- package/dist/src/command-line/migrate/agentic/prompts/system-prompt.d.ts +0 -46
- package/dist/src/command-line/migrate/agentic/prompts/system-prompt.js +0 -90
- package/dist/src/command-line/migrate/agentic/run-step.d.ts +0 -68
- package/dist/src/command-line/migrate/agentic/run-step.js +0 -124
- package/dist/src/command-line/migrate/agentic/runner.d.ts +0 -33
- package/dist/src/command-line/migrate/agentic/runner.js +0 -444
- package/dist/src/command-line/migrate/agentic/select.d.ts +0 -24
- package/dist/src/command-line/migrate/agentic/select.js +0 -251
- package/dist/src/command-line/migrate/agentic/types.d.ts +0 -132
- package/dist/src/command-line/migrate/agentic/types.js +0 -37
- package/dist/src/command-line/migrate/command-object.d.ts +0 -53
- package/dist/src/command-line/migrate/command-object.js +0 -152
- package/dist/src/command-line/migrate/execute-migration.d.ts +0 -91
- package/dist/src/command-line/migrate/execute-migration.js +0 -474
- package/dist/src/command-line/migrate/migrate-analytics.d.ts +0 -106
- package/dist/src/command-line/migrate/migrate-analytics.js +0 -317
- package/dist/src/command-line/migrate/migrate-commits.d.ts +0 -80
- package/dist/src/command-line/migrate/migrate-commits.js +0 -217
- package/dist/src/command-line/migrate/migrate-config.d.ts +0 -29
- package/dist/src/command-line/migrate/migrate-config.js +0 -112
- package/dist/src/command-line/migrate/migrate-output.d.ts +0 -218
- package/dist/src/command-line/migrate/migrate-output.js +0 -302
- package/dist/src/command-line/migrate/migrate-ui-api.d.ts +0 -89
- package/dist/src/command-line/migrate/migrate-ui-api.js +0 -437
- package/dist/src/command-line/migrate/migrate.d.ts +0 -242
- package/dist/src/command-line/migrate/migrate.js +0 -2807
- package/dist/src/command-line/migrate/migration-shape.d.ts +0 -16
- package/dist/src/command-line/migrate/migration-shape.js +0 -13
- package/dist/src/command-line/migrate/multi-major.d.ts +0 -37
- package/dist/src/command-line/migrate/multi-major.js +0 -215
- package/dist/src/command-line/migrate/prompt-files.d.ts +0 -31
- package/dist/src/command-line/migrate/prompt-files.js +0 -141
- package/dist/src/command-line/migrate/resolve-package-version.d.ts +0 -24
- package/dist/src/command-line/migrate/resolve-package-version.js +0 -245
- package/dist/src/command-line/migrate/run/agent-output.d.ts +0 -20
- package/dist/src/command-line/migrate/run/agent-output.js +0 -65
- package/dist/src/command-line/migrate/run/index.d.ts +0 -9
- package/dist/src/command-line/migrate/run/index.js +0 -23
- package/dist/src/command-line/migrate/run/orchestrator.d.ts +0 -20
- package/dist/src/command-line/migrate/run/orchestrator.js +0 -1200
- package/dist/src/command-line/migrate/run/run-id.d.ts +0 -16
- package/dist/src/command-line/migrate/run/run-id.js +0 -56
- package/dist/src/command-line/migrate/run/run-state.d.ts +0 -157
- package/dist/src/command-line/migrate/run/run-state.js +0 -438
- package/dist/src/command-line/migrate/run/state-lock.d.ts +0 -25
- package/dist/src/command-line/migrate/run/state-lock.js +0 -76
- package/dist/src/command-line/migrate/run/state-machine.d.ts +0 -84
- package/dist/src/command-line/migrate/run/state-machine.js +0 -315
- package/dist/src/command-line/migrate/run/util.d.ts +0 -59
- package/dist/src/command-line/migrate/run/util.js +0 -148
- package/dist/src/command-line/migrate/run/worker.d.ts +0 -16
- package/dist/src/command-line/migrate/run/worker.js +0 -682
- package/dist/src/command-line/migrate/run-migration-process.js +0 -110
- package/dist/src/command-line/migrate/safe-prompt.d.ts +0 -21
- package/dist/src/command-line/migrate/safe-prompt.js +0 -47
- package/dist/src/command-line/migrate/sort-migrations.d.ts +0 -16
- package/dist/src/command-line/migrate/sort-migrations.js +0 -32
- package/dist/src/command-line/migrate/step-actions.d.ts +0 -5
- package/dist/src/command-line/migrate/step-actions.js +0 -12
- package/dist/src/command-line/migrate/text.d.ts +0 -18
- package/dist/src/command-line/migrate/text.js +0 -26
- package/dist/src/command-line/migrate/update-filters.d.ts +0 -11
- package/dist/src/command-line/migrate/update-filters.js +0 -45
- package/dist/src/command-line/migrate/version-skew-guard.d.ts +0 -60
- package/dist/src/command-line/migrate/version-skew-guard.js +0 -175
- package/dist/src/command-line/migrate/version-utils.d.ts +0 -5
- package/dist/src/command-line/migrate/version-utils.js +0 -52
- package/dist/src/command-line/new/command-object.d.ts +0 -2
- package/dist/src/command-line/new/command-object.js +0 -26
- package/dist/src/command-line/new/new.d.ts +0 -3
- package/dist/src/command-line/new/new.js +0 -30
- package/dist/src/command-line/nx-cloud/apply-locally/apply-locally.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/apply-locally/apply-locally.js +0 -13
- package/dist/src/command-line/nx-cloud/apply-locally/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/apply-locally/command-object.js +0 -16
- package/dist/src/command-line/nx-cloud/complete-run/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/complete-run/command-object.js +0 -17
- package/dist/src/command-line/nx-cloud/complete-run/stop-all-agents.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/complete-run/stop-all-agents.js +0 -13
- package/dist/src/command-line/nx-cloud/connect/command-object.d.ts +0 -3
- package/dist/src/command-line/nx-cloud/connect/command-object.js +0 -28
- package/dist/src/command-line/nx-cloud/connect/connect-to-nx-cloud.d.ts +0 -13
- package/dist/src/command-line/nx-cloud/connect/connect-to-nx-cloud.js +0 -266
- package/dist/src/command-line/nx-cloud/connect/view-logs.d.ts +0 -1
- package/dist/src/command-line/nx-cloud/connect/view-logs.js +0 -55
- package/dist/src/command-line/nx-cloud/download-cloud-client/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/download-cloud-client/command-object.js +0 -13
- package/dist/src/command-line/nx-cloud/download-cloud-client/download-cloud-client.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/download-cloud-client/download-cloud-client.js +0 -32
- package/dist/src/command-line/nx-cloud/fix-ci/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/fix-ci/command-object.js +0 -16
- package/dist/src/command-line/nx-cloud/fix-ci/fix-ci.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/fix-ci/fix-ci.js +0 -13
- package/dist/src/command-line/nx-cloud/login/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/login/command-object.js +0 -20
- package/dist/src/command-line/nx-cloud/login/login.d.ts +0 -5
- package/dist/src/command-line/nx-cloud/login/login.js +0 -10
- package/dist/src/command-line/nx-cloud/logout/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/logout/command-object.js +0 -16
- package/dist/src/command-line/nx-cloud/logout/logout.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/logout/logout.js +0 -7
- package/dist/src/command-line/nx-cloud/record/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/record/command-object.js +0 -19
- package/dist/src/command-line/nx-cloud/record/record.d.ts +0 -5
- package/dist/src/command-line/nx-cloud/record/record.js +0 -33
- package/dist/src/command-line/nx-cloud/start-agent/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/start-agent/command-object.js +0 -16
- package/dist/src/command-line/nx-cloud/start-agent/start-agent.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/start-agent/start-agent.js +0 -13
- package/dist/src/command-line/nx-cloud/start-ci-run/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/start-ci-run/command-object.js +0 -16
- package/dist/src/command-line/nx-cloud/start-ci-run/start-ci-run.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/start-ci-run/start-ci-run.js +0 -13
- package/dist/src/command-line/nx-cloud/start-nx-agents/command-object.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/start-nx-agents/command-object.js +0 -16
- package/dist/src/command-line/nx-cloud/start-nx-agents/start-nx-agents.d.ts +0 -4
- package/dist/src/command-line/nx-cloud/start-nx-agents/start-nx-agents.js +0 -13
- package/dist/src/command-line/nx-cloud/utils.d.ts +0 -2
- package/dist/src/command-line/nx-cloud/utils.js +0 -34
- package/dist/src/command-line/nx-commands.d.ts +0 -10
- package/dist/src/command-line/nx-commands.js +0 -183
- package/dist/src/command-line/register/command-object.d.ts +0 -6
- package/dist/src/command-line/register/command-object.js +0 -27
- package/dist/src/command-line/register/register.d.ts +0 -2
- package/dist/src/command-line/register/register.js +0 -9
- package/dist/src/command-line/release/changelog/commit-utils.d.ts +0 -13
- package/dist/src/command-line/release/changelog/commit-utils.js +0 -63
- package/dist/src/command-line/release/changelog/version-plan-filtering.d.ts +0 -43
- package/dist/src/command-line/release/changelog/version-plan-filtering.js +0 -156
- package/dist/src/command-line/release/changelog/version-plan-utils.d.ts +0 -31
- package/dist/src/command-line/release/changelog/version-plan-utils.js +0 -92
- package/dist/src/command-line/release/changelog.d.ts +0 -28
- package/dist/src/command-line/release/changelog.js +0 -905
- package/dist/src/command-line/release/command-object.d.ts +0 -96
- package/dist/src/command-line/release/command-object.js +0 -342
- package/dist/src/command-line/release/config/config.d.ts +0 -70
- package/dist/src/command-line/release/config/config.js +0 -1204
- package/dist/src/command-line/release/config/conventional-commits.d.ts +0 -2
- package/dist/src/command-line/release/config/conventional-commits.js +0 -106
- package/dist/src/command-line/release/config/deep-merge-json.d.ts +0 -1
- package/dist/src/command-line/release/config/deep-merge-json.js +0 -28
- package/dist/src/command-line/release/config/filter-release-groups.d.ts +0 -23
- package/dist/src/command-line/release/config/filter-release-groups.js +0 -157
- package/dist/src/command-line/release/config/use-legacy-versioning.d.ts +0 -2
- package/dist/src/command-line/release/config/use-legacy-versioning.js +0 -8
- package/dist/src/command-line/release/config/version-plans.d.ts +0 -42
- package/dist/src/command-line/release/config/version-plans.js +0 -278
- package/dist/src/command-line/release/index.d.ts +0 -49
- package/dist/src/command-line/release/index.js +0 -49
- package/dist/src/command-line/release/plan-check.d.ts +0 -4
- package/dist/src/command-line/release/plan-check.js +0 -170
- package/dist/src/command-line/release/plan.d.ts +0 -4
- package/dist/src/command-line/release/plan.js +0 -248
- package/dist/src/command-line/release/publish.d.ts +0 -9
- package/dist/src/command-line/release/publish.js +0 -295
- package/dist/src/command-line/release/release.d.ts +0 -5
- package/dist/src/command-line/release/release.js +0 -299
- package/dist/src/command-line/release/utils/diff.d.ts +0 -21
- package/dist/src/command-line/release/utils/diff.js +0 -168
- package/dist/src/command-line/release/utils/exec-command.d.ts +0 -1
- package/dist/src/command-line/release/utils/exec-command.js +0 -34
- package/dist/src/command-line/release/utils/generate-version-plan-content.d.ts +0 -1
- package/dist/src/command-line/release/utils/generate-version-plan-content.js +0 -20
- package/dist/src/command-line/release/utils/get-touched-projects-for-group.d.ts +0 -7
- package/dist/src/command-line/release/utils/get-touched-projects-for-group.js +0 -78
- package/dist/src/command-line/release/utils/git.d.ts +0 -126
- package/dist/src/command-line/release/utils/git.js +0 -597
- package/dist/src/command-line/release/utils/launch-editor.d.ts +0 -1
- package/dist/src/command-line/release/utils/launch-editor.js +0 -46
- package/dist/src/command-line/release/utils/markdown.d.ts +0 -6
- package/dist/src/command-line/release/utils/markdown.js +0 -28
- package/dist/src/command-line/release/utils/print-changes.d.ts +0 -6
- package/dist/src/command-line/release/utils/print-changes.js +0 -63
- package/dist/src/command-line/release/utils/print-config.d.ts +0 -7
- package/dist/src/command-line/release/utils/print-config.js +0 -36
- package/dist/src/command-line/release/utils/release-graph.d.ts +0 -248
- package/dist/src/command-line/release/utils/release-graph.js +0 -769
- package/dist/src/command-line/release/utils/remote-release-clients/extract-repo-slug.d.ts +0 -9
- package/dist/src/command-line/release/utils/remote-release-clients/extract-repo-slug.js +0 -61
- package/dist/src/command-line/release/utils/remote-release-clients/github.d.ts +0 -58
- package/dist/src/command-line/release/utils/remote-release-clients/github.js +0 -336
- package/dist/src/command-line/release/utils/remote-release-clients/gitlab.d.ts +0 -62
- package/dist/src/command-line/release/utils/remote-release-clients/gitlab.js +0 -259
- package/dist/src/command-line/release/utils/remote-release-clients/remote-release-client.d.ts +0 -111
- package/dist/src/command-line/release/utils/remote-release-clients/remote-release-client.js +0 -138
- package/dist/src/command-line/release/utils/repository-git-tags.d.ts +0 -25
- package/dist/src/command-line/release/utils/repository-git-tags.js +0 -125
- package/dist/src/command-line/release/utils/resolve-changelog-renderer.d.ts +0 -2
- package/dist/src/command-line/release/utils/resolve-changelog-renderer.js +0 -22
- package/dist/src/command-line/release/utils/resolve-nx-json-error-message.d.ts +0 -1
- package/dist/src/command-line/release/utils/resolve-nx-json-error-message.js +0 -53
- package/dist/src/command-line/release/utils/resolve-semver-specifier.d.ts +0 -7
- package/dist/src/command-line/release/utils/resolve-semver-specifier.js +0 -41
- package/dist/src/command-line/release/utils/semver.d.ts +0 -26
- package/dist/src/command-line/release/utils/semver.js +0 -111
- package/dist/src/command-line/release/utils/shared-legacy.d.ts +0 -25
- package/dist/src/command-line/release/utils/shared-legacy.js +0 -2
- package/dist/src/command-line/release/utils/shared.d.ts +0 -64
- package/dist/src/command-line/release/utils/shared.js +0 -379
- package/dist/src/command-line/release/utils/version-plan-utils.d.ts +0 -40
- package/dist/src/command-line/release/utils/version-plan-utils.js +0 -111
- package/dist/src/command-line/release/version/derive-specifier-from-conventional-commits.d.ts +0 -8
- package/dist/src/command-line/release/version/derive-specifier-from-conventional-commits.js +0 -61
- package/dist/src/command-line/release/version/deriver-specifier-from-version-plans.d.ts +0 -8
- package/dist/src/command-line/release/version/deriver-specifier-from-version-plans.js +0 -59
- package/dist/src/command-line/release/version/project-logger.d.ts +0 -8
- package/dist/src/command-line/release/version/project-logger.js +0 -47
- package/dist/src/command-line/release/version/release-group-processor.d.ts +0 -139
- package/dist/src/command-line/release/version/release-group-processor.js +0 -706
- package/dist/src/command-line/release/version/resolve-current-version.d.ts +0 -32
- package/dist/src/command-line/release/version/resolve-current-version.js +0 -240
- package/dist/src/command-line/release/version/topological-sort.d.ts +0 -9
- package/dist/src/command-line/release/version/topological-sort.js +0 -41
- package/dist/src/command-line/release/version/version-actions.d.ts +0 -224
- package/dist/src/command-line/release/version/version-actions.js +0 -255
- package/dist/src/command-line/release/version.d.ts +0 -28
- package/dist/src/command-line/release/version.js +0 -382
- package/dist/src/command-line/repair/command-object.d.ts +0 -2
- package/dist/src/command-line/repair/command-object.js +0 -21
- package/dist/src/command-line/repair/repair.d.ts +0 -3
- package/dist/src/command-line/repair/repair.js +0 -41
- package/dist/src/command-line/report/command-object.d.ts +0 -2
- package/dist/src/command-line/report/command-object.js +0 -12
- package/dist/src/command-line/report/report.d.ts +0 -71
- package/dist/src/command-line/report/report.js +0 -405
- package/dist/src/command-line/reset/command-object.d.ts +0 -8
- package/dist/src/command-line/reset/command-object.js +0 -27
- package/dist/src/command-line/reset/reset.d.ts +0 -2
- package/dist/src/command-line/reset/reset.js +0 -185
- package/dist/src/command-line/run/command-object.d.ts +0 -6
- package/dist/src/command-line/run/command-object.js +0 -43
- package/dist/src/command-line/run/completion.d.ts +0 -1
- package/dist/src/command-line/run/completion.js +0 -7
- package/dist/src/command-line/run/executor-utils.d.ts +0 -12
- package/dist/src/command-line/run/executor-utils.js +0 -96
- package/dist/src/command-line/run/run-one.d.ts +0 -17
- package/dist/src/command-line/run/run-one.js +0 -155
- package/dist/src/command-line/run/run.d.ts +0 -51
- package/dist/src/command-line/run/run.js +0 -179
- package/dist/src/command-line/run-many/command-object.d.ts +0 -2
- package/dist/src/command-line/run-many/command-object.js +0 -18
- package/dist/src/command-line/run-many/completion.d.ts +0 -1
- package/dist/src/command-line/run-many/completion.js +0 -13
- package/dist/src/command-line/run-many/run-many.d.ts +0 -10
- package/dist/src/command-line/run-many/run-many.js +0 -90
- package/dist/src/command-line/show/command-object.d.ts +0 -40
- package/dist/src/command-line/show/command-object.js +0 -237
- package/dist/src/command-line/show/completion.d.ts +0 -1
- package/dist/src/command-line/show/completion.js +0 -27
- package/dist/src/command-line/show/project.d.ts +0 -2
- package/dist/src/command-line/show/project.js +0 -103
- package/dist/src/command-line/show/projects.d.ts +0 -2
- package/dist/src/command-line/show/projects.js +0 -80
- package/dist/src/command-line/show/show-target/index.d.ts +0 -3
- package/dist/src/command-line/show/show-target/index.js +0 -9
- package/dist/src/command-line/show/show-target/info.d.ts +0 -28
- package/dist/src/command-line/show/show-target/info.js +0 -389
- package/dist/src/command-line/show/show-target/inputs.d.ts +0 -2
- package/dist/src/command-line/show/show-target/inputs.js +0 -83
- package/dist/src/command-line/show/show-target/outputs.d.ts +0 -2
- package/dist/src/command-line/show/show-target/outputs.js +0 -70
- package/dist/src/command-line/show/show-target/utils.d.ts +0 -54
- package/dist/src/command-line/show/show-target/utils.js +0 -265
- package/dist/src/command-line/sync/command-object.d.ts +0 -6
- package/dist/src/command-line/sync/command-object.js +0 -21
- package/dist/src/command-line/sync/sync.d.ts +0 -6
- package/dist/src/command-line/sync/sync.js +0 -120
- package/dist/src/command-line/watch/command-object.d.ts +0 -2
- package/dist/src/command-line/watch/command-object.js +0 -91
- package/dist/src/command-line/watch/completion.d.ts +0 -1
- package/dist/src/command-line/watch/completion.js +0 -10
- package/dist/src/command-line/watch/watch.d.ts +0 -31
- package/dist/src/command-line/watch/watch.js +0 -211
- package/dist/src/command-line/yargs-utils/arguments-of.d.ts +0 -11
- package/dist/src/command-line/yargs-utils/arguments-of.js +0 -9
- package/dist/src/command-line/yargs-utils/documentation.d.ts +0 -2
- package/dist/src/command-line/yargs-utils/documentation.js +0 -12
- package/dist/src/command-line/yargs-utils/shared-options.d.ts +0 -91
- package/dist/src/command-line/yargs-utils/shared-options.js +0 -397
- package/dist/src/commands-runner/command-graph.d.ts +0 -13
- package/dist/src/commands-runner/command-graph.js +0 -2
- package/dist/src/commands-runner/create-command-graph.d.ts +0 -4
- package/dist/src/commands-runner/create-command-graph.js +0 -72
- package/dist/src/commands-runner/get-command-projects.d.ts +0 -3
- package/dist/src/commands-runner/get-command-projects.js +0 -33
- package/dist/src/config/calculate-default-project-name.d.ts +0 -4
- package/dist/src/config/calculate-default-project-name.js +0 -41
- package/dist/src/config/configuration.d.ts +0 -8
- package/dist/src/config/configuration.js +0 -17
- package/dist/src/config/misc-interfaces.d.ts +0 -266
- package/dist/src/config/misc-interfaces.js +0 -2
- package/dist/src/config/nx-json.d.ts +0 -963
- package/dist/src/config/nx-json.js +0 -40
- package/dist/src/config/project-graph.d.ts +0 -137
- package/dist/src/config/project-graph.js +0 -45
- package/dist/src/config/schema-utils.d.ts +0 -37
- package/dist/src/config/schema-utils.js +0 -199
- package/dist/src/config/task-graph.d.ts +0 -6
- package/dist/src/config/task-graph.js +0 -2
- package/dist/src/config/to-project-name.d.ts +0 -5
- package/dist/src/config/to-project-name.js +0 -12
- package/dist/src/config/workspace-json-project-json.d.ts +0 -273
- package/dist/src/config/workspace-json-project-json.js +0 -2
- package/dist/src/core/graph/environment.js +0 -1
- package/dist/src/core/graph/favicon.ico +0 -0
- package/dist/src/core/graph/index.html +0 -32
- package/dist/src/core/graph/main.js +0 -1
- package/dist/src/core/graph/runtime.js +0 -1
- package/dist/src/core/graph/styles.css +0 -2
- package/dist/src/core/graph/styles.js +0 -1
- package/dist/src/daemon/cache.d.ts +0 -10
- package/dist/src/daemon/cache.js +0 -58
- package/dist/src/daemon/client/client.d.ts +0 -161
- package/dist/src/daemon/client/client.js +0 -1255
- package/dist/src/daemon/client/daemon-environment.d.ts +0 -64
- package/dist/src/daemon/client/daemon-environment.js +0 -378
- package/dist/src/daemon/client/daemon-socket-messenger.d.ts +0 -12
- package/dist/src/daemon/client/daemon-socket-messenger.js +0 -63
- package/dist/src/daemon/is-nx-version-mismatch.d.ts +0 -1
- package/dist/src/daemon/is-nx-version-mismatch.js +0 -8
- package/dist/src/daemon/is-on-daemon.d.ts +0 -1
- package/dist/src/daemon/is-on-daemon.js +0 -6
- package/dist/src/daemon/is-v8-serializer-enabled.d.ts +0 -5
- package/dist/src/daemon/is-v8-serializer-enabled.js +0 -10
- package/dist/src/daemon/logger.d.ts +0 -39
- package/dist/src/daemon/logger.js +0 -80
- package/dist/src/daemon/message-types/configure-ai-agents.d.ts +0 -20
- package/dist/src/daemon/message-types/configure-ai-agents.js +0 -19
- package/dist/src/daemon/message-types/daemon-message.d.ts +0 -39
- package/dist/src/daemon/message-types/daemon-message.js +0 -54
- package/dist/src/daemon/message-types/flush-sync-generator-changes-to-disk.d.ts +0 -6
- package/dist/src/daemon/message-types/flush-sync-generator-changes-to-disk.js +0 -11
- package/dist/src/daemon/message-types/force-shutdown.d.ts +0 -5
- package/dist/src/daemon/message-types/force-shutdown.js +0 -11
- package/dist/src/daemon/message-types/get-context-file-data.d.ts +0 -5
- package/dist/src/daemon/message-types/get-context-file-data.js +0 -11
- package/dist/src/daemon/message-types/get-files-in-directory.d.ts +0 -6
- package/dist/src/daemon/message-types/get-files-in-directory.js +0 -11
- package/dist/src/daemon/message-types/get-nx-workspace-files.d.ts +0 -6
- package/dist/src/daemon/message-types/get-nx-workspace-files.js +0 -11
- package/dist/src/daemon/message-types/get-registered-sync-generators.d.ts +0 -5
- package/dist/src/daemon/message-types/get-registered-sync-generators.js +0 -11
- package/dist/src/daemon/message-types/get-sync-generator-changes.d.ts +0 -6
- package/dist/src/daemon/message-types/get-sync-generator-changes.js +0 -11
- package/dist/src/daemon/message-types/glob.d.ts +0 -14
- package/dist/src/daemon/message-types/glob.js +0 -19
- package/dist/src/daemon/message-types/hash-glob.d.ts +0 -13
- package/dist/src/daemon/message-types/hash-glob.js +0 -19
- package/dist/src/daemon/message-types/nx-console.d.ts +0 -17
- package/dist/src/daemon/message-types/nx-console.js +0 -19
- package/dist/src/daemon/message-types/register-project-graph-listener.d.ts +0 -5
- package/dist/src/daemon/message-types/register-project-graph-listener.js +0 -11
- package/dist/src/daemon/message-types/run-tasks-execution-hooks.d.ts +0 -13
- package/dist/src/daemon/message-types/run-tasks-execution-hooks.js +0 -19
- package/dist/src/daemon/message-types/streaming-messages.d.ts +0 -14
- package/dist/src/daemon/message-types/streaming-messages.js +0 -19
- package/dist/src/daemon/message-types/task-history.d.ts +0 -19
- package/dist/src/daemon/message-types/task-history.js +0 -27
- package/dist/src/daemon/message-types/update-workspace-context.d.ts +0 -8
- package/dist/src/daemon/message-types/update-workspace-context.js +0 -11
- package/dist/src/daemon/sandbox-socket-hint.d.ts +0 -27
- package/dist/src/daemon/sandbox-socket-hint.js +0 -136
- package/dist/src/daemon/server/client-socket-context.d.ts +0 -23
- package/dist/src/daemon/server/client-socket-context.js +0 -88
- package/dist/src/daemon/server/dotenv-graph-changes.d.ts +0 -97
- package/dist/src/daemon/server/dotenv-graph-changes.js +0 -284
- package/dist/src/daemon/server/file-watching/changed-projects.d.ts +0 -10
- package/dist/src/daemon/server/file-watching/changed-projects.js +0 -53
- package/dist/src/daemon/server/file-watching/file-change-events.d.ts +0 -7
- package/dist/src/daemon/server/file-watching/file-change-events.js +0 -19
- package/dist/src/daemon/server/file-watching/file-watcher-sockets.d.ts +0 -17
- package/dist/src/daemon/server/file-watching/file-watcher-sockets.js +0 -82
- 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/handle-client-env.d.ts +0 -8
- package/dist/src/daemon/server/handle-client-env.js +0 -92
- package/dist/src/daemon/server/handle-configure-ai-agents.d.ts +0 -3
- package/dist/src/daemon/server/handle-configure-ai-agents.js +0 -101
- package/dist/src/daemon/server/handle-context-file-data.d.ts +0 -2
- package/dist/src/daemon/server/handle-context-file-data.js +0 -12
- package/dist/src/daemon/server/handle-flush-sync-generator-changes-to-disk.d.ts +0 -2
- package/dist/src/daemon/server/handle-flush-sync-generator-changes-to-disk.js +0 -11
- package/dist/src/daemon/server/handle-force-shutdown.d.ts +0 -5
- package/dist/src/daemon/server/handle-force-shutdown.js +0 -18
- package/dist/src/daemon/server/handle-get-files-in-directory.d.ts +0 -2
- package/dist/src/daemon/server/handle-get-files-in-directory.js +0 -12
- package/dist/src/daemon/server/handle-get-registered-sync-generators.d.ts +0 -2
- package/dist/src/daemon/server/handle-get-registered-sync-generators.js +0 -11
- package/dist/src/daemon/server/handle-get-sync-generator-changes.d.ts +0 -2
- package/dist/src/daemon/server/handle-get-sync-generator-changes.js +0 -20
- package/dist/src/daemon/server/handle-glob.d.ts +0 -3
- package/dist/src/daemon/server/handle-glob.js +0 -20
- package/dist/src/daemon/server/handle-hash-glob.d.ts +0 -3
- package/dist/src/daemon/server/handle-hash-glob.js +0 -20
- package/dist/src/daemon/server/handle-hash-tasks.d.ts +0 -12
- package/dist/src/daemon/server/handle-hash-tasks.js +0 -28
- package/dist/src/daemon/server/handle-nx-console.d.ts +0 -3
- package/dist/src/daemon/server/handle-nx-console.js +0 -54
- package/dist/src/daemon/server/handle-nx-workspace-files.d.ts +0 -2
- package/dist/src/daemon/server/handle-nx-workspace-files.js +0 -12
- package/dist/src/daemon/server/handle-outputs-changes.d.ts +0 -10
- package/dist/src/daemon/server/handle-outputs-changes.js +0 -86
- package/dist/src/daemon/server/handle-outputs-tracking.d.ts +0 -15
- package/dist/src/daemon/server/handle-outputs-tracking.js +0 -35
- package/dist/src/daemon/server/handle-process-in-background.d.ts +0 -6
- package/dist/src/daemon/server/handle-process-in-background.js +0 -32
- package/dist/src/daemon/server/handle-request-project-graph.d.ts +0 -3
- package/dist/src/daemon/server/handle-request-project-graph.js +0 -36
- package/dist/src/daemon/server/handle-request-shutdown.d.ts +0 -5
- package/dist/src/daemon/server/handle-request-shutdown.js +0 -27
- package/dist/src/daemon/server/handle-task-history.d.ts +0 -13
- package/dist/src/daemon/server/handle-task-history.js +0 -30
- package/dist/src/daemon/server/handle-tasks-execution-hooks.d.ts +0 -19
- package/dist/src/daemon/server/handle-tasks-execution-hooks.js +0 -35
- package/dist/src/daemon/server/handle-update-workspace-context.d.ts +0 -2
- package/dist/src/daemon/server/handle-update-workspace-context.js +0 -11
- package/dist/src/daemon/server/latest-nx.d.ts +0 -10
- package/dist/src/daemon/server/latest-nx.js +0 -56
- package/dist/src/daemon/server/nx-console-operations.d.ts +0 -26
- package/dist/src/daemon/server/nx-console-operations.js +0 -97
- package/dist/src/daemon/server/outputs-tracking.d.ts +0 -23
- package/dist/src/daemon/server/outputs-tracking.js +0 -120
- package/dist/src/daemon/server/project-graph-incremental-recomputation.d.ts +0 -47
- package/dist/src/daemon/server/project-graph-incremental-recomputation.js +0 -660
- package/dist/src/daemon/server/project-graph-listener-sockets.d.ts +0 -7
- package/dist/src/daemon/server/project-graph-listener-sockets.js +0 -25
- package/dist/src/daemon/server/server.d.ts +0 -10
- package/dist/src/daemon/server/server.js +0 -465
- package/dist/src/daemon/server/shutdown-utils.d.ts +0 -23
- package/dist/src/daemon/server/shutdown-utils.js +0 -159
- package/dist/src/daemon/server/start.d.ts +0 -1
- package/dist/src/daemon/server/start.js +0 -20
- package/dist/src/daemon/server/sync-generators.d.ts +0 -14
- package/dist/src/daemon/server/sync-generators.js +0 -368
- package/dist/src/daemon/server/watcher.d.ts +0 -18
- package/dist/src/daemon/server/watcher.js +0 -126
- package/dist/src/daemon/socket-utils.d.ts +0 -43
- package/dist/src/daemon/socket-utils.js +0 -131
- package/dist/src/daemon/tmp-dir.d.ts +0 -62
- package/dist/src/daemon/tmp-dir.js +0 -477
- package/dist/src/devkit-exports.d.ts +0 -139
- package/dist/src/devkit-exports.js +0 -143
- package/dist/src/devkit-internals.d.ts +0 -144
- package/dist/src/devkit-internals.js +0 -331
- package/dist/src/devkit-testing-exports.d.ts +0 -2
- package/dist/src/devkit-testing-exports.js +0 -8
- package/dist/src/executors/noop/noop.impl.d.ts +0 -3
- package/dist/src/executors/noop/noop.impl.js +0 -6
- package/dist/src/executors/noop/schema.json +0 -10
- package/dist/src/executors/run-commands/run-commands.impl.d.ts +0 -59
- package/dist/src/executors/run-commands/run-commands.impl.js +0 -301
- package/dist/src/executors/run-commands/running-tasks.d.ts +0 -52
- package/dist/src/executors/run-commands/running-tasks.js +0 -603
- package/dist/src/executors/run-commands/schema.json +0 -198
- package/dist/src/executors/run-script/run-script.impl.d.ts +0 -8
- package/dist/src/executors/run-script/run-script.impl.js +0 -86
- package/dist/src/executors/run-script/schema.json +0 -28
- package/dist/src/executors/utils/convert-nx-executor.d.ts +0 -10
- package/dist/src/executors/utils/convert-nx-executor.js +0 -83
- package/dist/src/generators/internal-utils/format-changed-files.d.ts +0 -24
- package/dist/src/generators/internal-utils/format-changed-files.js +0 -163
- package/dist/src/generators/testing-utils/create-tree-with-empty-workspace.d.ts +0 -26
- package/dist/src/generators/testing-utils/create-tree-with-empty-workspace.js +0 -70
- package/dist/src/generators/testing-utils/create-tree.d.ts +0 -5
- package/dist/src/generators/testing-utils/create-tree.js +0 -14
- package/dist/src/generators/tree.d.ts +0 -127
- package/dist/src/generators/tree.js +0 -310
- package/dist/src/generators/utils/generate-files.d.ts +0 -44
- package/dist/src/generators/utils/generate-files.js +0 -114
- package/dist/src/generators/utils/glob.d.ts +0 -22
- package/dist/src/generators/utils/glob.js +0 -51
- package/dist/src/generators/utils/json.d.ts +0 -28
- package/dist/src/generators/utils/json.js +0 -48
- package/dist/src/generators/utils/nx-json.d.ts +0 -10
- package/dist/src/generators/utils/nx-json.js +0 -62
- package/dist/src/generators/utils/project-configuration.d.ts +0 -51
- package/dist/src/generators/utils/project-configuration.js +0 -299
- package/dist/src/hasher/check-task-files.d.ts +0 -86
- package/dist/src/hasher/check-task-files.js +0 -378
- package/dist/src/hasher/create-task-hasher.d.ts +0 -4
- package/dist/src/hasher/create-task-hasher.js +0 -15
- package/dist/src/hasher/file-hasher.d.ts +0 -3
- package/dist/src/hasher/file-hasher.js +0 -23
- package/dist/src/hasher/hash-plan-inspector.d.ts +0 -33
- package/dist/src/hasher/hash-plan-inspector.js +0 -70
- package/dist/src/hasher/hash-task.d.ts +0 -17
- package/dist/src/hasher/hash-task.js +0 -191
- package/dist/src/hasher/native-task-hasher-impl.d.ts +0 -18
- package/dist/src/hasher/native-task-hasher-impl.js +0 -38
- package/dist/src/hasher/task-hasher.d.ts +0 -160
- package/dist/src/hasher/task-hasher.js +0 -301
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +0 -2
- package/dist/src/migrations/update-15-0-0/prefix-outputs.d.ts +0 -2
- package/dist/src/migrations/update-15-0-0/prefix-outputs.js +0 -54
- package/dist/src/migrations/update-16-0-0/remove-nrwl-cli.d.ts +0 -2
- package/dist/src/migrations/update-16-0-0/remove-nrwl-cli.js +0 -16
- package/dist/src/migrations/update-16-0-0/update-depends-on-to-tokens.d.ts +0 -2
- package/dist/src/migrations/update-16-0-0/update-depends-on-to-tokens.js +0 -82
- package/dist/src/migrations/update-16-0-0/update-nx-cloud-runner.d.ts +0 -2
- package/dist/src/migrations/update-16-0-0/update-nx-cloud-runner.js +0 -29
- package/dist/src/migrations/update-16-2-0/remove-run-commands-output-path.d.ts +0 -2
- package/dist/src/migrations/update-16-2-0/remove-run-commands-output-path.js +0 -50
- package/dist/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.d.ts +0 -12
- package/dist/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.js +0 -67
- package/dist/src/migrations/update-17-0-0/move-cache-directory.d.ts +0 -2
- package/dist/src/migrations/update-17-0-0/move-cache-directory.js +0 -35
- package/dist/src/migrations/update-17-0-0/move-cache-directory.md +0 -31
- package/dist/src/migrations/update-17-0-0/rm-default-collection-npm-scope.d.ts +0 -2
- package/dist/src/migrations/update-17-0-0/rm-default-collection-npm-scope.js +0 -72
- package/dist/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.d.ts +0 -2
- package/dist/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.js +0 -126
- package/dist/src/migrations/update-17-2-0/move-default-base.d.ts +0 -5
- package/dist/src/migrations/update-17-2-0/move-default-base.js +0 -20
- package/dist/src/migrations/update-17-3-0/update-nxw.d.ts +0 -2
- package/dist/src/migrations/update-17-3-0/update-nxw.js +0 -7
- package/dist/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.d.ts +0 -2
- package/dist/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.js +0 -11
- package/dist/src/migrations/update-19-2-0/move-workspace-data-directory.d.ts +0 -4
- package/dist/src/migrations/update-19-2-0/move-workspace-data-directory.js +0 -33
- package/dist/src/migrations/update-19-2-4/set-project-name.d.ts +0 -2
- package/dist/src/migrations/update-19-2-4/set-project-name.js +0 -34
- package/dist/src/migrations/update-20-0-0/move-use-daemon-process.d.ts +0 -2
- package/dist/src/migrations/update-20-0-0/move-use-daemon-process.js +0 -25
- package/dist/src/migrations/update-20-0-0/move-use-daemon-process.md +0 -27
- package/dist/src/migrations/update-20-0-1/use-legacy-cache.d.ts +0 -2
- package/dist/src/migrations/update-20-0-1/use-legacy-cache.js +0 -20
- package/dist/src/migrations/update-20-0-1/use-legacy-cache.md +0 -24
- package/dist/src/migrations/update-21-0-0/release-changelog-config-changes.d.ts +0 -2
- package/dist/src/migrations/update-21-0-0/release-changelog-config-changes.js +0 -38
- package/dist/src/migrations/update-21-0-0/release-changelog-config-changes.md +0 -49
- package/dist/src/migrations/update-21-0-0/release-version-config-changes.d.ts +0 -2
- package/dist/src/migrations/update-21-0-0/release-version-config-changes.js +0 -101
- package/dist/src/migrations/update-21-0-0/release-version-config-changes.md +0 -54
- package/dist/src/migrations/update-21-0-0/remove-custom-tasks-runner.d.ts +0 -2
- package/dist/src/migrations/update-21-0-0/remove-custom-tasks-runner.js +0 -38
- package/dist/src/migrations/update-21-0-0/remove-custom-tasks-runner.md +0 -28
- package/dist/src/migrations/update-21-0-0/remove-legacy-cache.d.ts +0 -2
- package/dist/src/migrations/update-21-0-0/remove-legacy-cache.js +0 -17
- package/dist/src/migrations/update-21-0-0/remove-legacy-cache.md +0 -22
- package/dist/src/migrations/update-22-0-0/consolidate-release-tag-config.d.ts +0 -2
- package/dist/src/migrations/update-22-0-0/consolidate-release-tag-config.js +0 -100
- package/dist/src/migrations/update-22-0-0/release-version-config-changes.d.ts +0 -2
- package/dist/src/migrations/update-22-0-0/release-version-config-changes.js +0 -101
- package/dist/src/migrations/update-22-1-0/update-nx-wrapper.d.ts +0 -2
- package/dist/src/migrations/update-22-1-0/update-nx-wrapper.js +0 -7
- package/dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore.d.ts +0 -2
- package/dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore.js +0 -19
- package/dist/src/migrations/update-22-2-0/add-self-healing-to-gitignore.md +0 -11
- package/dist/src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore.d.ts +0 -2
- package/dist/src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore.js +0 -16
- package/dist/src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore.d.ts +0 -2
- package/dist/src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore.js +0 -16
- package/dist/src/migrations/update-22-6-0/enable-analytics-prompt.d.ts +0 -2
- package/dist/src/migrations/update-22-6-0/enable-analytics-prompt.js +0 -23
- package/dist/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.d.ts +0 -2
- package/dist/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.js +0 -16
- package/dist/src/migrations/update-23-0-0/add-migrate-runs-to-git-ignore.d.ts +0 -2
- package/dist/src/migrations/update-23-0-0/add-migrate-runs-to-git-ignore.js +0 -16
- 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/migrations/update-23-2-0/set-cache-on-executor-target-defaults.d.ts +0 -12
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.js +0 -250
- package/dist/src/migrations/update-23-2-0/set-cache-on-executor-target-defaults.md +0 -50
- package/dist/src/migrations/utils/target-defaults.d.ts +0 -28
- package/dist/src/migrations/utils/target-defaults.js +0 -46
- package/dist/src/native/assert-supported-platform.d.ts +0 -1
- package/dist/src/native/assert-supported-platform.js +0 -39
- package/dist/src/native/browser.js +0 -1
- package/dist/src/native/index.d.ts +0 -858
- package/dist/src/native/index.js +0 -222
- package/dist/src/native/native-bindings.js +0 -642
- package/dist/src/native/native-file-cache-location.d.ts +0 -17
- package/dist/src/native/native-file-cache-location.js +0 -97
- package/dist/src/native/nx.openharmony-arm64.node +0 -0
- package/dist/src/native/nx.wasi-browser.js +0 -131
- package/dist/src/native/nx.wasi.cjs +0 -161
- 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 +0 -3
- package/dist/src/native/transform-objects.js +0 -51
- package/dist/src/native/wasi-worker-browser.mjs +0 -30
- package/dist/src/native/wasi-worker.mjs +0 -63
- package/dist/src/nx-cloud/debug-logger.d.ts +0 -1
- package/dist/src/nx-cloud/debug-logger.js +0 -8
- package/dist/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.d.ts +0 -14
- package/dist/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +0 -159
- package/dist/src/nx-cloud/generators/connect-to-nx-cloud/schema.json +0 -41
- package/dist/src/nx-cloud/models/onboarding-status.d.ts +0 -1
- package/dist/src/nx-cloud/models/onboarding-status.js +0 -2
- package/dist/src/nx-cloud/nx-cloud-tasks-runner-shell.d.ts +0 -16
- package/dist/src/nx-cloud/nx-cloud-tasks-runner-shell.js +0 -41
- package/dist/src/nx-cloud/resolution-helpers.d.ts +0 -1
- package/dist/src/nx-cloud/resolution-helpers.js +0 -19
- package/dist/src/nx-cloud/update-manager.d.ts +0 -23
- package/dist/src/nx-cloud/update-manager.js +0 -267
- package/dist/src/nx-cloud/utilities/axios.d.ts +0 -4
- package/dist/src/nx-cloud/utilities/axios.js +0 -17
- package/dist/src/nx-cloud/utilities/client.d.ts +0 -10
- package/dist/src/nx-cloud/utilities/client.js +0 -42
- package/dist/src/nx-cloud/utilities/environment.d.ts +0 -3
- package/dist/src/nx-cloud/utilities/environment.js +0 -48
- package/dist/src/nx-cloud/utilities/get-cloud-options.d.ts +0 -5
- package/dist/src/nx-cloud/utilities/get-cloud-options.js +0 -26
- package/dist/src/nx-cloud/utilities/is-workspace-claimed.d.ts +0 -1
- package/dist/src/nx-cloud/utilities/is-workspace-claimed.js +0 -25
- package/dist/src/nx-cloud/utilities/onboarding.d.ts +0 -5
- package/dist/src/nx-cloud/utilities/onboarding.js +0 -31
- package/dist/src/nx-cloud/utilities/url-shorten.d.ts +0 -2
- package/dist/src/nx-cloud/utilities/url-shorten.js +0 -85
- package/dist/src/plugins/js/hasher/hasher.d.ts +0 -5
- package/dist/src/plugins/js/hasher/hasher.js +0 -51
- package/dist/src/plugins/js/index.d.ts +0 -4
- package/dist/src/plugins/js/index.js +0 -201
- package/dist/src/plugins/js/lock-file/bun-parser.d.ts +0 -14
- package/dist/src/plugins/js/lock-file/bun-parser.js +0 -992
- package/dist/src/plugins/js/lock-file/lock-file.d.ts +0 -85
- package/dist/src/plugins/js/lock-file/lock-file.js +0 -442
- package/dist/src/plugins/js/lock-file/npm-parser.d.ts +0 -10
- package/dist/src/plugins/js/lock-file/npm-parser.js +0 -595
- package/dist/src/plugins/js/lock-file/pnpm-parser.d.ts +0 -10
- package/dist/src/plugins/js/lock-file/pnpm-parser.js +0 -1047
- package/dist/src/plugins/js/lock-file/project-graph-pruning.d.ts +0 -35
- package/dist/src/plugins/js/lock-file/project-graph-pruning.js +0 -290
- package/dist/src/plugins/js/lock-file/pruned-output.d.ts +0 -330
- package/dist/src/plugins/js/lock-file/pruned-output.js +0 -1441
- package/dist/src/plugins/js/lock-file/utils/package-json.d.ts +0 -10
- package/dist/src/plugins/js/lock-file/utils/package-json.js +0 -38
- package/dist/src/plugins/js/lock-file/utils/pnpm-normalizer.d.ts +0 -21
- package/dist/src/plugins/js/lock-file/utils/pnpm-normalizer.js +0 -875
- package/dist/src/plugins/js/lock-file/yarn-parser.d.ts +0 -10
- package/dist/src/plugins/js/lock-file/yarn-parser.js +0 -536
- package/dist/src/plugins/js/package-json/create-package-json.d.ts +0 -29
- package/dist/src/plugins/js/package-json/create-package-json.js +0 -312
- package/dist/src/plugins/js/project-graph/affected/lock-file-changes.d.ts +0 -3
- package/dist/src/plugins/js/project-graph/affected/lock-file-changes.js +0 -150
- package/dist/src/plugins/js/project-graph/affected/npm-packages.d.ts +0 -4
- package/dist/src/plugins/js/project-graph/affected/npm-packages.js +0 -124
- package/dist/src/plugins/js/project-graph/affected/touched-projects.d.ts +0 -2
- package/dist/src/plugins/js/project-graph/affected/touched-projects.js +0 -18
- package/dist/src/plugins/js/project-graph/affected/tsconfig-json-changes.d.ts +0 -4
- package/dist/src/plugins/js/project-graph/affected/tsconfig-json-changes.js +0 -63
- package/dist/src/plugins/js/project-graph/build-dependencies/build-dependencies.d.ts +0 -6
- package/dist/src/plugins/js/project-graph/build-dependencies/build-dependencies.js +0 -45
- package/dist/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.d.ts +0 -4
- package/dist/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.js +0 -88
- package/dist/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.d.ts +0 -4
- package/dist/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.js +0 -75
- package/dist/src/plugins/js/project-graph/build-dependencies/target-project-locator.d.ts +0 -81
- package/dist/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +0 -464
- package/dist/src/plugins/js/project-graph/build-nodes/build-npm-package-nodes.d.ts +0 -2
- package/dist/src/plugins/js/project-graph/build-nodes/build-npm-package-nodes.js +0 -31
- package/dist/src/plugins/js/utils/config.d.ts +0 -2
- package/dist/src/plugins/js/utils/config.js +0 -61
- package/dist/src/plugins/js/utils/get-workspace-packages-from-graph.d.ts +0 -2
- package/dist/src/plugins/js/utils/get-workspace-packages-from-graph.js +0 -13
- package/dist/src/plugins/js/utils/packages.d.ts +0 -8
- package/dist/src/plugins/js/utils/packages.js +0 -91
- package/dist/src/plugins/js/utils/register.d.ts +0 -350
- package/dist/src/plugins/js/utils/register.js +0 -1270
- package/dist/src/plugins/js/utils/resolve-relative-to-dir.d.ts +0 -5
- package/dist/src/plugins/js/utils/resolve-relative-to-dir.js +0 -17
- package/dist/src/plugins/js/utils/typescript.d.ts +0 -32
- package/dist/src/plugins/js/utils/typescript.js +0 -157
- package/dist/src/plugins/js/versions.d.ts +0 -1
- package/dist/src/plugins/js/versions.js +0 -4
- package/dist/src/plugins/package-json/create-nodes.d.ts +0 -28
- package/dist/src/plugins/package-json/create-nodes.js +0 -243
- package/dist/src/plugins/package-json/index.d.ts +0 -2
- package/dist/src/plugins/package-json/index.js +0 -6
- package/dist/src/plugins/project-json/build-nodes/project-json.d.ts +0 -5
- package/dist/src/plugins/project-json/build-nodes/project-json.js +0 -33
- package/dist/src/project-graph/affected/affected-project-graph-models.d.ts +0 -11
- package/dist/src/project-graph/affected/affected-project-graph-models.js +0 -2
- package/dist/src/project-graph/affected/affected-project-graph.d.ts +0 -4
- package/dist/src/project-graph/affected/affected-project-graph.js +0 -90
- 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/project-graph/build-project-graph.d.ts +0 -26
- package/dist/src/project-graph/build-project-graph.js +0 -309
- package/dist/src/project-graph/error-types.d.ts +0 -151
- package/dist/src/project-graph/error-types.js +0 -484
- package/dist/src/project-graph/file-map-utils.d.ts +0 -18
- package/dist/src/project-graph/file-map-utils.js +0 -61
- package/dist/src/project-graph/file-utils.d.ts +0 -31
- package/dist/src/project-graph/file-utils.js +0 -187
- package/dist/src/project-graph/nx-deps-cache.d.ts +0 -62
- package/dist/src/project-graph/nx-deps-cache.js +0 -345
- package/dist/src/project-graph/operators.d.ts +0 -11
- package/dist/src/project-graph/operators.js +0 -70
- package/dist/src/project-graph/plugins/get-plugins.d.ts +0 -51
- package/dist/src/project-graph/plugins/get-plugins.js +0 -401
- package/dist/src/project-graph/plugins/in-process-loader.d.ts +0 -10
- package/dist/src/project-graph/plugins/in-process-loader.js +0 -61
- package/dist/src/project-graph/plugins/index.d.ts +0 -4
- package/dist/src/project-graph/plugins/index.js +0 -12
- package/dist/src/project-graph/plugins/isolation/enabled.d.ts +0 -1
- package/dist/src/project-graph/plugins/isolation/enabled.js +0 -19
- package/dist/src/project-graph/plugins/isolation/index.d.ts +0 -1
- package/dist/src/project-graph/plugins/isolation/index.js +0 -5
- package/dist/src/project-graph/plugins/isolation/isolated-plugin.d.ts +0 -79
- package/dist/src/project-graph/plugins/isolation/isolated-plugin.js +0 -553
- package/dist/src/project-graph/plugins/isolation/load-isolated-plugin.d.ts +0 -3
- package/dist/src/project-graph/plugins/isolation/load-isolated-plugin.js +0 -24
- package/dist/src/project-graph/plugins/isolation/message-types.d.ts +0 -59
- package/dist/src/project-graph/plugins/isolation/message-types.js +0 -9
- package/dist/src/project-graph/plugins/isolation/messaging.d.ts +0 -155
- package/dist/src/project-graph/plugins/isolation/messaging.js +0 -87
- package/dist/src/project-graph/plugins/isolation/plugin-lifecycle-manager.d.ts +0 -82
- package/dist/src/project-graph/plugins/isolation/plugin-lifecycle-manager.js +0 -188
- package/dist/src/project-graph/plugins/isolation/plugin-worker.d.ts +0 -2
- package/dist/src/project-graph/plugins/isolation/plugin-worker.js +0 -221
- package/dist/src/project-graph/plugins/isolation/worker-streaming.d.ts +0 -14
- package/dist/src/project-graph/plugins/isolation/worker-streaming.js +0 -39
- package/dist/src/project-graph/plugins/load-resolved-plugin.d.ts +0 -3
- package/dist/src/project-graph/plugins/load-resolved-plugin.js +0 -24
- package/dist/src/project-graph/plugins/loaded-nx-plugin.d.ts +0 -41
- package/dist/src/project-graph/plugins/loaded-nx-plugin.js +0 -104
- package/dist/src/project-graph/plugins/public-api.d.ts +0 -139
- package/dist/src/project-graph/plugins/public-api.js +0 -4
- package/dist/src/project-graph/plugins/resolve-plugin.d.ts +0 -25
- package/dist/src/project-graph/plugins/resolve-plugin.js +0 -277
- package/dist/src/project-graph/plugins/tasks-execution-hooks.d.ts +0 -3
- package/dist/src/project-graph/plugins/tasks-execution-hooks.js +0 -67
- package/dist/src/project-graph/plugins/transpiler.d.ts +0 -20
- package/dist/src/project-graph/plugins/transpiler.js +0 -99
- package/dist/src/project-graph/plugins/utils.d.ts +0 -4
- package/dist/src/project-graph/plugins/utils.js +0 -32
- package/dist/src/project-graph/project-graph-builder.d.ts +0 -133
- package/dist/src/project-graph/project-graph-builder.js +0 -395
- package/dist/src/project-graph/project-graph.d.ts +0 -54
- package/dist/src/project-graph/project-graph.js +0 -460
- package/dist/src/project-graph/utils/build-all-workspace-files.d.ts +0 -2
- package/dist/src/project-graph/utils/build-all-workspace-files.js +0 -14
- package/dist/src/project-graph/utils/find-project-for-path.d.ts +0 -20
- package/dist/src/project-graph/utils/find-project-for-path.js +0 -55
- package/dist/src/project-graph/utils/implicit-project-dependencies.d.ts +0 -3
- package/dist/src/project-graph/utils/implicit-project-dependencies.js +0 -18
- package/dist/src/project-graph/utils/normalize-project-nodes.d.ts +0 -6
- package/dist/src/project-graph/utils/normalize-project-nodes.js +0 -117
- package/dist/src/project-graph/utils/project-configuration/name-substitution-manager.d.ts +0 -48
- package/dist/src/project-graph/utils/project-configuration/name-substitution-manager.js +0 -270
- package/dist/src/project-graph/utils/project-configuration/project-nodes-manager.d.ts +0 -49
- package/dist/src/project-graph/utils/project-configuration/project-nodes-manager.js +0 -296
- package/dist/src/project-graph/utils/project-configuration/source-maps.d.ts +0 -34
- package/dist/src/project-graph/utils/project-configuration/source-maps.js +0 -85
- package/dist/src/project-graph/utils/project-configuration/target-defaults.d.ts +0 -50
- package/dist/src/project-graph/utils/project-configuration/target-defaults.js +0 -466
- package/dist/src/project-graph/utils/project-configuration/target-merging.d.ts +0 -32
- package/dist/src/project-graph/utils/project-configuration/target-merging.js +0 -507
- package/dist/src/project-graph/utils/project-configuration/target-normalization.d.ts +0 -12
- package/dist/src/project-graph/utils/project-configuration/target-normalization.js +0 -313
- package/dist/src/project-graph/utils/project-configuration/utils.d.ts +0 -38
- package/dist/src/project-graph/utils/project-configuration/utils.js +0 -215
- package/dist/src/project-graph/utils/project-configuration-utils.d.ts +0 -86
- package/dist/src/project-graph/utils/project-configuration-utils.js +0 -325
- package/dist/src/project-graph/utils/retrieve-workspace-files.d.ts +0 -35
- package/dist/src/project-graph/utils/retrieve-workspace-files.js +0 -110
- package/dist/src/tasks-runner/batch/batch-messages.d.ts +0 -35
- package/dist/src/tasks-runner/batch/batch-messages.js +0 -9
- package/dist/src/tasks-runner/batch/run-batch.d.ts +0 -1
- package/dist/src/tasks-runner/batch/run-batch.js +0 -78
- package/dist/src/tasks-runner/cache.d.ts +0 -94
- package/dist/src/tasks-runner/cache.js +0 -604
- package/dist/src/tasks-runner/create-task-graph.d.ts +0 -41
- package/dist/src/tasks-runner/create-task-graph.js +0 -305
- package/dist/src/tasks-runner/default-tasks-runner.d.ts +0 -25
- package/dist/src/tasks-runner/default-tasks-runner.js +0 -74
- package/dist/src/tasks-runner/fork.d.ts +0 -1
- package/dist/src/tasks-runner/fork.js +0 -73
- package/dist/src/tasks-runner/forked-process-task-runner.d.ts +0 -42
- package/dist/src/tasks-runner/forked-process-task-runner.js +0 -299
- package/dist/src/tasks-runner/init-tasks-runner.d.ts +0 -7
- package/dist/src/tasks-runner/init-tasks-runner.js +0 -86
- package/dist/src/tasks-runner/is-tui-enabled.d.ts +0 -18
- package/dist/src/tasks-runner/is-tui-enabled.js +0 -93
- 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/dist/src/tasks-runner/life-cycle.d.ts +0 -86
- package/dist/src/tasks-runner/life-cycle.js +0 -148
- package/dist/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts +0 -25
- package/dist/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +0 -366
- package/dist/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.d.ts +0 -24
- package/dist/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +0 -238
- package/dist/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.d.ts +0 -5
- package/dist/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.js +0 -16
- package/dist/src/tasks-runner/life-cycles/formatting-utils.d.ts +0 -3
- package/dist/src/tasks-runner/life-cycles/formatting-utils.js +0 -55
- package/dist/src/tasks-runner/life-cycles/invoke-runner-terminal-output-life-cycle.d.ts +0 -13
- package/dist/src/tasks-runner/life-cycles/invoke-runner-terminal-output-life-cycle.js +0 -67
- package/dist/src/tasks-runner/life-cycles/performance-analysis.d.ts +0 -173
- package/dist/src/tasks-runner/life-cycles/performance-analysis.js +0 -508
- package/dist/src/tasks-runner/life-cycles/performance-life-cycle.d.ts +0 -59
- package/dist/src/tasks-runner/life-cycles/performance-life-cycle.js +0 -193
- package/dist/src/tasks-runner/life-cycles/performance-report.d.ts +0 -77
- package/dist/src/tasks-runner/life-cycles/performance-report.js +0 -428
- package/dist/src/tasks-runner/life-cycles/pretty-time.d.ts +0 -4
- package/dist/src/tasks-runner/life-cycles/pretty-time.js +0 -73
- package/dist/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.d.ts +0 -54
- package/dist/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +0 -203
- package/dist/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.d.ts +0 -54
- package/dist/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js +0 -193
- package/dist/src/tasks-runner/life-cycles/store-run-information-life-cycle.d.ts +0 -17
- package/dist/src/tasks-runner/life-cycles/store-run-information-life-cycle.js +0 -87
- package/dist/src/tasks-runner/life-cycles/task-history-life-cycle-old.d.ts +0 -11
- package/dist/src/tasks-runner/life-cycles/task-history-life-cycle-old.js +0 -91
- package/dist/src/tasks-runner/life-cycles/task-history-life-cycle.d.ts +0 -16
- package/dist/src/tasks-runner/life-cycles/task-history-life-cycle.js +0 -112
- package/dist/src/tasks-runner/life-cycles/task-profiling-life-cycle.d.ts +0 -14
- package/dist/src/tasks-runner/life-cycles/task-profiling-life-cycle.js +0 -73
- package/dist/src/tasks-runner/life-cycles/task-results-life-cycle.d.ts +0 -6
- package/dist/src/tasks-runner/life-cycles/task-results-life-cycle.js +0 -17
- package/dist/src/tasks-runner/life-cycles/task-telemetry-life-cycle.d.ts +0 -9
- package/dist/src/tasks-runner/life-cycles/task-telemetry-life-cycle.js +0 -42
- package/dist/src/tasks-runner/life-cycles/task-timings-life-cycle.d.ts +0 -8
- package/dist/src/tasks-runner/life-cycles/task-timings-life-cycle.js +0 -39
- package/dist/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts +0 -19
- package/dist/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +0 -339
- package/dist/src/tasks-runner/life-cycles/view-logs-utils.d.ts +0 -1
- package/dist/src/tasks-runner/life-cycles/view-logs-utils.js +0 -15
- package/dist/src/tasks-runner/process-metrics-service.d.ts +0 -53
- package/dist/src/tasks-runner/process-metrics-service.js +0 -161
- package/dist/src/tasks-runner/pseudo-ipc.d.ts +0 -48
- package/dist/src/tasks-runner/pseudo-ipc.js +0 -157
- package/dist/src/tasks-runner/pseudo-terminal.d.ts +0 -72
- package/dist/src/tasks-runner/pseudo-terminal.js +0 -209
- package/dist/src/tasks-runner/remove-old-cache-records.d.ts +0 -1
- package/dist/src/tasks-runner/remove-old-cache-records.js +0 -60
- package/dist/src/tasks-runner/run-command.d.ts +0 -42
- package/dist/src/tasks-runner/run-command.js +0 -895
- package/dist/src/tasks-runner/running-tasks/batch-process.d.ts +0 -74
- package/dist/src/tasks-runner/running-tasks/batch-process.js +0 -263
- package/dist/src/tasks-runner/running-tasks/node-child-process.d.ts +0 -40
- package/dist/src/tasks-runner/running-tasks/node-child-process.js +0 -175
- package/dist/src/tasks-runner/running-tasks/noop-child-process.d.ts +0 -16
- package/dist/src/tasks-runner/running-tasks/noop-child-process.js +0 -22
- package/dist/src/tasks-runner/running-tasks/output-prefix.d.ts +0 -13
- package/dist/src/tasks-runner/running-tasks/output-prefix.js +0 -63
- package/dist/src/tasks-runner/running-tasks/running-task.d.ts +0 -11
- package/dist/src/tasks-runner/running-tasks/running-task.js +0 -6
- package/dist/src/tasks-runner/running-tasks/shared-running-task.d.ts +0 -14
- package/dist/src/tasks-runner/running-tasks/shared-running-task.js +0 -30
- package/dist/src/tasks-runner/task-env-paths.d.ts +0 -1
- package/dist/src/tasks-runner/task-env-paths.js +0 -45
- package/dist/src/tasks-runner/task-env.d.ts +0 -56
- package/dist/src/tasks-runner/task-env.js +0 -237
- package/dist/src/tasks-runner/task-graph-utils.d.ts +0 -30
- package/dist/src/tasks-runner/task-graph-utils.js +0 -225
- package/dist/src/tasks-runner/task-io-service.d.ts +0 -96
- package/dist/src/tasks-runner/task-io-service.js +0 -122
- package/dist/src/tasks-runner/task-orchestrator.d.ts +0 -260
- package/dist/src/tasks-runner/task-orchestrator.js +0 -1521
- package/dist/src/tasks-runner/tasks-runner.d.ts +0 -24
- package/dist/src/tasks-runner/tasks-runner.js +0 -2
- package/dist/src/tasks-runner/tasks-schedule.d.ts +0 -48
- package/dist/src/tasks-runner/tasks-schedule.js +0 -258
- package/dist/src/tasks-runner/utils.d.ts +0 -61
- package/dist/src/tasks-runner/utils.js +0 -447
- package/dist/src/utils/ab-testing.d.ts +0 -59
- package/dist/src/utils/ab-testing.js +0 -142
- package/dist/src/utils/acknowledge-build-scripts.d.ts +0 -13
- package/dist/src/utils/acknowledge-build-scripts.js +0 -102
- package/dist/src/utils/all-file-data.d.ts +0 -2
- package/dist/src/utils/all-file-data.js +0 -8
- package/dist/src/utils/analytics-enabled.d.ts +0 -7
- package/dist/src/utils/analytics-enabled.js +0 -11
- package/dist/src/utils/analytics-prompt.d.ts +0 -9
- package/dist/src/utils/analytics-prompt.js +0 -81
- package/dist/src/utils/assert-workspace-validity.d.ts +0 -3
- package/dist/src/utils/assert-workspace-validity.js +0 -90
- package/dist/src/utils/async-iterator.d.ts +0 -2
- package/dist/src/utils/async-iterator.js +0 -18
- package/dist/src/utils/binary-extensions.d.ts +0 -1
- package/dist/src/utils/binary-extensions.js +0 -279
- package/dist/src/utils/cache-directory.d.ts +0 -68
- package/dist/src/utils/cache-directory.js +0 -337
- package/dist/src/utils/call-sites.d.ts +0 -14
- package/dist/src/utils/call-sites.js +0 -28
- package/dist/src/utils/catalog/bun-manager-utils.d.ts +0 -8
- package/dist/src/utils/catalog/bun-manager-utils.js +0 -174
- package/dist/src/utils/catalog/bun-manager.d.ts +0 -28
- package/dist/src/utils/catalog/bun-manager.js +0 -130
- package/dist/src/utils/catalog/index.d.ts +0 -22
- package/dist/src/utils/catalog/index.js +0 -87
- package/dist/src/utils/catalog/manager-factory.d.ts +0 -5
- package/dist/src/utils/catalog/manager-factory.js +0 -23
- package/dist/src/utils/catalog/manager-utils.d.ts +0 -15
- package/dist/src/utils/catalog/manager-utils.js +0 -237
- package/dist/src/utils/catalog/manager.d.ts +0 -52
- package/dist/src/utils/catalog/manager.js +0 -43
- package/dist/src/utils/catalog/pnpm-manager.d.ts +0 -23
- package/dist/src/utils/catalog/pnpm-manager.js +0 -142
- package/dist/src/utils/catalog/types.d.ts +0 -15
- package/dist/src/utils/catalog/types.js +0 -2
- package/dist/src/utils/catalog/yarn-manager.d.ts +0 -26
- package/dist/src/utils/catalog/yarn-manager.js +0 -130
- package/dist/src/utils/child-process.d.ts +0 -52
- package/dist/src/utils/child-process.js +0 -194
- package/dist/src/utils/chunkify.d.ts +0 -17
- package/dist/src/utils/chunkify.js +0 -51
- package/dist/src/utils/code-frames.d.ts +0 -14
- package/dist/src/utils/code-frames.js +0 -116
- package/dist/src/utils/collapse-expanded-outputs.d.ts +0 -10
- package/dist/src/utils/collapse-expanded-outputs.js +0 -72
- package/dist/src/utils/command-line-utils.d.ts +0 -57
- package/dist/src/utils/command-line-utils.js +0 -259
- package/dist/src/utils/compile-cache.d.ts +0 -24
- package/dist/src/utils/compile-cache.js +0 -49
- package/dist/src/utils/consume-messages-from-socket.d.ts +0 -44
- package/dist/src/utils/consume-messages-from-socket.js +0 -291
- package/dist/src/utils/db-connection.d.ts +0 -14
- package/dist/src/utils/db-connection.js +0 -56
- package/dist/src/utils/default-base.d.ts +0 -1
- package/dist/src/utils/default-base.js +0 -17
- package/dist/src/utils/delayed-spinner.d.ts +0 -51
- package/dist/src/utils/delayed-spinner.js +0 -88
- package/dist/src/utils/dotenv.d.ts +0 -7
- package/dist/src/utils/dotenv.js +0 -19
- package/dist/src/utils/enable-compile-cache.d.ts +0 -1
- package/dist/src/utils/enable-compile-cache.js +0 -7
- package/dist/src/utils/exit-codes.d.ts +0 -24
- package/dist/src/utils/exit-codes.js +0 -94
- package/dist/src/utils/fileutils.d.ts +0 -72
- package/dist/src/utils/fileutils.js +0 -117
- package/dist/src/utils/find-matching-projects.d.ts +0 -18
- package/dist/src/utils/find-matching-projects.js +0 -222
- package/dist/src/utils/find-workspace-root.d.ts +0 -11
- package/dist/src/utils/find-workspace-root.js +0 -33
- package/dist/src/utils/formatters/index.d.ts +0 -13
- package/dist/src/utils/formatters/index.js +0 -74
- package/dist/src/utils/formatters/oxfmt.d.ts +0 -32
- package/dist/src/utils/formatters/oxfmt.js +0 -764
- package/dist/src/utils/formatters/prettier.d.ts +0 -26
- package/dist/src/utils/formatters/prettier.js +0 -201
- package/dist/src/utils/formatters/shared.d.ts +0 -5
- package/dist/src/utils/formatters/shared.js +0 -8
- package/dist/src/utils/get-package-name-from-import-path.d.ts +0 -1
- package/dist/src/utils/get-package-name-from-import-path.js +0 -17
- package/dist/src/utils/git-revision.d.ts +0 -12
- package/dist/src/utils/git-revision.js +0 -25
- package/dist/src/utils/git-utils.d.ts +0 -106
- package/dist/src/utils/git-utils.index-filter.d.ts +0 -1
- package/dist/src/utils/git-utils.index-filter.js +0 -23
- package/dist/src/utils/git-utils.js +0 -933
- package/dist/src/utils/git-utils.tree-filter.d.ts +0 -1
- package/dist/src/utils/git-utils.tree-filter.js +0 -47
- package/dist/src/utils/git-worktrees.d.ts +0 -30
- package/dist/src/utils/git-worktrees.js +0 -212
- package/dist/src/utils/globs.d.ts +0 -3
- package/dist/src/utils/globs.js +0 -18
- package/dist/src/utils/handle-errors.d.ts +0 -1
- package/dist/src/utils/handle-errors.js +0 -91
- package/dist/src/utils/handle-import.d.ts +0 -15
- package/dist/src/utils/handle-import.js +0 -86
- package/dist/src/utils/has-nx-js-plugin.d.ts +0 -9
- package/dist/src/utils/has-nx-js-plugin.js +0 -24
- package/dist/src/utils/ignore.d.ts +0 -178
- package/dist/src/utils/ignore.js +0 -294
- package/dist/src/utils/installation-directory.d.ts +0 -2
- package/dist/src/utils/installation-directory.js +0 -12
- package/dist/src/utils/installed-nx-version.d.ts +0 -23
- package/dist/src/utils/installed-nx-version.js +0 -113
- package/dist/src/utils/is-ci.d.ts +0 -1
- package/dist/src/utils/is-ci.js +0 -26
- package/dist/src/utils/is-sandbox.d.ts +0 -1
- package/dist/src/utils/is-sandbox.js +0 -11
- package/dist/src/utils/json-diff.d.ts +0 -18
- package/dist/src/utils/json-diff.js +0 -112
- package/dist/src/utils/json.d.ts +0 -44
- package/dist/src/utils/json.js +0 -62
- package/dist/src/utils/kill-child-on-host-exit.d.ts +0 -7
- package/dist/src/utils/kill-child-on-host-exit.js +0 -42
- package/dist/src/utils/legacy-task-history.d.ts +0 -8
- package/dist/src/utils/legacy-task-history.js +0 -87
- package/dist/src/utils/logger.d.ts +0 -23
- package/dist/src/utils/logger.js +0 -74
- package/dist/src/utils/long-running-target.d.ts +0 -10
- package/dist/src/utils/long-running-target.js +0 -19
- package/dist/src/utils/machine-id-cache.d.ts +0 -5
- package/dist/src/utils/machine-id-cache.js +0 -93
- package/dist/src/utils/min-release-age/behavior/bun.d.ts +0 -30
- package/dist/src/utils/min-release-age/behavior/bun.js +0 -274
- package/dist/src/utils/min-release-age/behavior/npm.d.ts +0 -21
- package/dist/src/utils/min-release-age/behavior/npm.js +0 -296
- package/dist/src/utils/min-release-age/behavior/pnpm.d.ts +0 -23
- package/dist/src/utils/min-release-age/behavior/pnpm.js +0 -527
- package/dist/src/utils/min-release-age/behavior/yarn.d.ts +0 -22
- package/dist/src/utils/min-release-age/behavior/yarn.js +0 -314
- package/dist/src/utils/min-release-age/constants.d.ts +0 -3
- package/dist/src/utils/min-release-age/constants.js +0 -8
- package/dist/src/utils/min-release-age/errors.d.ts +0 -28
- package/dist/src/utils/min-release-age/errors.js +0 -22
- package/dist/src/utils/min-release-age/packument.d.ts +0 -13
- package/dist/src/utils/min-release-age/packument.js +0 -34
- package/dist/src/utils/min-release-age/pick.d.ts +0 -72
- package/dist/src/utils/min-release-age/pick.js +0 -206
- package/dist/src/utils/min-release-age/pnpm-exclude-writer.d.ts +0 -12
- package/dist/src/utils/min-release-age/pnpm-exclude-writer.js +0 -58
- package/dist/src/utils/min-release-age/policy.d.ts +0 -38
- package/dist/src/utils/min-release-age/policy.js +0 -59
- package/dist/src/utils/min-release-age/resolve.d.ts +0 -8
- package/dist/src/utils/min-release-age/resolve.js +0 -14
- package/dist/src/utils/nx-cloud-utils.d.ts +0 -4
- package/dist/src/utils/nx-cloud-utils.js +0 -28
- package/dist/src/utils/nx-console-prompt.d.ts +0 -1
- package/dist/src/utils/nx-console-prompt.js +0 -61
- package/dist/src/utils/nx-key.d.ts +0 -6
- package/dist/src/utils/nx-key.js +0 -50
- package/dist/src/utils/nx-package-group.d.ts +0 -8
- package/dist/src/utils/nx-package-group.js +0 -15
- package/dist/src/utils/nx-tmp-dir.d.ts +0 -23
- package/dist/src/utils/nx-tmp-dir.js +0 -45
- package/dist/src/utils/object-sort.d.ts +0 -1
- package/dist/src/utils/object-sort.js +0 -9
- package/dist/src/utils/output.d.ts +0 -232
- package/dist/src/utils/output.js +0 -548
- package/dist/src/utils/owned-private-dir.d.ts +0 -145
- package/dist/src/utils/owned-private-dir.js +0 -362
- package/dist/src/utils/package-json.d.ts +0 -231
- package/dist/src/utils/package-json.js +0 -387
- package/dist/src/utils/package-manager-config/bunfig.d.ts +0 -14
- package/dist/src/utils/package-manager-config/bunfig.js +0 -49
- package/dist/src/utils/package-manager-config/npmrc.d.ts +0 -23
- package/dist/src/utils/package-manager-config/npmrc.js +0 -124
- package/dist/src/utils/package-manager-config/pnpm-config.d.ts +0 -17
- package/dist/src/utils/package-manager-config/pnpm-config.js +0 -60
- package/dist/src/utils/package-manager.d.ts +0 -161
- package/dist/src/utils/package-manager.js +0 -850
- package/dist/src/utils/params.d.ts +0 -146
- package/dist/src/utils/params.js +0 -768
- package/dist/src/utils/path.d.ts +0 -19
- package/dist/src/utils/path.js +0 -38
- package/dist/src/utils/perf-hooks.d.ts +0 -19
- package/dist/src/utils/perf-logging.d.ts +0 -1
- package/dist/src/utils/perf-logging.js +0 -46
- package/dist/src/utils/permission-errors.d.ts +0 -11
- package/dist/src/utils/permission-errors.js +0 -17
- package/dist/src/utils/plugin-cache-utils.d.ts +0 -82
- package/dist/src/utils/plugin-cache-utils.js +0 -212
- package/dist/src/utils/plugin-progress-text.d.ts +0 -1
- package/dist/src/utils/plugin-progress-text.js +0 -15
- package/dist/src/utils/plugins/atomizer-utils.d.ts +0 -11
- package/dist/src/utils/plugins/atomizer-utils.js +0 -23
- package/dist/src/utils/plugins/core-plugins.d.ts +0 -6
- package/dist/src/utils/plugins/core-plugins.js +0 -117
- package/dist/src/utils/plugins/index.d.ts +0 -5
- package/dist/src/utils/plugins/index.js +0 -15
- package/dist/src/utils/plugins/installed-plugins.d.ts +0 -5
- package/dist/src/utils/plugins/installed-plugins.js +0 -76
- package/dist/src/utils/plugins/local-plugins.d.ts +0 -22
- package/dist/src/utils/plugins/local-plugins.js +0 -60
- package/dist/src/utils/plugins/output.d.ts +0 -34
- package/dist/src/utils/plugins/output.js +0 -201
- package/dist/src/utils/plugins/plugin-capabilities.d.ts +0 -15
- package/dist/src/utils/plugins/plugin-capabilities.js +0 -78
- package/dist/src/utils/pnpm-workspace.d.ts +0 -8
- package/dist/src/utils/pnpm-workspace.js +0 -2
- package/dist/src/utils/print-help.d.ts +0 -11
- package/dist/src/utils/print-help.js +0 -259
- package/dist/src/utils/progress-topics.d.ts +0 -19
- package/dist/src/utils/progress-topics.js +0 -21
- package/dist/src/utils/project-graph-utils.d.ts +0 -18
- package/dist/src/utils/project-graph-utils.js +0 -78
- package/dist/src/utils/promised-based-queue.d.ts +0 -6
- package/dist/src/utils/promised-based-queue.js +0 -43
- package/dist/src/utils/prompt-helpers.d.ts +0 -53
- package/dist/src/utils/prompt-helpers.js +0 -111
- package/dist/src/utils/provenance.d.ts +0 -47
- package/dist/src/utils/provenance.js +0 -107
- package/dist/src/utils/registry-config/bun.d.ts +0 -2
- package/dist/src/utils/registry-config/bun.js +0 -257
- package/dist/src/utils/registry-config/index.d.ts +0 -13
- package/dist/src/utils/registry-config/index.js +0 -102
- package/dist/src/utils/registry-config/pnpm.d.ts +0 -2
- package/dist/src/utils/registry-config/pnpm.js +0 -1551
- package/dist/src/utils/registry-config/utils.d.ts +0 -195
- package/dist/src/utils/registry-config/utils.js +0 -496
- package/dist/src/utils/registry-config/yarn-berry.d.ts +0 -2
- package/dist/src/utils/registry-config/yarn-berry.js +0 -612
- package/dist/src/utils/registry-config/yarn-classic.d.ts +0 -2
- package/dist/src/utils/registry-config/yarn-classic.js +0 -1001
- package/dist/src/utils/require-nx-key.d.ts +0 -1
- package/dist/src/utils/require-nx-key.js +0 -23
- package/dist/src/utils/safe-spawn.d.ts +0 -24
- package/dist/src/utils/safe-spawn.js +0 -104
- package/dist/src/utils/serializable-error.d.ts +0 -4
- package/dist/src/utils/serializable-error.js +0 -33
- package/dist/src/utils/serialize-overrides-into-command-line.d.ts +0 -3
- package/dist/src/utils/serialize-overrides-into-command-line.js +0 -41
- package/dist/src/utils/serialize-target.d.ts +0 -1
- package/dist/src/utils/serialize-target.js +0 -6
- package/dist/src/utils/shell-quoting.d.ts +0 -25
- package/dist/src/utils/shell-quoting.js +0 -76
- package/dist/src/utils/socket-refused-exit-code.d.ts +0 -15
- package/dist/src/utils/socket-refused-exit-code.js +0 -18
- package/dist/src/utils/spinner.d.ts +0 -24
- package/dist/src/utils/spinner.js +0 -77
- package/dist/src/utils/split-target.d.ts +0 -15
- package/dist/src/utils/split-target.js +0 -239
- package/dist/src/utils/strip-indents.d.ts +0 -14
- package/dist/src/utils/strip-indents.js +0 -23
- package/dist/src/utils/sync-generators.d.ts +0 -66
- package/dist/src/utils/sync-generators.js +0 -355
- package/dist/src/utils/tar.d.ts +0 -8
- package/dist/src/utils/tar.js +0 -44
- package/dist/src/utils/task-history.d.ts +0 -17
- package/dist/src/utils/task-history.js +0 -51
- package/dist/src/utils/terminal-link.d.ts +0 -20
- package/dist/src/utils/terminal-link.js +0 -85
- package/dist/src/utils/update-nxw.d.ts +0 -2
- package/dist/src/utils/update-nxw.js +0 -22
- package/dist/src/utils/versions.d.ts +0 -1
- package/dist/src/utils/versions.js +0 -4
- package/dist/src/utils/wait-for-socket-connection.d.ts +0 -26
- package/dist/src/utils/wait-for-socket-connection.js +0 -59
- package/dist/src/utils/workspace-context.d.ts +0 -21
- package/dist/src/utils/workspace-context.js +0 -120
- package/dist/src/utils/workspace-id.d.ts +0 -20
- package/dist/src/utils/workspace-id.js +0 -54
- package/dist/src/utils/workspace-root.d.ts +0 -6
- package/dist/src/utils/workspace-root.js +0 -40
- package/dist/src/utils/write-formatted-json-file.d.ts +0 -7
- package/dist/src/utils/write-formatted-json-file.js +0 -24
- package/dist/src/utils/yarn-syml/index.d.ts +0 -23
- package/dist/src/utils/yarn-syml/index.js +0 -151
- package/dist/src/utils/yarn-syml/syml-grammar.js +0 -1911
- package/dist/tasks-runners/default.d.ts +0 -1
- package/dist/tasks-runners/default.js +0 -5
- package/executors.json +0 -19
- package/generators.json +0 -16
- package/migrations.json +0 -195
- package/schemas/migrations-schema.json +0 -186
- package/schemas/nx-schema.json +0 -1615
- package/schemas/project-schema.json +0 -426
- package/schemas/workspace-schema.json +0 -185
|
@@ -1,895 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.runCommand = runCommand;
|
|
4
|
-
exports.runCommandForTasks = runCommandForTasks;
|
|
5
|
-
exports.setEnvVarsBasedOnArgs = setEnvVarsBasedOnArgs;
|
|
6
|
-
exports.invokeTasksRunner = invokeTasksRunner;
|
|
7
|
-
exports.constructLifeCycles = constructLifeCycles;
|
|
8
|
-
exports.getRunner = getRunner;
|
|
9
|
-
exports.getRunnerOptions = getRunnerOptions;
|
|
10
|
-
const tslib_1 = require("tslib");
|
|
11
|
-
const prompt_helpers_1 = require("../utils/prompt-helpers");
|
|
12
|
-
const node_util_1 = require("node:util");
|
|
13
|
-
const nx_json_1 = require("../config/nx-json");
|
|
14
|
-
const client_1 = require("../daemon/client/client");
|
|
15
|
-
const spinner_1 = require("../utils/spinner");
|
|
16
|
-
const create_task_hasher_1 = require("../hasher/create-task-hasher");
|
|
17
|
-
const hash_task_1 = require("../hasher/hash-task");
|
|
18
|
-
const native_1 = require("../native");
|
|
19
|
-
const tasks_execution_hooks_1 = require("../project-graph/plugins/tasks-execution-hooks");
|
|
20
|
-
const project_graph_1 = require("../project-graph/project-graph");
|
|
21
|
-
const handle_errors_1 = require("../utils/handle-errors");
|
|
22
|
-
const is_ci_1 = require("../utils/is-ci");
|
|
23
|
-
const nx_cloud_utils_1 = require("../utils/nx-cloud-utils");
|
|
24
|
-
const update_manager_1 = require("../nx-cloud/update-manager");
|
|
25
|
-
const logger_1 = require("../utils/logger");
|
|
26
|
-
const nx_key_1 = require("../utils/nx-key");
|
|
27
|
-
const output_1 = require("../utils/output");
|
|
28
|
-
const configure_ai_agents_disclaimer_1 = require("../ai/configure-ai-agents-disclaimer");
|
|
29
|
-
const sync_generators_1 = require("../utils/sync-generators");
|
|
30
|
-
const workspace_root_1 = require("../utils/workspace-root");
|
|
31
|
-
const create_task_graph_1 = require("./create-task-graph");
|
|
32
|
-
const is_tui_enabled_1 = require("./is-tui-enabled");
|
|
33
|
-
const life_cycle_1 = require("./life-cycle");
|
|
34
|
-
const dynamic_run_many_terminal_output_life_cycle_1 = require("./life-cycles/dynamic-run-many-terminal-output-life-cycle");
|
|
35
|
-
const dynamic_run_one_terminal_output_life_cycle_1 = require("./life-cycles/dynamic-run-one-terminal-output-life-cycle");
|
|
36
|
-
const static_run_many_terminal_output_life_cycle_1 = require("./life-cycles/static-run-many-terminal-output-life-cycle");
|
|
37
|
-
const static_run_one_terminal_output_life_cycle_1 = require("./life-cycles/static-run-one-terminal-output-life-cycle");
|
|
38
|
-
const store_run_information_life_cycle_1 = require("./life-cycles/store-run-information-life-cycle");
|
|
39
|
-
const task_history_life_cycle_1 = require("./life-cycles/task-history-life-cycle");
|
|
40
|
-
const task_profiling_life_cycle_1 = require("./life-cycles/task-profiling-life-cycle");
|
|
41
|
-
const performance_life_cycle_1 = require("./life-cycles/performance-life-cycle");
|
|
42
|
-
const performance_report_1 = require("./life-cycles/performance-report");
|
|
43
|
-
const task_results_life_cycle_1 = require("./life-cycles/task-results-life-cycle");
|
|
44
|
-
const task_telemetry_life_cycle_1 = require("./life-cycles/task-telemetry-life-cycle");
|
|
45
|
-
const task_timings_life_cycle_1 = require("./life-cycles/task-timings-life-cycle");
|
|
46
|
-
const tui_summary_life_cycle_1 = require("./life-cycles/tui-summary-life-cycle");
|
|
47
|
-
const task_graph_utils_1 = require("./task-graph-utils");
|
|
48
|
-
const utils_1 = require("./utils");
|
|
49
|
-
const exit_codes_1 = require("../utils/exit-codes");
|
|
50
|
-
const handle_import_1 = require("../utils/handle-import");
|
|
51
|
-
const pc = tslib_1.__importStar(require("picocolors"));
|
|
52
|
-
const originalStdoutWrite = process.stdout.write.bind(process.stdout);
|
|
53
|
-
const originalStderrWrite = process.stderr.write.bind(process.stderr);
|
|
54
|
-
const originalConsoleLog = console.log.bind(console);
|
|
55
|
-
const originalConsoleError = console.error.bind(console);
|
|
56
|
-
// Only used in the non-TTY error path. In non-TTY the function `process.exit(1)`s
|
|
57
|
-
// before the `applyChanges` branch can auto-sync, so the auto-sync bullet keeps
|
|
58
|
-
// the "interactive environments" qualifier to avoid suggesting a config change
|
|
59
|
-
// that won't help in CI/agent contexts.
|
|
60
|
-
const SYNC_FIX_MESSAGE_LINES = [
|
|
61
|
-
'To sync the workspace:',
|
|
62
|
-
'- Run `nx sync` (no flags) to sync now.',
|
|
63
|
-
'- Run `nx sync:check` to preview the changes without modifying any files.',
|
|
64
|
-
'- Set `sync.applyChanges` to `true` in your `nx.json` to sync automatically when running tasks in interactive environments.',
|
|
65
|
-
'',
|
|
66
|
-
'For more information, refer to the docs: https://nx.dev/concepts/sync-generators',
|
|
67
|
-
];
|
|
68
|
-
const APPLY_CHANGES_FALSE_FIX_MESSAGE_LINES = [
|
|
69
|
-
'Your workspace is set to not sync automatically (`sync.applyChanges` is `false` in your `nx.json`).',
|
|
70
|
-
'Run `nx sync` (no flags) to sync now, or set `sync.applyChanges` to `true` to sync automatically before each task run.',
|
|
71
|
-
];
|
|
72
|
-
const SYNC_SKIPPED_FIX_MESSAGE_LINES = [
|
|
73
|
-
'This could lead to unexpected results or errors when running tasks.',
|
|
74
|
-
'',
|
|
75
|
-
'Run `nx sync` (no flags) later to sync the workspace.',
|
|
76
|
-
];
|
|
77
|
-
async function getTerminalOutputLifeCycle(initiatingProject, initiatingTasks, projectNames, tasks, taskGraph, nxArgs, nxJson, overrides) {
|
|
78
|
-
const overridesWithoutHidden = { ...overrides };
|
|
79
|
-
delete overridesWithoutHidden['__overrides_unparsed__'];
|
|
80
|
-
const isRunOne = initiatingProject != null;
|
|
81
|
-
if (tasks.length === 1 && !is_tui_enabled_1.ORIGINAL_TUI_ENV_VALUE) {
|
|
82
|
-
process.env.NX_TUI = 'false';
|
|
83
|
-
}
|
|
84
|
-
// Kick off in the background so the URL is ready by the exit report. A brief
|
|
85
|
-
// sync preamble (git remote + axios load) runs here; the network call does not.
|
|
86
|
-
(0, performance_report_1.prefetchRemoteCacheOnboardingUrl)(nxJson);
|
|
87
|
-
if ((0, is_tui_enabled_1.isTuiEnabled)()) {
|
|
88
|
-
const interceptedNxCloudLogs = [];
|
|
89
|
-
// Resolve where the Nx Cloud client bundle actually loads from so the
|
|
90
|
-
// stack-trace check below matches its frames. It is essentially never
|
|
91
|
-
// `{workspaceRoot}/.nx/cache/cloud`: the cache normally lives in the shared
|
|
92
|
-
// per-user `~/.nx/<hash>/cache`, and it can also be relocated via
|
|
93
|
-
// NX_CACHE_DIRECTORY, a custom `cacheDirectory` in nx.json, or the lerna
|
|
94
|
-
// `node_modules/.cache` location. Using the client's own resolver keeps the
|
|
95
|
-
// interception working in all of those cases.
|
|
96
|
-
const nxCloudClientDir = (0, update_manager_1.getBundleInstallDefaultLocation)();
|
|
97
|
-
const createPatchedConsoleMethod = (originalMethod) => {
|
|
98
|
-
return (...args) => {
|
|
99
|
-
// Check if the log came from the Nx Cloud client, otherwise invoke the original write method
|
|
100
|
-
const stackTrace = new Error().stack;
|
|
101
|
-
const isNxCloudLog = stackTrace.includes(nxCloudClientDir);
|
|
102
|
-
if (!isNxCloudLog) {
|
|
103
|
-
return originalMethod(...args);
|
|
104
|
-
}
|
|
105
|
-
// No-op the Nx Cloud client logs
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
// The cloud client calls console.log when NX_VERBOSE_LOGGING is set to true
|
|
109
|
-
console.log = createPatchedConsoleMethod(originalConsoleLog);
|
|
110
|
-
console.error = createPatchedConsoleMethod(originalConsoleError);
|
|
111
|
-
const patchedWrite = (_chunk, _encoding, callback) => {
|
|
112
|
-
// Preserve original behavior around callback and return value, just in case
|
|
113
|
-
if (callback) {
|
|
114
|
-
callback();
|
|
115
|
-
}
|
|
116
|
-
return true;
|
|
117
|
-
};
|
|
118
|
-
process.stdout.write = patchedWrite;
|
|
119
|
-
process.stderr.write = patchedWrite;
|
|
120
|
-
const { AppLifeCycle, restoreTerminal } = await (0, handle_import_1.handleImport)('../native/index.js', __dirname);
|
|
121
|
-
let appLifeCycle;
|
|
122
|
-
const isRunOne = initiatingProject != null;
|
|
123
|
-
const pinnedTasks = [];
|
|
124
|
-
let titleText = '';
|
|
125
|
-
if (isRunOne) {
|
|
126
|
-
const mainTaskId = initiatingTasks[0].id;
|
|
127
|
-
pinnedTasks.push(mainTaskId);
|
|
128
|
-
const mainContinuousDependencies = taskGraph.continuousDependencies[mainTaskId];
|
|
129
|
-
if (mainContinuousDependencies.length > 0) {
|
|
130
|
-
pinnedTasks.push(mainContinuousDependencies[0]);
|
|
131
|
-
}
|
|
132
|
-
const [, target] = mainTaskId.split(':');
|
|
133
|
-
titleText = `1 ${target} task`;
|
|
134
|
-
if (tasks.length > 1) {
|
|
135
|
-
const dependentTasksCount = tasks.length - 1;
|
|
136
|
-
const dependentTaskText = dependentTasksCount === 1 ? 'other' : 'others';
|
|
137
|
-
titleText += `, and ${dependentTasksCount} ${dependentTaskText} they depend on`;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
const mainTasksCount = projectNames.length;
|
|
142
|
-
const targetText = nxArgs.targets.join(', ');
|
|
143
|
-
const mainTaskText = mainTasksCount === 1 ? 'task' : 'tasks';
|
|
144
|
-
titleText = `${mainTasksCount} ${targetText} ${mainTaskText}`;
|
|
145
|
-
if (tasks.length > projectNames.length) {
|
|
146
|
-
const dependentTasksCount = tasks.length - projectNames.length;
|
|
147
|
-
const dependentTaskText = dependentTasksCount === 1 ? 'other' : 'others';
|
|
148
|
-
titleText += `, and ${dependentTasksCount} ${dependentTaskText} they depend on`;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
let resolveRenderIsDonePromise;
|
|
152
|
-
// Default renderIsDone that will be overridden if the TUI is used
|
|
153
|
-
let renderIsDone = new Promise((resolve) => (resolveRenderIsDonePromise = resolve));
|
|
154
|
-
const { lifeCycle: tsLifeCycle, printSummary } = (0, tui_summary_life_cycle_1.getTuiTerminalSummaryLifeCycle)({
|
|
155
|
-
projectNames,
|
|
156
|
-
tasks,
|
|
157
|
-
taskGraph,
|
|
158
|
-
args: nxArgs,
|
|
159
|
-
overrides: overridesWithoutHidden,
|
|
160
|
-
initiatingProject,
|
|
161
|
-
initiatingTasks,
|
|
162
|
-
resolveRenderIsDonePromise,
|
|
163
|
-
});
|
|
164
|
-
if (tasks.length === 0) {
|
|
165
|
-
renderIsDone = renderIsDone.then(() => {
|
|
166
|
-
// Revert the patched methods
|
|
167
|
-
process.stdout.write = originalStdoutWrite;
|
|
168
|
-
process.stderr.write = originalStderrWrite;
|
|
169
|
-
console.log = originalConsoleLog;
|
|
170
|
-
console.error = originalConsoleError;
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
const lifeCycles = [tsLifeCycle];
|
|
174
|
-
// Only run the TUI if there are tasks to run
|
|
175
|
-
if (tasks.length > 0) {
|
|
176
|
-
appLifeCycle = new AppLifeCycle(tasks, initiatingTasks.map((t) => t.id), isRunOne ? 0 /* RunMode.RunOne */ : 1 /* RunMode.RunMany */, pinnedTasks, nxArgs ?? {}, nxJson.tui ?? {}, titleText, workspace_root_1.workspaceRoot, taskGraph, (0, nx_cloud_utils_1.isNxCloudUsed)(nxJson));
|
|
177
|
-
// The native endCommand renders the perf report in the exit popup; the runner
|
|
178
|
-
// sources the payload and CompositeLifeCycle forwards it here.
|
|
179
|
-
lifeCycles.unshift(appLifeCycle);
|
|
180
|
-
/**
|
|
181
|
-
* Patch stdout.write and stderr.write methods to pass Nx Cloud client logs to the TUI via the lifecycle
|
|
182
|
-
*/
|
|
183
|
-
const createPatchedLogWrite = (originalWrite, isError) => {
|
|
184
|
-
// @ts-ignore
|
|
185
|
-
return (chunk, encoding, callback) => {
|
|
186
|
-
if (isError) {
|
|
187
|
-
(0, native_1.logDebug)(Buffer.isBuffer(chunk)
|
|
188
|
-
? chunk.toString(encoding)
|
|
189
|
-
: chunk.toString());
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
(0, native_1.logDebug)(Buffer.isBuffer(chunk)
|
|
193
|
-
? chunk.toString(encoding)
|
|
194
|
-
: chunk.toString());
|
|
195
|
-
}
|
|
196
|
-
// Check if the log came from the Nx Cloud client, otherwise invoke the original write method
|
|
197
|
-
const stackTrace = new Error().stack;
|
|
198
|
-
const isNxCloudLog = stackTrace.includes(nxCloudClientDir);
|
|
199
|
-
if (isNxCloudLog) {
|
|
200
|
-
interceptedNxCloudLogs.push(chunk);
|
|
201
|
-
// Do not bother to store logs with only whitespace characters, they aren't relevant for the TUI
|
|
202
|
-
const trimmedChunk = chunk.toString().trim();
|
|
203
|
-
if (trimmedChunk.length) {
|
|
204
|
-
// Remove ANSI escape codes, the TUI will control the formatting
|
|
205
|
-
// NOTE: this shows any message from the Nx Cloud client, including errors
|
|
206
|
-
appLifeCycle?.__setCloudMessage((0, node_util_1.stripVTControlCharacters)(trimmedChunk));
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
// Preserve original behavior around callback and return value, just in case
|
|
210
|
-
if (callback) {
|
|
211
|
-
callback();
|
|
212
|
-
}
|
|
213
|
-
return true;
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
const createPatchedConsoleMethod = (originalMethod) => {
|
|
217
|
-
return (...args) => {
|
|
218
|
-
// Check if the log came from the Nx Cloud client, otherwise invoke the original write method
|
|
219
|
-
const stackTrace = new Error().stack;
|
|
220
|
-
const isNxCloudLog = stackTrace.includes(nxCloudClientDir);
|
|
221
|
-
if (!isNxCloudLog) {
|
|
222
|
-
return originalMethod(...args);
|
|
223
|
-
}
|
|
224
|
-
// No-op the Nx Cloud client logs
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
process.stdout.write = createPatchedLogWrite(originalStdoutWrite, false);
|
|
228
|
-
process.stderr.write = createPatchedLogWrite(originalStderrWrite, true);
|
|
229
|
-
// The cloud client calls console.log when NX_VERBOSE_LOGGING is set to true
|
|
230
|
-
console.log = createPatchedConsoleMethod(originalConsoleLog);
|
|
231
|
-
console.error = createPatchedConsoleMethod(originalConsoleError);
|
|
232
|
-
globalThis.tuiOnProcessExit = () => {
|
|
233
|
-
restoreTerminal();
|
|
234
|
-
// Revert the patched methods
|
|
235
|
-
process.stdout.write = originalStdoutWrite;
|
|
236
|
-
process.stderr.write = originalStderrWrite;
|
|
237
|
-
console.log = originalConsoleLog;
|
|
238
|
-
console.error = originalConsoleError;
|
|
239
|
-
process.stdout.write('\n');
|
|
240
|
-
// Print the intercepted Nx Cloud logs
|
|
241
|
-
for (const log of interceptedNxCloudLogs) {
|
|
242
|
-
const logString = log.toString().trimStart();
|
|
243
|
-
process.stdout.write(logString);
|
|
244
|
-
if (logString) {
|
|
245
|
-
process.stdout.write('\n');
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
renderIsDone = new Promise((resolve) => {
|
|
250
|
-
appLifeCycle.__init(() => {
|
|
251
|
-
resolve();
|
|
252
|
-
});
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
return {
|
|
256
|
-
lifeCycle: new life_cycle_1.CompositeLifeCycle(lifeCycles),
|
|
257
|
-
restoreTerminal: () => {
|
|
258
|
-
process.stdout.write = originalStdoutWrite;
|
|
259
|
-
process.stderr.write = originalStderrWrite;
|
|
260
|
-
console.log = originalConsoleLog;
|
|
261
|
-
console.error = originalConsoleError;
|
|
262
|
-
restoreTerminal();
|
|
263
|
-
},
|
|
264
|
-
printSummary: () => printSummary(),
|
|
265
|
-
renderIsDone,
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
const { runnerOptions } = getRunner(nxArgs, nxJson);
|
|
269
|
-
const useDynamicOutput = shouldUseDynamicLifeCycle(tasks, runnerOptions, nxArgs.outputStyle);
|
|
270
|
-
if (isRunOne) {
|
|
271
|
-
if (useDynamicOutput) {
|
|
272
|
-
return await (0, dynamic_run_one_terminal_output_life_cycle_1.createRunOneDynamicOutputRenderer)({
|
|
273
|
-
initiatingProject,
|
|
274
|
-
tasks,
|
|
275
|
-
args: nxArgs,
|
|
276
|
-
overrides: overridesWithoutHidden,
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
return {
|
|
280
|
-
lifeCycle: new static_run_one_terminal_output_life_cycle_1.StaticRunOneTerminalOutputLifeCycle(initiatingProject, projectNames, tasks, nxArgs),
|
|
281
|
-
renderIsDone: Promise.resolve(),
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
else {
|
|
285
|
-
if (useDynamicOutput) {
|
|
286
|
-
return await (0, dynamic_run_many_terminal_output_life_cycle_1.createRunManyDynamicOutputRenderer)({
|
|
287
|
-
projectNames,
|
|
288
|
-
tasks,
|
|
289
|
-
args: nxArgs,
|
|
290
|
-
overrides: overridesWithoutHidden,
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
else {
|
|
294
|
-
return {
|
|
295
|
-
lifeCycle: new static_run_many_terminal_output_life_cycle_1.StaticRunManyTerminalOutputLifeCycle(projectNames, tasks, nxArgs, overridesWithoutHidden),
|
|
296
|
-
renderIsDone: Promise.resolve(),
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
function createTaskGraphAndRunValidations(projectGraph, extraTargetDependencies, projectNames, nxArgs, overrides, extraOptions) {
|
|
302
|
-
const taskGraph = (0, create_task_graph_1.createTaskGraph)(projectGraph, extraTargetDependencies, projectNames, nxArgs.targets, nxArgs.configuration, overrides, extraOptions.excludeTaskDependencies);
|
|
303
|
-
(0, task_graph_utils_1.assertTaskGraphDoesNotContainInvalidTargets)(taskGraph);
|
|
304
|
-
const cycle = (0, task_graph_utils_1.findCycle)(taskGraph);
|
|
305
|
-
if (cycle) {
|
|
306
|
-
if (process.env.NX_IGNORE_CYCLES === 'true' || nxArgs.nxIgnoreCycles) {
|
|
307
|
-
output_1.output.warn({
|
|
308
|
-
title: `The task graph has a circular dependency`,
|
|
309
|
-
bodyLines: [`${cycle.join(' --> ')}`],
|
|
310
|
-
});
|
|
311
|
-
(0, task_graph_utils_1.makeAcyclic)(taskGraph);
|
|
312
|
-
}
|
|
313
|
-
else {
|
|
314
|
-
output_1.output.error({
|
|
315
|
-
title: `Could not execute command because the task graph has a circular dependency`,
|
|
316
|
-
bodyLines: [`${cycle.join(' --> ')}`],
|
|
317
|
-
});
|
|
318
|
-
process.exit(1);
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
// validate that no atomized tasks like e2e-ci are used without Nx Cloud
|
|
322
|
-
if (!(0, nx_cloud_utils_1.isNxCloudUsed)((0, nx_json_1.readNxJson)()) &&
|
|
323
|
-
!process.env['NX_SKIP_ATOMIZER_VALIDATION']) {
|
|
324
|
-
(0, task_graph_utils_1.validateNoAtomizedTasks)(taskGraph, projectGraph);
|
|
325
|
-
}
|
|
326
|
-
return taskGraph;
|
|
327
|
-
}
|
|
328
|
-
async function runCommand(projectsToRun, currentProjectGraph, { nxJson }, nxArgs, overrides, initiatingProject, extraTargetDependencies, extraOptions) {
|
|
329
|
-
const status = await (0, handle_errors_1.handleErrors)(process.env.NX_VERBOSE_LOGGING === 'true', async () => {
|
|
330
|
-
const id = (0, native_1.hashArray)([...process.argv, Date.now().toString()]);
|
|
331
|
-
await (0, tasks_execution_hooks_1.runPreTasksExecution)({
|
|
332
|
-
id,
|
|
333
|
-
workspaceRoot: workspace_root_1.workspaceRoot,
|
|
334
|
-
nxJsonConfiguration: nxJson,
|
|
335
|
-
argv: process.argv,
|
|
336
|
-
});
|
|
337
|
-
const startTime = Date.now();
|
|
338
|
-
const { taskResults, completed } = await runCommandForTasks(projectsToRun, currentProjectGraph, { nxJson }, {
|
|
339
|
-
...nxArgs,
|
|
340
|
-
skipNxCache: nxArgs.skipNxCache ||
|
|
341
|
-
process.env.NX_SKIP_NX_CACHE === 'true' ||
|
|
342
|
-
process.env.NX_DISABLE_NX_CACHE === 'true',
|
|
343
|
-
}, overrides, initiatingProject, extraTargetDependencies, extraOptions);
|
|
344
|
-
const endTime = Date.now();
|
|
345
|
-
const exitCode = !completed
|
|
346
|
-
? (0, exit_codes_1.signalToCode)('SIGINT')
|
|
347
|
-
: Object.values(taskResults).some((taskResult) => taskResult.status === 'failure' ||
|
|
348
|
-
taskResult.status === 'skipped')
|
|
349
|
-
? 1
|
|
350
|
-
: 0;
|
|
351
|
-
await (0, tasks_execution_hooks_1.runPostTasksExecution)({
|
|
352
|
-
id,
|
|
353
|
-
taskResults,
|
|
354
|
-
workspaceRoot: workspace_root_1.workspaceRoot,
|
|
355
|
-
nxJsonConfiguration: nxJson,
|
|
356
|
-
argv: process.argv,
|
|
357
|
-
startTime,
|
|
358
|
-
endTime,
|
|
359
|
-
});
|
|
360
|
-
return exitCode;
|
|
361
|
-
});
|
|
362
|
-
return status;
|
|
363
|
-
}
|
|
364
|
-
async function runCommandForTasks(projectsToRun, currentProjectGraph, { nxJson }, nxArgs, overrides, initiatingProject, extraTargetDependencies, extraOptions) {
|
|
365
|
-
// Kick off the license lookup in the background so it overlaps with task
|
|
366
|
-
// execution. The log itself is deferred to the print site below so it
|
|
367
|
-
// never lands in the middle of task output.
|
|
368
|
-
const nxKeyPromise = (0, nx_key_1.getNxKeyInformation)().catch(() => null);
|
|
369
|
-
const projectNames = projectsToRun.map((t) => t.name);
|
|
370
|
-
const projectNameSet = new Set(projectNames);
|
|
371
|
-
const { projectGraph, taskGraph } = await ensureWorkspaceIsInSyncAndGetGraphs(currentProjectGraph, nxJson, projectNames, nxArgs, overrides, extraTargetDependencies, extraOptions);
|
|
372
|
-
const tasks = Object.values(taskGraph.tasks);
|
|
373
|
-
const initiatingTasks = tasks.filter((t) => projectNameSet.has(t.target.project) &&
|
|
374
|
-
nxArgs.targets.includes(t.target.target));
|
|
375
|
-
const { lifeCycle, renderIsDone, printSummary, restoreTerminal } = await getTerminalOutputLifeCycle(initiatingProject, initiatingTasks, projectNames, tasks, taskGraph, nxArgs, nxJson, overrides);
|
|
376
|
-
try {
|
|
377
|
-
const taskResults = await invokeTasksRunner({
|
|
378
|
-
tasks,
|
|
379
|
-
projectGraph,
|
|
380
|
-
taskGraph,
|
|
381
|
-
lifeCycle,
|
|
382
|
-
nxJson,
|
|
383
|
-
nxArgs,
|
|
384
|
-
loadDotEnvFiles: extraOptions.loadDotEnvFiles,
|
|
385
|
-
initiatingProject,
|
|
386
|
-
initiatingTasks,
|
|
387
|
-
});
|
|
388
|
-
await renderIsDone.finally(() => restoreTerminal?.());
|
|
389
|
-
if (printSummary) {
|
|
390
|
-
printSummary();
|
|
391
|
-
}
|
|
392
|
-
await printConfigureAiAgentsDisclaimer();
|
|
393
|
-
const nxKey = await nxKeyPromise;
|
|
394
|
-
if (nxKey)
|
|
395
|
-
logger_1.logger.log((0, nx_key_1.createNxKeyLicenseeInformation)(nxKey));
|
|
396
|
-
return {
|
|
397
|
-
taskResults,
|
|
398
|
-
completed: didCommandComplete(tasks, taskResults),
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
catch (e) {
|
|
402
|
-
restoreTerminal?.();
|
|
403
|
-
throw e;
|
|
404
|
-
}
|
|
405
|
-
finally {
|
|
406
|
-
// Print the report once, on success or failure (restoreTerminal has run in both
|
|
407
|
-
// paths). No-ops if a multi-task TUI run already delivered it via the popup; its own
|
|
408
|
-
// try/catch means it never masks `e`.
|
|
409
|
-
(0, performance_life_cycle_1.flushPerformanceReport)();
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
async function printConfigureAiAgentsDisclaimer() {
|
|
413
|
-
try {
|
|
414
|
-
if (!client_1.daemonClient.enabled() || !(await client_1.daemonClient.isServerAvailable())) {
|
|
415
|
-
return;
|
|
416
|
-
}
|
|
417
|
-
const { outdatedAgents } = await client_1.daemonClient.getConfigureAiAgentsStatus();
|
|
418
|
-
if (!(0, configure_ai_agents_disclaimer_1.shouldPrintConfigureAiAgentsDisclaimer)(outdatedAgents, workspace_root_1.workspaceRoot)) {
|
|
419
|
-
return;
|
|
420
|
-
}
|
|
421
|
-
output_1.output.logRawLine(output_1.output.dim('Your AI agent configuration is outdated. Run "nx configure-ai-agents" to update.'));
|
|
422
|
-
}
|
|
423
|
-
catch {
|
|
424
|
-
// Silently ignore errors
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
function didCommandComplete(tasks, taskResults) {
|
|
428
|
-
if (tasks.length === 0)
|
|
429
|
-
return true;
|
|
430
|
-
for (const task of tasks) {
|
|
431
|
-
if (!task.continuous) {
|
|
432
|
-
// Discrete task must have a result (was started and finished)
|
|
433
|
-
if (!taskResults[task.id])
|
|
434
|
-
return false;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
// Any stopped task means the run was interrupted
|
|
438
|
-
return !Object.values(taskResults).some((r) => r.status === 'stopped');
|
|
439
|
-
}
|
|
440
|
-
async function ensureWorkspaceIsInSyncAndGetGraphs(projectGraph, nxJson, projectNames, nxArgs, overrides, extraTargetDependencies, extraOptions) {
|
|
441
|
-
let taskGraph = createTaskGraphAndRunValidations(projectGraph, extraTargetDependencies ?? {}, projectNames, nxArgs, overrides, extraOptions);
|
|
442
|
-
if (nxArgs.skipSync || (0, is_ci_1.isCI)()) {
|
|
443
|
-
return { projectGraph, taskGraph };
|
|
444
|
-
}
|
|
445
|
-
// collect unique syncGenerators from the tasks
|
|
446
|
-
const uniqueSyncGenerators = (0, sync_generators_1.collectEnabledTaskSyncGeneratorsFromTaskGraph)(taskGraph, projectGraph, nxJson);
|
|
447
|
-
if (!uniqueSyncGenerators.size) {
|
|
448
|
-
// There are no sync generators registered in the tasks to run
|
|
449
|
-
return { projectGraph, taskGraph };
|
|
450
|
-
}
|
|
451
|
-
const syncGenerators = Array.from(uniqueSyncGenerators);
|
|
452
|
-
const results = await (0, sync_generators_1.getSyncGeneratorChanges)(syncGenerators);
|
|
453
|
-
if (!results.length) {
|
|
454
|
-
// There are no changes to sync, workspace is up to date
|
|
455
|
-
return { projectGraph, taskGraph };
|
|
456
|
-
}
|
|
457
|
-
const { failedGeneratorsCount, areAllResultsFailures, anySyncGeneratorsFailed, } = (0, sync_generators_1.processSyncGeneratorResultErrors)(results);
|
|
458
|
-
const failedSyncGeneratorsFixMessageLines = (0, sync_generators_1.getFailedSyncGeneratorsFixMessageLines)(results, nxArgs.verbose);
|
|
459
|
-
const outOfSyncTitle = 'The workspace is out of sync';
|
|
460
|
-
const resultBodyLines = (0, sync_generators_1.getSyncGeneratorSuccessResultsMessageLines)(results);
|
|
461
|
-
if (!process.stdout.isTTY) {
|
|
462
|
-
// If the user is running a non-TTY environment we
|
|
463
|
-
// throw an error to stop the execution of the tasks.
|
|
464
|
-
if (areAllResultsFailures) {
|
|
465
|
-
output_1.output.error({
|
|
466
|
-
title: `The workspace is probably out of sync because ${failedGeneratorsCount === 1
|
|
467
|
-
? 'a sync generator'
|
|
468
|
-
: 'some sync generators'} failed to run`,
|
|
469
|
-
bodyLines: failedSyncGeneratorsFixMessageLines,
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
else {
|
|
473
|
-
output_1.output.error({
|
|
474
|
-
title: outOfSyncTitle,
|
|
475
|
-
bodyLines: [...resultBodyLines, '', ...SYNC_FIX_MESSAGE_LINES],
|
|
476
|
-
});
|
|
477
|
-
if (anySyncGeneratorsFailed) {
|
|
478
|
-
output_1.output.error({
|
|
479
|
-
title: failedGeneratorsCount === 1
|
|
480
|
-
? 'A sync generator failed to run'
|
|
481
|
-
: 'Some sync generators failed to run',
|
|
482
|
-
bodyLines: failedSyncGeneratorsFixMessageLines,
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
process.exit(1);
|
|
487
|
-
}
|
|
488
|
-
if (areAllResultsFailures) {
|
|
489
|
-
output_1.output.warn({
|
|
490
|
-
title: `The workspace is probably out of sync because ${failedGeneratorsCount === 1
|
|
491
|
-
? 'a sync generator'
|
|
492
|
-
: 'some sync generators'} failed to run`,
|
|
493
|
-
bodyLines: failedSyncGeneratorsFixMessageLines,
|
|
494
|
-
});
|
|
495
|
-
await confirmRunningTasksWithSyncFailures();
|
|
496
|
-
// if all sync generators failed to run there's nothing to sync, we just let the tasks run
|
|
497
|
-
return { projectGraph, taskGraph };
|
|
498
|
-
}
|
|
499
|
-
if (nxJson.sync?.applyChanges === false) {
|
|
500
|
-
// If the user has set `sync.applyChanges` to `false` in their `nx.json`
|
|
501
|
-
// we don't prompt the them and just log a warning informing them that
|
|
502
|
-
// the workspace is out of sync and they have it set to not apply changes
|
|
503
|
-
// automatically.
|
|
504
|
-
output_1.output.warn({
|
|
505
|
-
title: outOfSyncTitle,
|
|
506
|
-
bodyLines: [
|
|
507
|
-
...resultBodyLines,
|
|
508
|
-
'',
|
|
509
|
-
...APPLY_CHANGES_FALSE_FIX_MESSAGE_LINES,
|
|
510
|
-
],
|
|
511
|
-
});
|
|
512
|
-
if (anySyncGeneratorsFailed) {
|
|
513
|
-
output_1.output.warn({
|
|
514
|
-
title: failedGeneratorsCount === 1
|
|
515
|
-
? 'A sync generator failed to run'
|
|
516
|
-
: 'Some sync generators failed to run',
|
|
517
|
-
bodyLines: failedSyncGeneratorsFixMessageLines,
|
|
518
|
-
});
|
|
519
|
-
await confirmRunningTasksWithSyncFailures();
|
|
520
|
-
}
|
|
521
|
-
return { projectGraph, taskGraph };
|
|
522
|
-
}
|
|
523
|
-
output_1.output.warn({
|
|
524
|
-
title: outOfSyncTitle,
|
|
525
|
-
bodyLines: [
|
|
526
|
-
...resultBodyLines,
|
|
527
|
-
...(nxJson.sync?.applyChanges === true
|
|
528
|
-
? [
|
|
529
|
-
'',
|
|
530
|
-
'Proceeding to sync the identified changes automatically (`sync.applyChanges` is set to `true` in your `nx.json`).',
|
|
531
|
-
]
|
|
532
|
-
: []),
|
|
533
|
-
],
|
|
534
|
-
});
|
|
535
|
-
const applyChanges = nxJson.sync?.applyChanges === true ||
|
|
536
|
-
(await promptForApplyingSyncGeneratorChanges());
|
|
537
|
-
if (applyChanges) {
|
|
538
|
-
const spinner = spinner_1.globalSpinner.start('Syncing the workspace...');
|
|
539
|
-
// Flush sync generator changes to disk
|
|
540
|
-
const flushResult = await (0, sync_generators_1.flushSyncGeneratorChanges)(results);
|
|
541
|
-
if ('generatorFailures' in flushResult) {
|
|
542
|
-
spinner.fail();
|
|
543
|
-
output_1.output.error({
|
|
544
|
-
title: 'Failed to sync the workspace',
|
|
545
|
-
bodyLines: [
|
|
546
|
-
...(0, sync_generators_1.getFlushFailureMessageLines)(flushResult, nxArgs.verbose),
|
|
547
|
-
...(flushResult.generalFailure
|
|
548
|
-
? [
|
|
549
|
-
'If needed, you can run the tasks with the `--skip-sync` flag to disable syncing.',
|
|
550
|
-
]
|
|
551
|
-
: []),
|
|
552
|
-
],
|
|
553
|
-
});
|
|
554
|
-
await confirmRunningTasksWithSyncFailures();
|
|
555
|
-
}
|
|
556
|
-
// Re-create project graph and task graph
|
|
557
|
-
projectGraph = await (0, project_graph_1.createProjectGraphAsync)();
|
|
558
|
-
taskGraph = createTaskGraphAndRunValidations(projectGraph, extraTargetDependencies ?? {}, projectNames, nxArgs, overrides, extraOptions);
|
|
559
|
-
const successTitle = anySyncGeneratorsFailed
|
|
560
|
-
? // the identified changes were synced successfully, but the workspace
|
|
561
|
-
// is still not up to date, which we'll mention next
|
|
562
|
-
'The identified changes were synced successfully!'
|
|
563
|
-
: // the workspace is fully up to date
|
|
564
|
-
'The workspace was synced successfully!';
|
|
565
|
-
const successSubtitle = nxJson.sync?.applyChanges === true
|
|
566
|
-
? 'Please make sure to commit the changes to your repository or this will error in CI.'
|
|
567
|
-
: // The user was prompted and we already logged a message about erroring in CI
|
|
568
|
-
// so here we just tell them to commit the changes.
|
|
569
|
-
'Please make sure to commit the changes to your repository.';
|
|
570
|
-
spinner.succeed(`${successTitle}\n\n${successSubtitle}`);
|
|
571
|
-
if (anySyncGeneratorsFailed) {
|
|
572
|
-
output_1.output.warn({
|
|
573
|
-
title: `The workspace is probably still out of sync because ${failedGeneratorsCount === 1
|
|
574
|
-
? 'a sync generator'
|
|
575
|
-
: 'some sync generators'} failed to run`,
|
|
576
|
-
bodyLines: failedSyncGeneratorsFixMessageLines,
|
|
577
|
-
});
|
|
578
|
-
await confirmRunningTasksWithSyncFailures();
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
else {
|
|
582
|
-
if (anySyncGeneratorsFailed) {
|
|
583
|
-
output_1.output.warn({
|
|
584
|
-
title: failedGeneratorsCount === 1
|
|
585
|
-
? 'A sync generator failed to report the sync status'
|
|
586
|
-
: 'Some sync generators failed to report the sync status',
|
|
587
|
-
bodyLines: failedSyncGeneratorsFixMessageLines,
|
|
588
|
-
});
|
|
589
|
-
await confirmRunningTasksWithSyncFailures();
|
|
590
|
-
}
|
|
591
|
-
else {
|
|
592
|
-
output_1.output.warn({
|
|
593
|
-
title: 'Syncing the workspace was skipped',
|
|
594
|
-
bodyLines: SYNC_SKIPPED_FIX_MESSAGE_LINES,
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
return { projectGraph, taskGraph };
|
|
599
|
-
}
|
|
600
|
-
async function promptForApplyingSyncGeneratorChanges() {
|
|
601
|
-
try {
|
|
602
|
-
// No footer slot, so the opt-out note is part of the message.
|
|
603
|
-
const applyChanges = await (0, prompt_helpers_1.selectPrompt)({
|
|
604
|
-
message: `Would you like to sync the identified changes to get your workspace up to date?${pc.dim('\nYou can skip this prompt by setting the `sync.applyChanges` option to `true` in your `nx.json`.\nFor more information, refer to the docs: https://nx.dev/concepts/sync-generators.')}`,
|
|
605
|
-
choices: [
|
|
606
|
-
{ value: 'yes', label: 'Yes, sync the changes and run the tasks' },
|
|
607
|
-
{
|
|
608
|
-
value: 'no',
|
|
609
|
-
label: 'No, run the tasks without syncing the changes',
|
|
610
|
-
},
|
|
611
|
-
],
|
|
612
|
-
onCancel: () => process.exit(1),
|
|
613
|
-
});
|
|
614
|
-
return applyChanges === 'yes';
|
|
615
|
-
}
|
|
616
|
-
catch {
|
|
617
|
-
process.exit(1);
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
async function confirmRunningTasksWithSyncFailures() {
|
|
621
|
-
try {
|
|
622
|
-
const runTasks = await (0, prompt_helpers_1.selectPrompt)({
|
|
623
|
-
message: `Would you like to ignore the sync failures and continue running the tasks?${pc.dim(`\nWhen running in CI and there are sync failures, the tasks won't run. Addressing the errors above is highly recommended to prevent failures in CI.`)}`,
|
|
624
|
-
choices: [
|
|
625
|
-
{ value: 'yes', label: 'Yes, ignore the failures and run the tasks' },
|
|
626
|
-
{ value: 'no', label: `No, don't run the tasks` },
|
|
627
|
-
],
|
|
628
|
-
onCancel: () => process.exit(1),
|
|
629
|
-
});
|
|
630
|
-
if (runTasks !== 'yes') {
|
|
631
|
-
process.exit(1);
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
catch {
|
|
635
|
-
process.exit(1);
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
function setEnvVarsBasedOnArgs(nxArgs, loadDotEnvFiles) {
|
|
639
|
-
// Batch mode turns on streaming implicitly, but streamed output interleaves
|
|
640
|
-
// between tasks and so cannot be wrapped in collapsible log groups. Where
|
|
641
|
-
// grouping applies, let it win over the implicit request; an output style the
|
|
642
|
-
// user asked for explicitly still wins over grouping.
|
|
643
|
-
const batchMode = process.env.NX_BATCH_MODE === 'true' || nxArgs.batch;
|
|
644
|
-
if (nxArgs.outputStyle == 'stream' ||
|
|
645
|
-
(batchMode && !(0, output_1.isLogGroupingEnabled)())) {
|
|
646
|
-
process.env.NX_STREAM_OUTPUT = 'true';
|
|
647
|
-
process.env.NX_PREFIX_OUTPUT = 'true';
|
|
648
|
-
}
|
|
649
|
-
if (nxArgs.outputStyle == 'stream-without-prefixes') {
|
|
650
|
-
process.env.NX_STREAM_OUTPUT = 'true';
|
|
651
|
-
process.env.NX_PREFIX_OUTPUT = 'false';
|
|
652
|
-
}
|
|
653
|
-
// Force streaming only when the TUI is active, so it can capture and
|
|
654
|
-
// render task output. Other output styles manage their own streaming.
|
|
655
|
-
if ((0, is_tui_enabled_1.isTuiEnabled)()) {
|
|
656
|
-
process.env.NX_STREAM_OUTPUT = 'true';
|
|
657
|
-
}
|
|
658
|
-
if (loadDotEnvFiles) {
|
|
659
|
-
process.env.NX_LOAD_DOT_ENV_FILES = 'true';
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
async function invokeTasksRunner({ tasks, projectGraph, taskGraph, lifeCycle, nxJson, nxArgs, loadDotEnvFiles, initiatingProject, initiatingTasks, }) {
|
|
663
|
-
setEnvVarsBasedOnArgs(nxArgs, loadDotEnvFiles);
|
|
664
|
-
// this needs to be done before we start to run the tasks
|
|
665
|
-
const taskDetails = (0, hash_task_1.getTaskDetails)();
|
|
666
|
-
const { tasksRunner, runnerOptions } = getRunner(nxArgs, nxJson);
|
|
667
|
-
let hasher = (0, create_task_hasher_1.createTaskHasher)(projectGraph, nxJson, runnerOptions);
|
|
668
|
-
// this is used for two reasons: to fetch all remote cache hits AND
|
|
669
|
-
// to submit everything that is known in advance to Nx Cloud to run in
|
|
670
|
-
// a distributed fashion
|
|
671
|
-
await (0, hash_task_1.hashTasksThatDoNotDependOnOutputsOfOtherTasks)(hasher, projectGraph, taskGraph, nxJson, taskDetails);
|
|
672
|
-
const taskResultsLifecycle = new task_results_life_cycle_1.TaskResultsLifeCycle();
|
|
673
|
-
const compositedLifeCycle = new life_cycle_1.CompositeLifeCycle([
|
|
674
|
-
...constructLifeCycles(lifeCycle, taskGraph, nxJson, nxArgs.skipNxCache),
|
|
675
|
-
taskResultsLifecycle,
|
|
676
|
-
]);
|
|
677
|
-
let promiseOrObservable = tasksRunner(tasks, {
|
|
678
|
-
...runnerOptions,
|
|
679
|
-
lifeCycle: compositedLifeCycle,
|
|
680
|
-
}, {
|
|
681
|
-
initiatingProject,
|
|
682
|
-
initiatingTasks,
|
|
683
|
-
projectGraph,
|
|
684
|
-
nxJson,
|
|
685
|
-
nxArgs,
|
|
686
|
-
taskGraph,
|
|
687
|
-
hasher: {
|
|
688
|
-
hashTask(task, taskGraph_, env) {
|
|
689
|
-
if (!taskGraph_) {
|
|
690
|
-
output_1.output.warn({
|
|
691
|
-
title: `TaskGraph is now required as an argument to hashTask`,
|
|
692
|
-
bodyLines: [
|
|
693
|
-
`The TaskGraph object can be retrieved from the context`,
|
|
694
|
-
'This will result in an error in Nx 20',
|
|
695
|
-
],
|
|
696
|
-
});
|
|
697
|
-
taskGraph_ = taskGraph;
|
|
698
|
-
}
|
|
699
|
-
if (!env) {
|
|
700
|
-
output_1.output.warn({
|
|
701
|
-
title: `The environment variables are now required as an argument to hashTask`,
|
|
702
|
-
bodyLines: [
|
|
703
|
-
`Please pass the environment variables used when running the task`,
|
|
704
|
-
'This will result in an error in Nx 20',
|
|
705
|
-
],
|
|
706
|
-
});
|
|
707
|
-
env = process.env;
|
|
708
|
-
}
|
|
709
|
-
return hasher.hashTask(task, taskGraph_, env);
|
|
710
|
-
},
|
|
711
|
-
hashTasks(tasks, taskGraph_, envOrPerTaskEnvs) {
|
|
712
|
-
if (!taskGraph_) {
|
|
713
|
-
output_1.output.warn({
|
|
714
|
-
title: `TaskGraph is now required as an argument to hashTasks`,
|
|
715
|
-
bodyLines: [
|
|
716
|
-
`The TaskGraph object can be retrieved from the context`,
|
|
717
|
-
'This will result in an error in Nx 20',
|
|
718
|
-
],
|
|
719
|
-
});
|
|
720
|
-
taskGraph_ = taskGraph;
|
|
721
|
-
}
|
|
722
|
-
if (!envOrPerTaskEnvs) {
|
|
723
|
-
output_1.output.warn({
|
|
724
|
-
title: `The environment variables are now required as an argument to hashTasks`,
|
|
725
|
-
bodyLines: [
|
|
726
|
-
`Please pass the environment variables used when running the tasks`,
|
|
727
|
-
'This will result in an error in Nx 20',
|
|
728
|
-
],
|
|
729
|
-
});
|
|
730
|
-
envOrPerTaskEnvs = process.env;
|
|
731
|
-
}
|
|
732
|
-
// hasher.hashTasks accepts either legacy single-env or the new
|
|
733
|
-
// per-task-env shape and normalizes internally.
|
|
734
|
-
return hasher.hashTasks(tasks, taskGraph_, envOrPerTaskEnvs);
|
|
735
|
-
},
|
|
736
|
-
},
|
|
737
|
-
daemon: client_1.daemonClient,
|
|
738
|
-
});
|
|
739
|
-
if (promiseOrObservable.subscribe) {
|
|
740
|
-
promiseOrObservable = convertObservableToPromise(promiseOrObservable);
|
|
741
|
-
}
|
|
742
|
-
await promiseOrObservable;
|
|
743
|
-
return taskResultsLifecycle.getTaskResults();
|
|
744
|
-
}
|
|
745
|
-
function constructLifeCycles(lifeCycle, taskGraph, nxJson, skipNxCache) {
|
|
746
|
-
const lifeCycles = [];
|
|
747
|
-
lifeCycles.push(new store_run_information_life_cycle_1.StoreRunInformationLifeCycle());
|
|
748
|
-
lifeCycles.push(lifeCycle);
|
|
749
|
-
if (process.env.NX_PERF_LOGGING === 'true') {
|
|
750
|
-
lifeCycles.push(new task_timings_life_cycle_1.TaskTimingsLifeCycle());
|
|
751
|
-
}
|
|
752
|
-
if (process.env.NX_PROFILE) {
|
|
753
|
-
lifeCycles.push(new task_profiling_life_cycle_1.TaskProfilingLifeCycle(process.env.NX_PROFILE));
|
|
754
|
-
}
|
|
755
|
-
lifeCycles.push(new performance_life_cycle_1.PerformanceLifeCycle(taskGraph, { skipNxCache, nxJson }));
|
|
756
|
-
lifeCycles.push(new task_telemetry_life_cycle_1.TaskTelemetryLifeCycle());
|
|
757
|
-
const historyLifeCycle = (0, task_history_life_cycle_1.getTasksHistoryLifeCycle)();
|
|
758
|
-
lifeCycles.push(historyLifeCycle);
|
|
759
|
-
return lifeCycles;
|
|
760
|
-
}
|
|
761
|
-
async function convertObservableToPromise(obs) {
|
|
762
|
-
return await new Promise((res) => {
|
|
763
|
-
let tasksResults = {};
|
|
764
|
-
obs.subscribe({
|
|
765
|
-
next: (t) => {
|
|
766
|
-
tasksResults[t.task.id] = t.success ? 'success' : 'failure';
|
|
767
|
-
},
|
|
768
|
-
error: (error) => {
|
|
769
|
-
output_1.output.error({
|
|
770
|
-
title: 'Unhandled error in task executor',
|
|
771
|
-
});
|
|
772
|
-
console.error(error);
|
|
773
|
-
res(tasksResults);
|
|
774
|
-
},
|
|
775
|
-
complete: () => {
|
|
776
|
-
res(tasksResults);
|
|
777
|
-
},
|
|
778
|
-
});
|
|
779
|
-
});
|
|
780
|
-
}
|
|
781
|
-
function shouldUseDynamicLifeCycle(tasks, options, outputStyle) {
|
|
782
|
-
if (process.env.NX_BATCH_MODE === 'true' ||
|
|
783
|
-
process.env.NX_VERBOSE_LOGGING === 'true' ||
|
|
784
|
-
process.env.NX_TASKS_RUNNER_DYNAMIC_OUTPUT === 'false') {
|
|
785
|
-
return false;
|
|
786
|
-
}
|
|
787
|
-
if (!process.stdout.isTTY)
|
|
788
|
-
return false;
|
|
789
|
-
if ((0, is_ci_1.isCI)())
|
|
790
|
-
return false;
|
|
791
|
-
if ((0, output_1.isStaticOutputStyle)(outputStyle) ||
|
|
792
|
-
outputStyle === 'stream' ||
|
|
793
|
-
outputStyle === 'stream-without-prefixes')
|
|
794
|
-
return false;
|
|
795
|
-
return !tasks.find((t) => (0, utils_1.shouldStreamOutput)(t, null));
|
|
796
|
-
}
|
|
797
|
-
function loadTasksRunner(modulePath) {
|
|
798
|
-
try {
|
|
799
|
-
const maybeTasksRunner = require(modulePath);
|
|
800
|
-
// to support both babel and ts formats
|
|
801
|
-
return 'default' in maybeTasksRunner
|
|
802
|
-
? maybeTasksRunner.default
|
|
803
|
-
: maybeTasksRunner;
|
|
804
|
-
}
|
|
805
|
-
catch (e) {
|
|
806
|
-
if (e.code === 'MODULE_NOT_FOUND' &&
|
|
807
|
-
(modulePath === 'nx-cloud' || modulePath === '@nrwl/nx-cloud')) {
|
|
808
|
-
return require('../nx-cloud/nx-cloud-tasks-runner-shell')
|
|
809
|
-
.nxCloudTasksRunnerShell;
|
|
810
|
-
}
|
|
811
|
-
throw e;
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
function getRunner(nxArgs, nxJson) {
|
|
815
|
-
let runner = nxArgs.runner;
|
|
816
|
-
runner = runner ?? 'default';
|
|
817
|
-
if (runner !== 'default' && !nxJson.tasksRunnerOptions?.[runner]) {
|
|
818
|
-
throw new Error(`Could not find runner configuration for ${runner}`);
|
|
819
|
-
}
|
|
820
|
-
const modulePath = getTasksRunnerPath(runner, nxJson);
|
|
821
|
-
try {
|
|
822
|
-
const tasksRunner = loadTasksRunner(modulePath);
|
|
823
|
-
return {
|
|
824
|
-
tasksRunner,
|
|
825
|
-
runnerOptions: getRunnerOptions(runner, nxJson, nxArgs, modulePath === 'nx-cloud'),
|
|
826
|
-
};
|
|
827
|
-
}
|
|
828
|
-
catch {
|
|
829
|
-
throw new Error(`Could not find runner configuration for ${runner}`);
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
const defaultTasksRunnerPath = require.resolve('./default-tasks-runner');
|
|
833
|
-
function getTasksRunnerPath(runner, nxJson) {
|
|
834
|
-
// If running inside of Codex, there will be no internet access, so we cannot use the cloud runner, regardless of other config.
|
|
835
|
-
// We can infer this scenario by checking for certain environment variables defined in their base image: https://github.com/openai/codex-universal
|
|
836
|
-
if (process.env.CODEX_ENV_NODE_VERSION) {
|
|
837
|
-
output_1.output.warn({
|
|
838
|
-
title: 'Codex environment detected, using default tasks runner',
|
|
839
|
-
bodyLines: [
|
|
840
|
-
'Codex does not have internet access when it runs tasks, so Nx will use the default tasks runner and only leverage local caching.',
|
|
841
|
-
],
|
|
842
|
-
});
|
|
843
|
-
return defaultTasksRunnerPath;
|
|
844
|
-
}
|
|
845
|
-
const isCloudRunner =
|
|
846
|
-
// No tasksRunnerOptions for given --runner
|
|
847
|
-
nxJson.nxCloudAccessToken ||
|
|
848
|
-
// No runner prop in tasks runner options, check if access token is set.
|
|
849
|
-
nxJson.tasksRunnerOptions?.[runner]?.options?.accessToken ||
|
|
850
|
-
['nx-cloud', '@nrwl/nx-cloud'].includes(nxJson.tasksRunnerOptions?.[runner]?.runner) ||
|
|
851
|
-
// Cloud access token specified in env var.
|
|
852
|
-
process.env.NX_CLOUD_AUTH_TOKEN ||
|
|
853
|
-
process.env.NX_CLOUD_ACCESS_TOKEN ||
|
|
854
|
-
// Nx Cloud ID specified in nxJson
|
|
855
|
-
nxJson.nxCloudId;
|
|
856
|
-
// NX_NO_CLOUD / neverConnectToCloud wins over any ambient token — otherwise
|
|
857
|
-
// a surrounding CI env variable would still route through the cloud shell,
|
|
858
|
-
// which resolves the default tasks runner via its own require bridge and
|
|
859
|
-
// can pull in a different Nx version than the workspace's own.
|
|
860
|
-
return isCloudRunner && !(0, nx_cloud_utils_1.isNxCloudDisabled)(nxJson)
|
|
861
|
-
? 'nx-cloud'
|
|
862
|
-
: defaultTasksRunnerPath;
|
|
863
|
-
}
|
|
864
|
-
function getRunnerOptions(runner, nxJson, nxArgs, isCloudDefault) {
|
|
865
|
-
const result = {
|
|
866
|
-
...nxJson.tasksRunnerOptions?.[runner]?.options,
|
|
867
|
-
...nxArgs,
|
|
868
|
-
};
|
|
869
|
-
// NOTE: we don't pull from env here because the cloud package
|
|
870
|
-
// supports it within nx-cloud's implementation. We could
|
|
871
|
-
// normalize it here, and that may make more sense, but
|
|
872
|
-
// leaving it as is for now.
|
|
873
|
-
if (nxJson.nxCloudAccessToken && isCloudDefault) {
|
|
874
|
-
result.accessToken ??= nxJson.nxCloudAccessToken;
|
|
875
|
-
}
|
|
876
|
-
if (nxJson.nxCloudId && isCloudDefault) {
|
|
877
|
-
result.nxCloudId ??= nxJson.nxCloudId;
|
|
878
|
-
}
|
|
879
|
-
if (nxJson.nxCloudUrl && isCloudDefault) {
|
|
880
|
-
result.url ??= nxJson.nxCloudUrl;
|
|
881
|
-
}
|
|
882
|
-
if (nxJson.nxCloudEncryptionKey && isCloudDefault) {
|
|
883
|
-
result.encryptionKey ??= nxJson.nxCloudEncryptionKey;
|
|
884
|
-
}
|
|
885
|
-
if (nxJson.parallel) {
|
|
886
|
-
result.parallel ??= nxJson.parallel;
|
|
887
|
-
}
|
|
888
|
-
if (nxJson.cacheDirectory) {
|
|
889
|
-
result.cacheDirectory ??= nxJson.cacheDirectory;
|
|
890
|
-
}
|
|
891
|
-
if (nxJson.useDaemonProcess !== undefined) {
|
|
892
|
-
result.useDaemonProcess ??= nxJson.useDaemonProcess;
|
|
893
|
-
}
|
|
894
|
-
return result;
|
|
895
|
-
}
|