@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,1083 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLogger = exports.NxScopeHostUsedForWrappedSchematics = exports.NxScopedHostForBuilders = exports.NxScopedHost = void 0;
|
|
4
|
-
exports.createBuilderContext = createBuilderContext;
|
|
5
|
-
exports.scheduleTarget = scheduleTarget;
|
|
6
|
-
exports.arrayBufferToString = arrayBufferToString;
|
|
7
|
-
exports.generate = generate;
|
|
8
|
-
exports.runMigration = runMigration;
|
|
9
|
-
exports.mockSchematicsForTesting = mockSchematicsForTesting;
|
|
10
|
-
exports.wrapAngularDevkitSchematic = wrapAngularDevkitSchematic;
|
|
11
|
-
exports.restoreNxTokensInOptions = restoreNxTokensInOptions;
|
|
12
|
-
const tslib_1 = require("tslib");
|
|
13
|
-
const core_1 = require("@angular-devkit/core");
|
|
14
|
-
const node_1 = require("@angular-devkit/core/node");
|
|
15
|
-
const pc = tslib_1.__importStar(require("picocolors"));
|
|
16
|
-
const path_1 = require("path");
|
|
17
|
-
const rxjs_1 = require("rxjs");
|
|
18
|
-
const operators_1 = require("rxjs/operators");
|
|
19
|
-
const tree_1 = require("../generators/tree");
|
|
20
|
-
const json_1 = require("../generators/utils/json");
|
|
21
|
-
const project_configuration_1 = require("../generators/utils/project-configuration");
|
|
22
|
-
const project_graph_1 = require("../project-graph/project-graph");
|
|
23
|
-
const fileutils_1 = require("../utils/fileutils");
|
|
24
|
-
const installation_directory_1 = require("../utils/installation-directory");
|
|
25
|
-
const json_2 = require("../utils/json");
|
|
26
|
-
const logger_1 = require("../utils/logger");
|
|
27
|
-
const package_json_1 = require("../utils/package-json");
|
|
28
|
-
const package_manager_1 = require("../utils/package-manager");
|
|
29
|
-
const angular_json_1 = require("./angular-json");
|
|
30
|
-
const executor_utils_1 = require("../command-line/run/executor-utils");
|
|
31
|
-
const plugins_1 = require("../project-graph/plugins");
|
|
32
|
-
const schema_utils_1 = require("../config/schema-utils");
|
|
33
|
-
const handle_import_1 = require("../utils/handle-import");
|
|
34
|
-
const prompt_helpers_1 = require("../utils/prompt-helpers");
|
|
35
|
-
const target_merging_1 = require("../project-graph/utils/project-configuration/target-merging");
|
|
36
|
-
function getProjectGraph() {
|
|
37
|
-
try {
|
|
38
|
-
return Promise.resolve((0, project_graph_1.readCachedProjectGraph)());
|
|
39
|
-
}
|
|
40
|
-
catch {
|
|
41
|
-
return (0, project_graph_1.createProjectGraphAsync)();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function getUndefinedDefaultsTransform(isAngularBuild) {
|
|
45
|
-
// `addUndefinedObjectDefaults` was introduced in @angular-devkit/core v20.
|
|
46
|
-
// `@nx/angular` supports Angular >=19, so fall back to `addUndefinedDefaults`
|
|
47
|
-
// when the object-specific transform is unavailable.
|
|
48
|
-
if (isAngularBuild && core_1.schema.transforms.addUndefinedObjectDefaults) {
|
|
49
|
-
return core_1.schema.transforms.addUndefinedObjectDefaults;
|
|
50
|
-
}
|
|
51
|
-
return core_1.schema.transforms.addUndefinedDefaults;
|
|
52
|
-
}
|
|
53
|
-
async function createBuilderContext(builderInfo, context) {
|
|
54
|
-
require('./compat');
|
|
55
|
-
const fsHost = new NxScopedHostForBuilders(context.root, context.projectGraph);
|
|
56
|
-
// the top level import is not patched because it is imported before the
|
|
57
|
-
// patching happens so we require it here to use the patched version below
|
|
58
|
-
const { workspaces } = require('@angular-devkit/core');
|
|
59
|
-
const { workspace } = await workspaces.readWorkspace('angular.json', workspaces.createWorkspaceHost(fsHost));
|
|
60
|
-
const architectHost = await getWrappedWorkspaceNodeModulesArchitectHost(workspace, context.root, context.projectsConfigurations.projects);
|
|
61
|
-
const registry = new core_1.schema.CoreSchemaRegistry();
|
|
62
|
-
const isAngularBuild = builderInfo.builderName.startsWith('@angular/build:') ||
|
|
63
|
-
['@nx/angular:application', '@nx/angular:unit-test'].includes(builderInfo.builderName);
|
|
64
|
-
registry.addPostTransform(getUndefinedDefaultsTransform(isAngularBuild));
|
|
65
|
-
registry.addSmartDefaultProvider('unparsed', () => {
|
|
66
|
-
// This happens when context.scheduleTarget is used to run a target using nx:run-commands
|
|
67
|
-
return [];
|
|
68
|
-
});
|
|
69
|
-
const { Architect } = require('@angular-devkit/architect');
|
|
70
|
-
const architect = new Architect(architectHost, registry);
|
|
71
|
-
const { firstValueFrom } = require('rxjs');
|
|
72
|
-
const toPromise = (obs) => firstValueFrom ? firstValueFrom(obs) : obs.toPromise();
|
|
73
|
-
const validateOptions = (options, builderName) => toPromise(architect['_scheduler'].schedule('..validateOptions', [
|
|
74
|
-
builderName,
|
|
75
|
-
options,
|
|
76
|
-
]).output);
|
|
77
|
-
const getProjectMetadata = (target) => toPromise(architect['_scheduler'].schedule('..getProjectMetadata', target).output);
|
|
78
|
-
const getBuilderNameForTarget = (target) => {
|
|
79
|
-
if (typeof target === 'string') {
|
|
80
|
-
return Promise.resolve(context.projectGraph.nodes[context.projectName].data.targets[target]
|
|
81
|
-
.executor);
|
|
82
|
-
}
|
|
83
|
-
return Promise.resolve(context.projectGraph.nodes[target.project].data.targets[target.target]
|
|
84
|
-
.executor);
|
|
85
|
-
};
|
|
86
|
-
const getTargetOptions = (target) => {
|
|
87
|
-
if (typeof target === 'string') {
|
|
88
|
-
return Promise.resolve({
|
|
89
|
-
...context.projectGraph.nodes[context.projectName].data.targets[target]
|
|
90
|
-
.options,
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
return Promise.resolve({
|
|
94
|
-
...context.projectGraph.nodes[target.project].data.targets[target.target]
|
|
95
|
-
.options,
|
|
96
|
-
...context.projectGraph.nodes[target.project].data.targets[target.target]
|
|
97
|
-
.configurations[target.configuration],
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
const builderContext = {
|
|
101
|
-
workspaceRoot: context.root,
|
|
102
|
-
target: {
|
|
103
|
-
project: context.projectName,
|
|
104
|
-
target: context.targetName,
|
|
105
|
-
configuration: context.configurationName,
|
|
106
|
-
},
|
|
107
|
-
builder: {
|
|
108
|
-
...builderInfo,
|
|
109
|
-
},
|
|
110
|
-
logger: (0, exports.getLogger)(),
|
|
111
|
-
id: 1,
|
|
112
|
-
currentDirectory: process.cwd(),
|
|
113
|
-
scheduleTarget: (...args) => architect.scheduleTarget(...args),
|
|
114
|
-
scheduleBuilder: (...args) => architect.scheduleBuilder(...args),
|
|
115
|
-
addTeardown(teardown) {
|
|
116
|
-
// No-op as Nx doesn't require an implementation of this function
|
|
117
|
-
return;
|
|
118
|
-
},
|
|
119
|
-
reportProgress(...args) {
|
|
120
|
-
// No-op as Nx doesn't require an implementation of this function
|
|
121
|
-
return;
|
|
122
|
-
},
|
|
123
|
-
reportRunning(...args) {
|
|
124
|
-
// No-op as Nx doesn't require an implementation of this function
|
|
125
|
-
return;
|
|
126
|
-
},
|
|
127
|
-
reportStatus(status) {
|
|
128
|
-
// No-op as Nx doesn't require an implementation of this function
|
|
129
|
-
return;
|
|
130
|
-
},
|
|
131
|
-
getBuilderNameForTarget,
|
|
132
|
-
getProjectMetadata,
|
|
133
|
-
validateOptions,
|
|
134
|
-
getTargetOptions,
|
|
135
|
-
};
|
|
136
|
-
return builderContext;
|
|
137
|
-
}
|
|
138
|
-
async function scheduleTarget(root, opts, verbose, projectGraph) {
|
|
139
|
-
const { Architect } = require('@angular-devkit/architect');
|
|
140
|
-
const logger = (0, exports.getLogger)(verbose);
|
|
141
|
-
const fsHost = new NxScopedHostForBuilders(root, projectGraph);
|
|
142
|
-
const { workspace } = await core_1.workspaces.readWorkspace('angular.json', core_1.workspaces.createWorkspaceHost(fsHost));
|
|
143
|
-
const architectHost = await getWrappedWorkspaceNodeModulesArchitectHost(workspace, root, opts.projects);
|
|
144
|
-
const project = workspace.projects.get(opts.project);
|
|
145
|
-
if (!project) {
|
|
146
|
-
throw new Error(`Cannot find project '${opts.project}' in the workspace`);
|
|
147
|
-
}
|
|
148
|
-
if (!project.targets?.get(opts.target)) {
|
|
149
|
-
throw new Error(`Cannot find target '${opts.target}' for project '${opts.project}'`);
|
|
150
|
-
}
|
|
151
|
-
const builderName = project.targets.get(opts.target).builder;
|
|
152
|
-
if (!builderName) {
|
|
153
|
-
throw new Error(`Cannot find the builder for the target '${opts.target}' of project '${opts.project}'`);
|
|
154
|
-
}
|
|
155
|
-
const isAngularBuild = builderName.startsWith('@angular/build:') ||
|
|
156
|
-
['@nx/angular:application', '@nx/angular:unit-test'].includes(builderName);
|
|
157
|
-
const registry = new core_1.schema.CoreSchemaRegistry();
|
|
158
|
-
registry.addPostTransform(getUndefinedDefaultsTransform(isAngularBuild));
|
|
159
|
-
registry.addSmartDefaultProvider('unparsed', () => {
|
|
160
|
-
// This happens when context.scheduleTarget is used to run a target using nx:run-commands
|
|
161
|
-
return [];
|
|
162
|
-
});
|
|
163
|
-
const architect = new Architect(architectHost, registry);
|
|
164
|
-
const run = await architect.scheduleTarget({
|
|
165
|
-
project: opts.project,
|
|
166
|
-
target: opts.target,
|
|
167
|
-
configuration: opts.configuration,
|
|
168
|
-
}, opts.runOptions, { logger });
|
|
169
|
-
let lastOutputError;
|
|
170
|
-
return run.output.pipe((0, operators_1.tap)((output) => (lastOutputError = !output.success ? output.error : undefined), (error) => { }, // do nothing, this could be an intentional error
|
|
171
|
-
() => {
|
|
172
|
-
lastOutputError ? logger.error(lastOutputError) : 0;
|
|
173
|
-
}));
|
|
174
|
-
}
|
|
175
|
-
function createNodeModulesEngineHost(resolvePaths, projects) {
|
|
176
|
-
const NodeModulesEngineHost = require('@angular-devkit/schematics/tools')
|
|
177
|
-
.NodeModulesEngineHost;
|
|
178
|
-
class NxNodeModulesEngineHost extends NodeModulesEngineHost {
|
|
179
|
-
constructor() {
|
|
180
|
-
super(resolvePaths);
|
|
181
|
-
}
|
|
182
|
-
_resolveCollectionPath(name, requester) {
|
|
183
|
-
let collectionFilePath;
|
|
184
|
-
const paths = requester
|
|
185
|
-
? [(0, path_1.dirname)(requester), ...(resolvePaths || [])]
|
|
186
|
-
: resolvePaths || [];
|
|
187
|
-
if (name.endsWith('.json')) {
|
|
188
|
-
collectionFilePath = require.resolve(name, { paths });
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
const { json: { generators, schematics }, path: packageJsonPath, } = (0, plugins_1.readPluginPackageJson)(name, projects, paths);
|
|
192
|
-
if (!schematics && !generators) {
|
|
193
|
-
throw new Error(`The "${name}" package does not support Nx generators or Angular Devkit schematics.`);
|
|
194
|
-
}
|
|
195
|
-
collectionFilePath = require.resolve((0, path_1.join)((0, path_1.dirname)(packageJsonPath), schematics ?? generators));
|
|
196
|
-
}
|
|
197
|
-
return collectionFilePath;
|
|
198
|
-
}
|
|
199
|
-
_transformCollectionDescription(name, desc) {
|
|
200
|
-
desc.schematics ??= desc.generators;
|
|
201
|
-
return super._transformCollectionDescription(name, desc);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
return new NxNodeModulesEngineHost();
|
|
205
|
-
}
|
|
206
|
-
function createWorkflow(fsHost, root, opts, projects) {
|
|
207
|
-
const NodeWorkflow = require('@angular-devkit/schematics/tools').NodeWorkflow;
|
|
208
|
-
const workflow = new NodeWorkflow(fsHost, {
|
|
209
|
-
force: false,
|
|
210
|
-
dryRun: opts.dryRun,
|
|
211
|
-
packageManager: (0, package_manager_1.detectPackageManager)(),
|
|
212
|
-
root: (0, core_1.normalize)(root),
|
|
213
|
-
registry: new core_1.schema.CoreSchemaRegistry(require('@angular-devkit/schematics').formats.standardFormats),
|
|
214
|
-
resolvePaths: [process.cwd(), root],
|
|
215
|
-
engineHostCreator: (options) => createNodeModulesEngineHost(options.resolvePaths, projects),
|
|
216
|
-
});
|
|
217
|
-
workflow.registry.addPostTransform(core_1.schema.transforms.addUndefinedDefaults);
|
|
218
|
-
workflow.engineHost.registerOptionsTransform(require('@angular-devkit/schematics/tools').validateOptionsWithSchema(workflow.registry));
|
|
219
|
-
if (opts.interactive) {
|
|
220
|
-
workflow.registry.usePromptProvider(createPromptProvider());
|
|
221
|
-
}
|
|
222
|
-
return workflow;
|
|
223
|
-
}
|
|
224
|
-
function getCollection(workflow, name) {
|
|
225
|
-
const collection = workflow.engine.createCollection(name);
|
|
226
|
-
if (!collection)
|
|
227
|
-
throw new Error(`Cannot find collection '${name}'`);
|
|
228
|
-
return collection;
|
|
229
|
-
}
|
|
230
|
-
async function createRecorder(host, record, logger) {
|
|
231
|
-
return (event) => {
|
|
232
|
-
let eventPath = event.path.startsWith('/')
|
|
233
|
-
? event.path.slice(1)
|
|
234
|
-
: event.path;
|
|
235
|
-
if (event.kind === 'error') {
|
|
236
|
-
record.error = true;
|
|
237
|
-
logger.warn(`ERROR! ${eventPath} ${event.description == 'alreadyExist'
|
|
238
|
-
? 'already exists'
|
|
239
|
-
: 'does not exist.'}.`);
|
|
240
|
-
}
|
|
241
|
-
else if (event.kind === 'update') {
|
|
242
|
-
record.loggingQueue.push(core_1.tags.oneLine `${pc.white('UPDATE')} ${eventPath}`);
|
|
243
|
-
record.changes?.push(emptyFileChange('UPDATE', eventPath));
|
|
244
|
-
}
|
|
245
|
-
else if (event.kind === 'create') {
|
|
246
|
-
record.loggingQueue.push(core_1.tags.oneLine `${pc.green('CREATE')} ${eventPath}`);
|
|
247
|
-
record.changes?.push(emptyFileChange('CREATE', eventPath));
|
|
248
|
-
}
|
|
249
|
-
else if (event.kind === 'delete') {
|
|
250
|
-
record.loggingQueue.push(`${pc.yellow('DELETE')} ${eventPath}`);
|
|
251
|
-
record.changes?.push({ type: 'DELETE', path: eventPath, content: null });
|
|
252
|
-
}
|
|
253
|
-
else if (event.kind === 'rename') {
|
|
254
|
-
record.loggingQueue.push(`${pc.blue('RENAME')} ${eventPath} => ${event.to}`);
|
|
255
|
-
// Surface as DELETE source + CREATE destination so downstream consumers
|
|
256
|
-
// (e.g. the agentic validation prompt's `<files_changed>` block) see
|
|
257
|
-
// both endpoints.
|
|
258
|
-
const toPath = event.to.startsWith('/') ? event.to.slice(1) : event.to;
|
|
259
|
-
record.changes?.push({ type: 'DELETE', path: eventPath, content: null });
|
|
260
|
-
record.changes?.push(emptyFileChange('CREATE', toPath));
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
// Empty content for non-DELETE FileChange entries: the Angular workflow has
|
|
265
|
-
// already flushed bytes to disk, and our only downstream consumer (agentic
|
|
266
|
-
// prompt builders) reads `path` + `type` only. `null` is reserved for DELETE.
|
|
267
|
-
function emptyFileChange(type, path) {
|
|
268
|
-
return { type, path, content: Buffer.alloc(0) };
|
|
269
|
-
}
|
|
270
|
-
async function runSchematic(host, root, workflow, logger, opts, schematic, printDryRunMessage = true, recorder = null) {
|
|
271
|
-
const record = {
|
|
272
|
-
loggingQueue: [],
|
|
273
|
-
error: false,
|
|
274
|
-
};
|
|
275
|
-
workflow.reporter.subscribe(recorder || (await createRecorder(host, record, logger)));
|
|
276
|
-
try {
|
|
277
|
-
await workflow
|
|
278
|
-
.execute({
|
|
279
|
-
collection: opts.collectionName,
|
|
280
|
-
schematic: opts.generatorName,
|
|
281
|
-
options: opts.generatorOptions,
|
|
282
|
-
debug: false,
|
|
283
|
-
logger,
|
|
284
|
-
})
|
|
285
|
-
.toPromise();
|
|
286
|
-
}
|
|
287
|
-
catch (e) {
|
|
288
|
-
console.error(e);
|
|
289
|
-
throw e;
|
|
290
|
-
}
|
|
291
|
-
if (!record.error) {
|
|
292
|
-
record.loggingQueue.forEach((log) => logger.info(log));
|
|
293
|
-
}
|
|
294
|
-
if (opts.dryRun && printDryRunMessage) {
|
|
295
|
-
logger.warn(`\nNOTE: The "dryRun" flag means no changes were made.`);
|
|
296
|
-
}
|
|
297
|
-
return { status: 0, loggingQueue: record.loggingQueue };
|
|
298
|
-
}
|
|
299
|
-
class NxScopedHost extends core_1.virtualFs.ScopedHost {
|
|
300
|
-
constructor(root, _projectGraph) {
|
|
301
|
-
super(new node_1.NodeJsSyncHost(), (0, core_1.normalize)(root));
|
|
302
|
-
this.root = root;
|
|
303
|
-
this._projectGraph = _projectGraph;
|
|
304
|
-
}
|
|
305
|
-
read(path) {
|
|
306
|
-
if ((path === 'angular.json' || path === '/angular.json') &&
|
|
307
|
-
(0, angular_json_1.isAngularPluginInstalled)()) {
|
|
308
|
-
return this.readMergedWorkspaceConfiguration().pipe(
|
|
309
|
-
// structuredClone to avoid toOldFormat mutating shared graph objects
|
|
310
|
-
(0, operators_1.map)((r) => stringToArrayBuffer(JSON.stringify((0, angular_json_1.toOldFormat)(structuredClone(r))))));
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
return super.read(path);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
readMergedWorkspaceConfiguration() {
|
|
317
|
-
return (0, rxjs_1.zip)(this._projectGraph ? (0, rxjs_1.of)(this._projectGraph) : (0, rxjs_1.from)(getProjectGraph()), this.readExistingAngularJson(), this.readJson('nx.json')).pipe((0, operators_1.concatMap)(([graph, angularJson, nxJson]) => {
|
|
318
|
-
const workspaceConfig = (angularJson || { projects: {} });
|
|
319
|
-
workspaceConfig.cli ??= nxJson.cli;
|
|
320
|
-
workspaceConfig.schematics ??= nxJson.generators;
|
|
321
|
-
const projectJsonReads = [];
|
|
322
|
-
for (let projectName of Object.keys(graph.nodes)) {
|
|
323
|
-
if (!workspaceConfig.projects[projectName]) {
|
|
324
|
-
projectJsonReads.push((0, rxjs_1.zip)((0, rxjs_1.of)(projectName), this.readJson((0, path_1.join)(graph.nodes[projectName].data.root, 'project.json'))));
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
return (0, rxjs_1.zip)(...projectJsonReads).pipe((0, operators_1.map)((reads) => {
|
|
328
|
-
reads
|
|
329
|
-
.filter(([, p]) => p !== null)
|
|
330
|
-
.forEach(([projectName, project]) => {
|
|
331
|
-
workspaceConfig.projects[projectName] = {
|
|
332
|
-
...project,
|
|
333
|
-
root: graph.nodes[projectName].data.root,
|
|
334
|
-
};
|
|
335
|
-
});
|
|
336
|
-
return workspaceConfig;
|
|
337
|
-
}));
|
|
338
|
-
}), (0, operators_1.catchError)((err) => {
|
|
339
|
-
console.error('Unable to read angular.json');
|
|
340
|
-
console.error(err);
|
|
341
|
-
process.exit(1);
|
|
342
|
-
}));
|
|
343
|
-
}
|
|
344
|
-
write(path, content) {
|
|
345
|
-
if (path === 'angular.json' || path === '/angular.json') {
|
|
346
|
-
const configV2 = (0, angular_json_1.toNewFormat)((0, json_2.parseJson)(content.toString()));
|
|
347
|
-
const root = this.root;
|
|
348
|
-
return (0, rxjs_1.zip)(this.readMergedWorkspaceConfiguration(), this.readExistingAngularJson()).pipe((0, operators_1.concatMap)((arg) => {
|
|
349
|
-
const existingConfig = arg[0];
|
|
350
|
-
const existingAngularJson = arg[1];
|
|
351
|
-
const projectsInAngularJson = existingAngularJson
|
|
352
|
-
? Object.keys(existingAngularJson.projects)
|
|
353
|
-
: [];
|
|
354
|
-
const projects = configV2.projects;
|
|
355
|
-
const allObservables = [];
|
|
356
|
-
Object.keys(projects).forEach((projectName) => {
|
|
357
|
-
if (!projectsInAngularJson.includes(projectName)) {
|
|
358
|
-
// Restore tokens in options if they were present before
|
|
359
|
-
const previousProject = existingConfig.projects[projectName];
|
|
360
|
-
const newProject = projects[projectName];
|
|
361
|
-
if (previousProject &&
|
|
362
|
-
newProject.targets &&
|
|
363
|
-
previousProject.targets) {
|
|
364
|
-
for (const [targetName, target] of Object.entries(newProject.targets)) {
|
|
365
|
-
const previousTarget = previousProject.targets[targetName];
|
|
366
|
-
if (target.options &&
|
|
367
|
-
previousTarget &&
|
|
368
|
-
previousTarget.options) {
|
|
369
|
-
target.options = restoreNxTokensInOptions(target.options, previousTarget.options, newProject);
|
|
370
|
-
}
|
|
371
|
-
if (target.configurations &&
|
|
372
|
-
previousTarget &&
|
|
373
|
-
previousTarget.configurations) {
|
|
374
|
-
for (const [configName, config] of Object.entries(target.configurations)) {
|
|
375
|
-
if (previousTarget.configurations[configName]) {
|
|
376
|
-
target.configurations[configName] =
|
|
377
|
-
restoreNxTokensInOptions(config, previousTarget.configurations[configName], newProject);
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
(0, project_configuration_1.updateProjectConfiguration)({
|
|
384
|
-
root,
|
|
385
|
-
exists: () => true,
|
|
386
|
-
write: (path, content) => {
|
|
387
|
-
if (existingConfig.projects[projectName]) {
|
|
388
|
-
const updatedContent = this.mergeProjectConfiguration(existingConfig.projects[projectName], projects[projectName], projectName);
|
|
389
|
-
if (updatedContent) {
|
|
390
|
-
delete updatedContent.root;
|
|
391
|
-
allObservables.push(super.write(path, stringToArrayBuffer(JSON.stringify(updatedContent, null, 2))));
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
allObservables.push(super.write(path, stringToArrayBuffer(content)));
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
}, projectName, projects[projectName]);
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
|
-
return (0, rxjs_1.concat)(...allObservables);
|
|
402
|
-
}));
|
|
403
|
-
}
|
|
404
|
-
else {
|
|
405
|
-
return super.write(path, content);
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
isFile(path) {
|
|
409
|
-
if (path === 'angular.json' || path === '/angular.json') {
|
|
410
|
-
return (0, rxjs_1.of)(true);
|
|
411
|
-
}
|
|
412
|
-
else {
|
|
413
|
-
return super.isFile(path);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
exists(path) {
|
|
417
|
-
if (path === 'angular.json' || path === '/angular.json') {
|
|
418
|
-
return (0, rxjs_1.of)(true);
|
|
419
|
-
}
|
|
420
|
-
else {
|
|
421
|
-
return super.exists(path);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
mergeProjectConfiguration(existing, updated, projectName) {
|
|
425
|
-
const res = { ...existing };
|
|
426
|
-
let modified = false;
|
|
427
|
-
function updatePropertyIfDifferent(property) {
|
|
428
|
-
if (typeof res[property] === 'string') {
|
|
429
|
-
if (res[property] !== updated[property]) {
|
|
430
|
-
res[property] = updated[property];
|
|
431
|
-
modified = true;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
else if (JSON.stringify(res[property]) !== JSON.stringify(updated[property])) {
|
|
435
|
-
res[property] = updated[property];
|
|
436
|
-
modified = true;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
if (!res.name || (updated.name && res.name !== updated.name)) {
|
|
440
|
-
res.name ??= updated.name || projectName;
|
|
441
|
-
modified = true;
|
|
442
|
-
}
|
|
443
|
-
updatePropertyIfDifferent('projectType');
|
|
444
|
-
updatePropertyIfDifferent('sourceRoot');
|
|
445
|
-
updatePropertyIfDifferent('prefix');
|
|
446
|
-
updatePropertyIfDifferent('targets');
|
|
447
|
-
updatePropertyIfDifferent('generators');
|
|
448
|
-
updatePropertyIfDifferent('implicitDependencies');
|
|
449
|
-
updatePropertyIfDifferent('tags');
|
|
450
|
-
return modified ? res : null;
|
|
451
|
-
}
|
|
452
|
-
readExistingAngularJson() {
|
|
453
|
-
return this.readJson('angular.json');
|
|
454
|
-
}
|
|
455
|
-
readJson(path) {
|
|
456
|
-
return super
|
|
457
|
-
.exists(path)
|
|
458
|
-
.pipe((0, operators_1.concatMap)((r) => r
|
|
459
|
-
? super
|
|
460
|
-
.read(path)
|
|
461
|
-
.pipe((0, operators_1.map)((r) => (0, json_2.parseJson)(arrayBufferToString(r))))
|
|
462
|
-
: (0, rxjs_1.of)(null)));
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
exports.NxScopedHost = NxScopedHost;
|
|
466
|
-
/**
|
|
467
|
-
* Host used by Angular CLI builders. It reads the project configurations from
|
|
468
|
-
* the project graph to access the expanded targets.
|
|
469
|
-
*/
|
|
470
|
-
class NxScopedHostForBuilders extends NxScopedHost {
|
|
471
|
-
constructor(root, projectGraph) {
|
|
472
|
-
super(root, projectGraph);
|
|
473
|
-
}
|
|
474
|
-
readMergedWorkspaceConfiguration() {
|
|
475
|
-
return (0, rxjs_1.zip)((0, rxjs_1.of)(this._projectGraph), this.readExistingAngularJson(), this.readJson('nx.json')).pipe((0, operators_1.map)(([graph, angularJson, nxJson]) => {
|
|
476
|
-
const workspaceConfig = (angularJson || { projects: {} });
|
|
477
|
-
workspaceConfig.cli ??= nxJson.cli;
|
|
478
|
-
workspaceConfig.schematics ??= nxJson.generators;
|
|
479
|
-
for (const projectName of Object.keys(graph.nodes)) {
|
|
480
|
-
workspaceConfig.projects[projectName] ??= {
|
|
481
|
-
...graph.nodes[projectName].data,
|
|
482
|
-
};
|
|
483
|
-
}
|
|
484
|
-
return workspaceConfig;
|
|
485
|
-
}), (0, operators_1.catchError)((err) => {
|
|
486
|
-
console.error('Unable to read angular.json');
|
|
487
|
-
console.error(err);
|
|
488
|
-
process.exit(1);
|
|
489
|
-
}));
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
exports.NxScopedHostForBuilders = NxScopedHostForBuilders;
|
|
493
|
-
function arrayBufferToString(buffer) {
|
|
494
|
-
const array = new Uint8Array(buffer);
|
|
495
|
-
let result = '';
|
|
496
|
-
const chunkSize = 8 * 1024;
|
|
497
|
-
let i = 0;
|
|
498
|
-
for (i = 0; i < array.length / chunkSize; i++) {
|
|
499
|
-
result += String.fromCharCode.apply(null, array.subarray(i * chunkSize, (i + 1) * chunkSize));
|
|
500
|
-
}
|
|
501
|
-
result += String.fromCharCode.apply(null, array.subarray(i * chunkSize));
|
|
502
|
-
return result;
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* Host used by Angular CLI schematics. It reads the project configurations from
|
|
506
|
-
* the project configuration files.
|
|
507
|
-
*/
|
|
508
|
-
class NxScopeHostUsedForWrappedSchematics extends NxScopedHost {
|
|
509
|
-
constructor(root, host, projectGraph) {
|
|
510
|
-
super(root, projectGraph);
|
|
511
|
-
this.host = host;
|
|
512
|
-
}
|
|
513
|
-
read(path) {
|
|
514
|
-
if ((path === 'angular.json' || path === '/angular.json') &&
|
|
515
|
-
(0, angular_json_1.isAngularPluginInstalled)()) {
|
|
516
|
-
// Replace the Nx-specific tokens in all target options
|
|
517
|
-
const projects = Object.fromEntries((0, project_configuration_1.getProjects)(this.host));
|
|
518
|
-
for (const [projectName, project] of Object.entries(projects)) {
|
|
519
|
-
if (project.targets) {
|
|
520
|
-
for (const [targetName, target] of Object.entries(project.targets)) {
|
|
521
|
-
if (target.options) {
|
|
522
|
-
target.options = (0, target_merging_1.resolveNxTokensInOptions)(target.options, { ...project, name: projectName }, `${projectName}:${targetName}`);
|
|
523
|
-
}
|
|
524
|
-
if (target.configurations) {
|
|
525
|
-
for (const [configName, config] of Object.entries(target.configurations)) {
|
|
526
|
-
target.configurations[configName] = (0, target_merging_1.resolveNxTokensInOptions)(config, { ...project, name: projectName }, `${projectName}:${targetName}:${configName}`);
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
const projectJsonConfig = (0, angular_json_1.toOldFormat)({ projects });
|
|
533
|
-
return super.readExistingAngularJson().pipe((0, operators_1.map)((angularJson) => {
|
|
534
|
-
if (angularJson) {
|
|
535
|
-
return stringToArrayBuffer(JSON.stringify({
|
|
536
|
-
version: 1,
|
|
537
|
-
projects: {
|
|
538
|
-
...projectJsonConfig.projects,
|
|
539
|
-
...angularJson.projects,
|
|
540
|
-
},
|
|
541
|
-
}));
|
|
542
|
-
}
|
|
543
|
-
else {
|
|
544
|
-
return stringToArrayBuffer(JSON.stringify(projectJsonConfig));
|
|
545
|
-
}
|
|
546
|
-
}));
|
|
547
|
-
}
|
|
548
|
-
else {
|
|
549
|
-
const match = findMatchingFileChange(this.host, path);
|
|
550
|
-
if (match) {
|
|
551
|
-
return (0, rxjs_1.of)(bufferToArrayBuffer(Buffer.from(match.content)));
|
|
552
|
-
}
|
|
553
|
-
else {
|
|
554
|
-
return super.read(path);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
exists(path) {
|
|
559
|
-
if (this.host.exists(path)) {
|
|
560
|
-
return (0, rxjs_1.of)(true);
|
|
561
|
-
}
|
|
562
|
-
else if (path === 'angular.json' || path === '/angular.json') {
|
|
563
|
-
return (0, rxjs_1.of)(true);
|
|
564
|
-
}
|
|
565
|
-
else {
|
|
566
|
-
return super.exists(path);
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
isDirectory(path) {
|
|
570
|
-
if (this.host.exists(path) && !this.host.isFile(path)) {
|
|
571
|
-
return (0, rxjs_1.of)(true);
|
|
572
|
-
}
|
|
573
|
-
else if (path === 'angular.json' || path === '/angular.json') {
|
|
574
|
-
return (0, rxjs_1.of)(false);
|
|
575
|
-
}
|
|
576
|
-
else {
|
|
577
|
-
return super.isDirectory(path);
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
isFile(path) {
|
|
581
|
-
if (this.host.isFile(path)) {
|
|
582
|
-
return (0, rxjs_1.of)(true);
|
|
583
|
-
}
|
|
584
|
-
else if (path === 'angular.json' || path === '/angular.json') {
|
|
585
|
-
return (0, rxjs_1.of)(true);
|
|
586
|
-
}
|
|
587
|
-
else {
|
|
588
|
-
return super.isFile(path);
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
list(path) {
|
|
592
|
-
const fragments = this.host.children(path).map((child) => (0, core_1.fragment)(child));
|
|
593
|
-
return (0, rxjs_1.of)(fragments);
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
exports.NxScopeHostUsedForWrappedSchematics = NxScopeHostUsedForWrappedSchematics;
|
|
597
|
-
function findMatchingFileChange(host, path) {
|
|
598
|
-
const targetPath = (0, core_1.normalize)(path.startsWith('/') ? path.substring(1) : path.toString());
|
|
599
|
-
return host
|
|
600
|
-
.listChanges()
|
|
601
|
-
.find((f) => f.type !== 'DELETE' && (0, core_1.normalize)(f.path) === targetPath);
|
|
602
|
-
}
|
|
603
|
-
async function generate(root, opts, projects, verbose, projectGraph) {
|
|
604
|
-
const logger = (0, exports.getLogger)(verbose);
|
|
605
|
-
const fsHost = new NxScopeHostUsedForWrappedSchematics(root, new tree_1.FsTree(root, verbose, `ng-cli generator: ${opts.collectionName}:${opts.generatorName}`), projectGraph);
|
|
606
|
-
const workflow = createWorkflow(fsHost, root, opts, projects);
|
|
607
|
-
const collection = getCollection(workflow, opts.collectionName);
|
|
608
|
-
const schematic = collection.createSchematic(opts.generatorName, true);
|
|
609
|
-
return (await runSchematic(fsHost, root, workflow, logger, { ...opts, generatorName: schematic.description.name }, schematic)).status;
|
|
610
|
-
}
|
|
611
|
-
function createPromptProvider() {
|
|
612
|
-
return (definitions) => {
|
|
613
|
-
const questions = definitions.map((definition) => {
|
|
614
|
-
const question = {
|
|
615
|
-
name: definition.id,
|
|
616
|
-
message: definition.message,
|
|
617
|
-
};
|
|
618
|
-
if (definition.default) {
|
|
619
|
-
question.initial = definition.default;
|
|
620
|
-
}
|
|
621
|
-
const validator = definition.validator;
|
|
622
|
-
if (validator) {
|
|
623
|
-
question.validate = (input) => validator(input);
|
|
624
|
-
}
|
|
625
|
-
switch (definition.type) {
|
|
626
|
-
case 'string':
|
|
627
|
-
case 'input':
|
|
628
|
-
return { ...question, type: 'input' };
|
|
629
|
-
case 'boolean':
|
|
630
|
-
case 'confirmation':
|
|
631
|
-
case 'confirm':
|
|
632
|
-
return { ...question, type: 'confirm' };
|
|
633
|
-
case 'number':
|
|
634
|
-
case 'numeral':
|
|
635
|
-
return { ...question, type: 'numeral' };
|
|
636
|
-
case 'list':
|
|
637
|
-
return {
|
|
638
|
-
...question,
|
|
639
|
-
type: !!definition.multiselect ? 'multiselect' : 'select',
|
|
640
|
-
choices: definition.items &&
|
|
641
|
-
definition.items.map((item) => {
|
|
642
|
-
if (typeof item == 'string') {
|
|
643
|
-
return item;
|
|
644
|
-
}
|
|
645
|
-
else {
|
|
646
|
-
return {
|
|
647
|
-
message: item.label,
|
|
648
|
-
name: item.value,
|
|
649
|
-
};
|
|
650
|
-
}
|
|
651
|
-
}),
|
|
652
|
-
};
|
|
653
|
-
default:
|
|
654
|
-
return { ...question, type: definition.type };
|
|
655
|
-
}
|
|
656
|
-
});
|
|
657
|
-
// Angular hands over a whole form at once; clack asks one question at a
|
|
658
|
-
// time, so they are run in order and the answers reassembled.
|
|
659
|
-
return (async () => {
|
|
660
|
-
const answers = {};
|
|
661
|
-
for (const question of questions) {
|
|
662
|
-
answers[question.name] = await askSchematicQuestion(question);
|
|
663
|
-
}
|
|
664
|
-
return answers;
|
|
665
|
-
})();
|
|
666
|
-
};
|
|
667
|
-
async function askSchematicQuestion(question) {
|
|
668
|
-
const validate = question.validate
|
|
669
|
-
? (value) => {
|
|
670
|
-
const result = question.validate(value);
|
|
671
|
-
if (result === true)
|
|
672
|
-
return undefined;
|
|
673
|
-
return typeof result === 'string' ? result : 'Invalid value';
|
|
674
|
-
}
|
|
675
|
-
: undefined;
|
|
676
|
-
const choices = (question.choices ?? []).map((c) => typeof c === 'string' ? { value: c } : { value: c.name, label: c.message });
|
|
677
|
-
switch (question.type) {
|
|
678
|
-
case 'confirm':
|
|
679
|
-
return (0, prompt_helpers_1.confirmationPrompt)({
|
|
680
|
-
message: question.message,
|
|
681
|
-
initial: question.initial !== false,
|
|
682
|
-
});
|
|
683
|
-
case 'select':
|
|
684
|
-
return (0, prompt_helpers_1.selectPrompt)({
|
|
685
|
-
message: question.message,
|
|
686
|
-
choices,
|
|
687
|
-
initial: question.initial,
|
|
688
|
-
});
|
|
689
|
-
case 'multiselect':
|
|
690
|
-
return (0, prompt_helpers_1.multiselectPrompt)({
|
|
691
|
-
message: question.message,
|
|
692
|
-
choices,
|
|
693
|
-
initialValues: question.initial,
|
|
694
|
-
});
|
|
695
|
-
case 'numeral': {
|
|
696
|
-
// No numeric prompt; the answer is parsed back so callers still get a
|
|
697
|
-
// number rather than the typed string.
|
|
698
|
-
const answer = await (0, prompt_helpers_1.textPrompt)({
|
|
699
|
-
message: question.message,
|
|
700
|
-
initialValue: question.initial === undefined
|
|
701
|
-
? undefined
|
|
702
|
-
: String(question.initial),
|
|
703
|
-
validate: (value) => value !== '' && !Number.isNaN(Number(value))
|
|
704
|
-
? validate?.(value)
|
|
705
|
-
: 'Please enter a number',
|
|
706
|
-
});
|
|
707
|
-
return Number(answer);
|
|
708
|
-
}
|
|
709
|
-
default:
|
|
710
|
-
return (0, prompt_helpers_1.textPrompt)({
|
|
711
|
-
message: question.message,
|
|
712
|
-
initialValue: question.initial,
|
|
713
|
-
validate,
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
async function runMigration(root, packageName, migrationName, projects, isVerbose, projectGraph) {
|
|
719
|
-
const logger = (0, exports.getLogger)(isVerbose);
|
|
720
|
-
const fsHost = new NxScopeHostUsedForWrappedSchematics(root, new tree_1.FsTree(root, isVerbose, `ng-cli migration: ${packageName}:${migrationName}`), projectGraph);
|
|
721
|
-
const workflow = createWorkflow(fsHost, root, {}, projects);
|
|
722
|
-
const collection = resolveMigrationsCollection(packageName);
|
|
723
|
-
const record = {
|
|
724
|
-
loggingQueue: [],
|
|
725
|
-
changes: [],
|
|
726
|
-
error: false,
|
|
727
|
-
};
|
|
728
|
-
workflow.reporter.subscribe(await createRecorder(fsHost, record, logger));
|
|
729
|
-
await workflow
|
|
730
|
-
.execute({
|
|
731
|
-
collection,
|
|
732
|
-
schematic: migrationName,
|
|
733
|
-
options: {},
|
|
734
|
-
debug: false,
|
|
735
|
-
logger: logger,
|
|
736
|
-
})
|
|
737
|
-
.toPromise();
|
|
738
|
-
return {
|
|
739
|
-
loggingQueue: record.loggingQueue,
|
|
740
|
-
changes: record.changes,
|
|
741
|
-
madeChanges: record.loggingQueue.length > 0,
|
|
742
|
-
};
|
|
743
|
-
}
|
|
744
|
-
function resolveMigrationsCollection(name) {
|
|
745
|
-
let collectionPath = undefined;
|
|
746
|
-
if (name.startsWith('.') || name.startsWith('/')) {
|
|
747
|
-
name = (0, path_1.resolve)(name);
|
|
748
|
-
}
|
|
749
|
-
if ((0, path_1.extname)(name)) {
|
|
750
|
-
collectionPath = require.resolve(name);
|
|
751
|
-
}
|
|
752
|
-
else {
|
|
753
|
-
const { path: packageJsonPath, packageJson } = (0, package_json_1.readModulePackageJson)(name, (0, installation_directory_1.getNxRequirePaths)(process.cwd()));
|
|
754
|
-
let pkgJsonSchematics = packageJson['nx-migrations'] ?? packageJson['ng-update'];
|
|
755
|
-
if (!pkgJsonSchematics) {
|
|
756
|
-
throw new Error(`Could not find migrations in package: "${name}"`);
|
|
757
|
-
}
|
|
758
|
-
if (typeof pkgJsonSchematics != 'string') {
|
|
759
|
-
pkgJsonSchematics = pkgJsonSchematics.migrations;
|
|
760
|
-
}
|
|
761
|
-
collectionPath = require.resolve(pkgJsonSchematics, {
|
|
762
|
-
paths: [(0, path_1.dirname)(packageJsonPath)],
|
|
763
|
-
});
|
|
764
|
-
}
|
|
765
|
-
try {
|
|
766
|
-
if (collectionPath) {
|
|
767
|
-
(0, fileutils_1.readJsonFile)(collectionPath);
|
|
768
|
-
return collectionPath;
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
catch {
|
|
772
|
-
throw new Error(`Invalid migration file in package: "${name}"`);
|
|
773
|
-
}
|
|
774
|
-
throw new Error(`Collection cannot be resolved: "${name}"`);
|
|
775
|
-
}
|
|
776
|
-
let collectionResolutionOverrides = null;
|
|
777
|
-
let mockedSchematics = null;
|
|
778
|
-
/**
|
|
779
|
-
* If you have an Nx Devkit generator invoking the wrapped Angular Devkit schematic,
|
|
780
|
-
* and you don't want the Angular Devkit schematic to run, you can mock it up using this function.
|
|
781
|
-
*
|
|
782
|
-
* Unfortunately, there are some edge cases in the Nx-Angular devkit integration that
|
|
783
|
-
* can be seen in the unit tests context. This function is useful for handling that as well.
|
|
784
|
-
*
|
|
785
|
-
* In this case, you can mock it up.
|
|
786
|
-
*
|
|
787
|
-
* Example:
|
|
788
|
-
*
|
|
789
|
-
* ```typescript
|
|
790
|
-
* mockSchematicsForTesting({
|
|
791
|
-
* 'mycollection:myschematic': (tree, params) => {
|
|
792
|
-
* tree.write("README.md");
|
|
793
|
-
* }
|
|
794
|
-
* });
|
|
795
|
-
*
|
|
796
|
-
* ```
|
|
797
|
-
*/
|
|
798
|
-
function mockSchematicsForTesting(schematics) {
|
|
799
|
-
mockedSchematics = schematics;
|
|
800
|
-
}
|
|
801
|
-
function wrapAngularDevkitSchematic(collectionName, generatorName) {
|
|
802
|
-
// This is idempotent, if it happens to get called
|
|
803
|
-
// multiple times its no big deal. It ensures that some
|
|
804
|
-
// patches are applied to @angular-devkit code which
|
|
805
|
-
// are necessary. For the most part, our wrapped host hits
|
|
806
|
-
// the necessary areas, but for some things it wouldn't make
|
|
807
|
-
// sense for the adapter to be 100% accurate.
|
|
808
|
-
//
|
|
809
|
-
// e.g. Angular warns about tags, but some angular CLI schematics
|
|
810
|
-
// were written with Nx in mind, and may care about tags.
|
|
811
|
-
require('./compat');
|
|
812
|
-
return async (host, generatorOptions) => {
|
|
813
|
-
const graph = await getProjectGraph();
|
|
814
|
-
const { projects } = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(graph);
|
|
815
|
-
if (mockedSchematics &&
|
|
816
|
-
mockedSchematics[`${collectionName}:${generatorName}`]) {
|
|
817
|
-
return await mockedSchematics[`${collectionName}:${generatorName}`](host, generatorOptions);
|
|
818
|
-
}
|
|
819
|
-
const recorder = (event) => {
|
|
820
|
-
let eventPath = event.path.startsWith('/')
|
|
821
|
-
? event.path.slice(1)
|
|
822
|
-
: event.path;
|
|
823
|
-
if (event.kind === 'error') {
|
|
824
|
-
}
|
|
825
|
-
else if (event.kind === 'update') {
|
|
826
|
-
// Apply special handling for the angular.json file, but only when in an Nx workspace
|
|
827
|
-
if (eventPath === 'angular.json' && (0, angular_json_1.isAngularPluginInstalled)()) {
|
|
828
|
-
saveProjectsConfigurationsInWrappedSchematic(host, event.content.toString());
|
|
829
|
-
}
|
|
830
|
-
else {
|
|
831
|
-
host.write(eventPath, toBufferOrString(event.content));
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
else if (event.kind === 'create') {
|
|
835
|
-
host.write(eventPath, toBufferOrString(event.content));
|
|
836
|
-
}
|
|
837
|
-
else if (event.kind === 'delete') {
|
|
838
|
-
host.delete(eventPath);
|
|
839
|
-
}
|
|
840
|
-
else if (event.kind === 'rename') {
|
|
841
|
-
host.rename(eventPath, event.to);
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
|
-
const fsHost = new NxScopeHostUsedForWrappedSchematics(host.root, host, graph);
|
|
845
|
-
const logger = (0, exports.getLogger)(generatorOptions.verbose);
|
|
846
|
-
const options = {
|
|
847
|
-
generatorOptions,
|
|
848
|
-
dryRun: true,
|
|
849
|
-
interactive: false,
|
|
850
|
-
help: false,
|
|
851
|
-
debug: false,
|
|
852
|
-
collectionName,
|
|
853
|
-
generatorName,
|
|
854
|
-
force: false,
|
|
855
|
-
defaults: false,
|
|
856
|
-
quiet: false,
|
|
857
|
-
};
|
|
858
|
-
const workflow = createWorkflow(fsHost, host.root, options, projects);
|
|
859
|
-
// used for testing
|
|
860
|
-
if (collectionResolutionOverrides) {
|
|
861
|
-
const r = workflow.engineHost.resolve;
|
|
862
|
-
workflow.engineHost.resolve = (collection, b, c) => {
|
|
863
|
-
if (collectionResolutionOverrides[collection]) {
|
|
864
|
-
return collectionResolutionOverrides[collection];
|
|
865
|
-
}
|
|
866
|
-
else {
|
|
867
|
-
return r.apply(workflow.engineHost, [collection, b, c]);
|
|
868
|
-
}
|
|
869
|
-
};
|
|
870
|
-
}
|
|
871
|
-
const collection = getCollection(workflow, collectionName);
|
|
872
|
-
const schematic = collection.createSchematic(generatorName, true);
|
|
873
|
-
const res = await runSchematic(fsHost, host.root, workflow, logger, options, schematic, false, recorder);
|
|
874
|
-
if (res.status !== 0) {
|
|
875
|
-
throw new Error(res.loggingQueue.join('\n'));
|
|
876
|
-
}
|
|
877
|
-
const { lastValueFrom } = require('rxjs');
|
|
878
|
-
const toPromise = (obs) => lastValueFrom ? lastValueFrom(obs) : obs.toPromise();
|
|
879
|
-
return async () => {
|
|
880
|
-
// https://github.com/angular/angular-cli/blob/344193f79d880177e421cff85dd3e94338d07420/packages/angular_devkit/schematics/src/workflow/base.ts#L194-L200
|
|
881
|
-
await toPromise(workflow.engine
|
|
882
|
-
.executePostTasks()
|
|
883
|
-
.pipe((0, operators_1.defaultIfEmpty)(undefined), (0, operators_1.last)()));
|
|
884
|
-
};
|
|
885
|
-
};
|
|
886
|
-
}
|
|
887
|
-
let logger;
|
|
888
|
-
const getLogger = (isVerbose = false) => {
|
|
889
|
-
if (!logger) {
|
|
890
|
-
logger = (0, node_1.createConsoleLogger)(isVerbose, process.stdout, process.stderr, {
|
|
891
|
-
warn: (s) => pc.bold(pc.yellow(s)),
|
|
892
|
-
error: (s) => {
|
|
893
|
-
if (s.startsWith('NX ')) {
|
|
894
|
-
return `\n${logger_1.NX_ERROR} ${pc.bold(pc.red(s.slice(3)))}\n`;
|
|
895
|
-
}
|
|
896
|
-
return pc.bold(pc.red(s));
|
|
897
|
-
},
|
|
898
|
-
info: (s) => {
|
|
899
|
-
if (s.startsWith('NX ')) {
|
|
900
|
-
return `\n${logger_1.NX_PREFIX} ${pc.bold(s.slice(3))}\n`;
|
|
901
|
-
}
|
|
902
|
-
return pc.white(s);
|
|
903
|
-
},
|
|
904
|
-
});
|
|
905
|
-
}
|
|
906
|
-
return logger;
|
|
907
|
-
};
|
|
908
|
-
exports.getLogger = getLogger;
|
|
909
|
-
function saveProjectsConfigurationsInWrappedSchematic(host, content) {
|
|
910
|
-
const projects = (0, angular_json_1.toNewFormat)((0, json_2.parseJson)(content)).projects;
|
|
911
|
-
const existingProjects = (0, project_configuration_1.getProjects)(host);
|
|
912
|
-
const existingAngularJson = host.exists('angular.json')
|
|
913
|
-
? (0, json_1.readJson)(host, 'angular.json')
|
|
914
|
-
: null;
|
|
915
|
-
const projectsInAngularJson = existingAngularJson
|
|
916
|
-
? Object.keys(existingAngularJson.projects)
|
|
917
|
-
: [];
|
|
918
|
-
const newAngularJson = existingAngularJson || {};
|
|
919
|
-
// Reset projects in order to rebuild them, but leave other properties untouched
|
|
920
|
-
newAngularJson.projects = {};
|
|
921
|
-
Object.keys(projects).forEach((projectName) => {
|
|
922
|
-
if (projectsInAngularJson.includes(projectName)) {
|
|
923
|
-
newAngularJson.projects[projectName] = projects[projectName];
|
|
924
|
-
}
|
|
925
|
-
else {
|
|
926
|
-
if (existingProjects.has(projectName)) {
|
|
927
|
-
if (JSON.stringify(existingProjects.get(projectName)) !==
|
|
928
|
-
JSON.stringify(projects[projectName])) {
|
|
929
|
-
(0, project_configuration_1.updateProjectConfiguration)(host, projectName, projects[projectName]);
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
else {
|
|
933
|
-
(0, project_configuration_1.addProjectConfiguration)(host, projectName, projects[projectName]);
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
});
|
|
937
|
-
if (Object.keys(newAngularJson.projects).length > 0) {
|
|
938
|
-
host.write('angular.json', JSON.stringify((0, angular_json_1.toOldFormat)(newAngularJson), null, 2));
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
async function getWrappedWorkspaceNodeModulesArchitectHost(workspace, root, projects) {
|
|
942
|
-
const { WorkspaceNodeModulesArchitectHost: AngularWorkspaceNodeModulesArchitectHost, } = await (0, handle_import_1.handleImport)('@angular-devkit/architect/node/index.js');
|
|
943
|
-
class WrappedWorkspaceNodeModulesArchitectHost extends AngularWorkspaceNodeModulesArchitectHost {
|
|
944
|
-
constructor(workspace, root, projects) {
|
|
945
|
-
super(workspace, root);
|
|
946
|
-
this.workspace = workspace;
|
|
947
|
-
this.root = root;
|
|
948
|
-
this.projects = projects;
|
|
949
|
-
}
|
|
950
|
-
async resolveBuilder(builderStr) {
|
|
951
|
-
const [packageName, builderName] = builderStr.split(':');
|
|
952
|
-
const { executorsFilePath, executorConfig } = this.readExecutorsJson(packageName, builderName);
|
|
953
|
-
const builderInfo = this.readExecutor(packageName, builderName);
|
|
954
|
-
return {
|
|
955
|
-
name: builderStr,
|
|
956
|
-
builderName,
|
|
957
|
-
description: executorConfig.description,
|
|
958
|
-
optionSchema: builderInfo.schema,
|
|
959
|
-
import: (0, schema_utils_1.resolveImplementation)(executorConfig.implementation, (0, path_1.dirname)(executorsFilePath), packageName, this.projects),
|
|
960
|
-
};
|
|
961
|
-
}
|
|
962
|
-
readExecutorsJson(nodeModule, builder, extraRequirePaths = []) {
|
|
963
|
-
const { json: packageJson, path: packageJsonPath } = (0, plugins_1.readPluginPackageJson)(nodeModule, this.projects, this.root
|
|
964
|
-
? [this.root, __dirname, ...extraRequirePaths]
|
|
965
|
-
: [__dirname, ...extraRequirePaths]);
|
|
966
|
-
const executorsFile = packageJson.executors ?? packageJson.builders;
|
|
967
|
-
if (!executorsFile) {
|
|
968
|
-
throw new Error(`The "${nodeModule}" package does not support Nx executors or Angular Devkit Builders.`);
|
|
969
|
-
}
|
|
970
|
-
const basePath = (0, path_1.dirname)(packageJsonPath);
|
|
971
|
-
const executorsFilePath = require.resolve((0, path_1.join)(basePath, executorsFile));
|
|
972
|
-
const executorsJson = (0, fileutils_1.readJsonFile)(executorsFilePath);
|
|
973
|
-
const executorConfig = executorsJson.builders?.[builder] ?? executorsJson.executors?.[builder];
|
|
974
|
-
if (!executorConfig) {
|
|
975
|
-
throw new Error(`Cannot find builder '${builder}' in ${executorsFilePath}.`);
|
|
976
|
-
}
|
|
977
|
-
if (typeof executorConfig === 'string') {
|
|
978
|
-
// Angular CLI can have a builder pointing to another package:builder
|
|
979
|
-
const [packageName, executorName] = executorConfig.split(':');
|
|
980
|
-
return this.readExecutorsJson(packageName, executorName, [basePath]);
|
|
981
|
-
}
|
|
982
|
-
return { executorsFilePath, executorConfig, isNgCompat: true };
|
|
983
|
-
}
|
|
984
|
-
readExecutor(nodeModule, executor) {
|
|
985
|
-
try {
|
|
986
|
-
const { executorsFilePath, executorConfig, isNgCompat } = this.readExecutorsJson(nodeModule, executor);
|
|
987
|
-
const executorsDir = (0, path_1.dirname)(executorsFilePath);
|
|
988
|
-
const schemaPath = (0, schema_utils_1.resolveSchema)(executorConfig.schema, executorsDir, nodeModule, this.projects);
|
|
989
|
-
const schema = (0, executor_utils_1.normalizeExecutorSchema)((0, fileutils_1.readJsonFile)(schemaPath));
|
|
990
|
-
const implementationFactory = this.getImplementationFactory(executorConfig.implementation, executorsDir, nodeModule);
|
|
991
|
-
const batchImplementationFactory = executorConfig.batchImplementation
|
|
992
|
-
? this.getImplementationFactory(executorConfig.batchImplementation, executorsDir, nodeModule)
|
|
993
|
-
: null;
|
|
994
|
-
const hasherFactory = executorConfig.hasher
|
|
995
|
-
? this.getImplementationFactory(executorConfig.hasher, executorsDir, nodeModule)
|
|
996
|
-
: null;
|
|
997
|
-
return {
|
|
998
|
-
schema,
|
|
999
|
-
implementationFactory,
|
|
1000
|
-
batchImplementationFactory,
|
|
1001
|
-
hasherFactory,
|
|
1002
|
-
isNgCompat,
|
|
1003
|
-
};
|
|
1004
|
-
}
|
|
1005
|
-
catch (e) {
|
|
1006
|
-
throw new Error(`Unable to resolve ${nodeModule}:${executor}.\n${e.message}`);
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
getImplementationFactory(implementation, executorsDir, packageName) {
|
|
1010
|
-
return (0, schema_utils_1.getImplementationFactory)(implementation, executorsDir, packageName, this.projects);
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
return new WrappedWorkspaceNodeModulesArchitectHost(workspace, root, projects);
|
|
1014
|
-
}
|
|
1015
|
-
/**
|
|
1016
|
-
* Restores Nx tokens in options when possible by comparing new and previous
|
|
1017
|
-
* options.
|
|
1018
|
-
* The function preserves tokens in the following cases:
|
|
1019
|
-
* 1. When the resolved previous value matches the new value exactly
|
|
1020
|
-
* 2. When the previous value used {workspaceRoot}
|
|
1021
|
-
* 3. When the previous value used {projectRoot} and the new value starts with
|
|
1022
|
-
* the project root path
|
|
1023
|
-
* Those are the only safe cases, for all other cases, the new value is used as-is.
|
|
1024
|
-
*/
|
|
1025
|
-
function restoreNxTokensInOptions(newOptions, previousOptions, project) {
|
|
1026
|
-
if (!newOptions || !previousOptions) {
|
|
1027
|
-
return newOptions;
|
|
1028
|
-
}
|
|
1029
|
-
const result = Array.isArray(newOptions)
|
|
1030
|
-
? [...newOptions]
|
|
1031
|
-
: { ...newOptions };
|
|
1032
|
-
const resolvedPreviousOptions = (0, target_merging_1.resolveNxTokensInOptions)(previousOptions, project, '');
|
|
1033
|
-
for (const key of Object.keys(newOptions)) {
|
|
1034
|
-
const newValue = newOptions[key];
|
|
1035
|
-
const previousValue = previousOptions[key];
|
|
1036
|
-
if (typeof newValue === 'string' && typeof previousValue === 'string') {
|
|
1037
|
-
if (resolvedPreviousOptions[key] === newValue) {
|
|
1038
|
-
// If the resolved previous value matches the new value, use the previous
|
|
1039
|
-
// value (potentially with tokens)
|
|
1040
|
-
result[key] = previousValue;
|
|
1041
|
-
}
|
|
1042
|
-
else if (previousValue.startsWith('{workspaceRoot}/')) {
|
|
1043
|
-
// If the previous value started with {workspaceRoot}, prefix the new
|
|
1044
|
-
// value with {workspaceRoot}
|
|
1045
|
-
result[key] = `{workspaceRoot}/${newValue.replace(/^\//, '')}`;
|
|
1046
|
-
}
|
|
1047
|
-
else if (previousValue.startsWith('{projectRoot}/') &&
|
|
1048
|
-
newValue.startsWith(`${project.root}/`)) {
|
|
1049
|
-
// If the previous value started with {projectRoot} and the new value
|
|
1050
|
-
// starts with the project root, replace the project root with the
|
|
1051
|
-
// {projectRoot} token
|
|
1052
|
-
result[key] = newValue.replace(`${project.root}/`, '{projectRoot}/');
|
|
1053
|
-
}
|
|
1054
|
-
else {
|
|
1055
|
-
// Otherwise, use the new value as-is
|
|
1056
|
-
result[key] = newValue;
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
else if (typeof newValue === 'object' &&
|
|
1060
|
-
typeof previousValue === 'object' &&
|
|
1061
|
-
newValue &&
|
|
1062
|
-
previousValue) {
|
|
1063
|
-
result[key] = restoreNxTokensInOptions(newValue, previousValue, project);
|
|
1064
|
-
}
|
|
1065
|
-
else {
|
|
1066
|
-
result[key] = newValue;
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
return result;
|
|
1070
|
-
}
|
|
1071
|
-
function toBufferOrString(content) {
|
|
1072
|
-
if (Buffer.isBuffer(content) || typeof content === 'string') {
|
|
1073
|
-
return content;
|
|
1074
|
-
}
|
|
1075
|
-
// it's an ArrayBuffer
|
|
1076
|
-
return Buffer.from(content);
|
|
1077
|
-
}
|
|
1078
|
-
function stringToArrayBuffer(str) {
|
|
1079
|
-
return new TextEncoder().encode(str).buffer;
|
|
1080
|
-
}
|
|
1081
|
-
function bufferToArrayBuffer(buffer) {
|
|
1082
|
-
return buffer.buffer.slice(buffer.byteOffset, buffer.byteOffset + buffer.byteLength);
|
|
1083
|
-
}
|