@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,933 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GIT_SHA = exports.GitRepository = void 0;
|
|
4
|
-
exports.cloneFromUpstream = cloneFromUpstream;
|
|
5
|
-
exports.parseVcsRemoteUrl = parseVcsRemoteUrl;
|
|
6
|
-
exports.locateGitDir = locateGitDir;
|
|
7
|
-
exports.getVcsRemoteInfo = getVcsRemoteInfo;
|
|
8
|
-
exports.getGitRootPath = getGitRootPath;
|
|
9
|
-
exports.getGitRootRelativePath = getGitRootRelativePath;
|
|
10
|
-
exports.isShallowRepository = isShallowRepository;
|
|
11
|
-
exports.getFirstCommitSha = getFirstCommitSha;
|
|
12
|
-
exports.isGitRepository = isGitRepository;
|
|
13
|
-
exports.getGitRepositoryStatus = getGitRepositoryStatus;
|
|
14
|
-
exports.getGitCurrentBranch = getGitCurrentBranch;
|
|
15
|
-
exports.getGitRemoteNames = getGitRemoteNames;
|
|
16
|
-
exports.getWorkingTreeStatus = getWorkingTreeStatus;
|
|
17
|
-
exports.hasUncommittedChanges = hasUncommittedChanges;
|
|
18
|
-
exports.getPathCommitExposure = getPathCommitExposure;
|
|
19
|
-
exports.getUncommittedChangesSnapshot = getUncommittedChangesSnapshot;
|
|
20
|
-
exports.commitChanges = commitChanges;
|
|
21
|
-
exports.tryCommitChanges = tryCommitChanges;
|
|
22
|
-
exports.getLatestCommitSha = getLatestCommitSha;
|
|
23
|
-
exports.isAncestorCommit = isAncestorCommit;
|
|
24
|
-
const tslib_1 = require("tslib");
|
|
25
|
-
const child_process_1 = require("child_process");
|
|
26
|
-
const crypto = tslib_1.__importStar(require("crypto"));
|
|
27
|
-
const fs = tslib_1.__importStar(require("fs"));
|
|
28
|
-
const path_1 = require("path");
|
|
29
|
-
const owned_private_dir_1 = require("./owned-private-dir");
|
|
30
|
-
function execFileAsync(file, args, execOptions) {
|
|
31
|
-
return new Promise((res, rej) => {
|
|
32
|
-
(0, child_process_1.execFile)(file, args, { ...execOptions, windowsHide: true }, (err, stdout) => {
|
|
33
|
-
if (err) {
|
|
34
|
-
return rej(err);
|
|
35
|
-
}
|
|
36
|
-
res(stdout.toString());
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
async function cloneFromUpstream(url, destination, { originName, depth } = {
|
|
41
|
-
originName: 'origin',
|
|
42
|
-
}) {
|
|
43
|
-
await execFileAsync('git', [
|
|
44
|
-
'clone',
|
|
45
|
-
url,
|
|
46
|
-
destination,
|
|
47
|
-
...(depth ? ['--depth', `${depth}`] : []),
|
|
48
|
-
'--origin',
|
|
49
|
-
originName,
|
|
50
|
-
], {
|
|
51
|
-
cwd: (0, path_1.dirname)(destination),
|
|
52
|
-
maxBuffer: 10 * 1024 * 1024,
|
|
53
|
-
});
|
|
54
|
-
return new GitRepository(destination);
|
|
55
|
-
}
|
|
56
|
-
class GitRepository {
|
|
57
|
-
constructor(directory) {
|
|
58
|
-
this.directory = directory;
|
|
59
|
-
this.root = this.getGitRootPath(this.directory);
|
|
60
|
-
}
|
|
61
|
-
getGitRootPath(cwd) {
|
|
62
|
-
return getGitRootPath(cwd);
|
|
63
|
-
}
|
|
64
|
-
async hasUncommittedChanges() {
|
|
65
|
-
const data = await this.execGit(['status', '--porcelain']);
|
|
66
|
-
return data.trim() !== '';
|
|
67
|
-
}
|
|
68
|
-
async addFetchRemote(remoteName, branch) {
|
|
69
|
-
return await this.execGit([
|
|
70
|
-
'config',
|
|
71
|
-
'--add',
|
|
72
|
-
`remote.${remoteName}.fetch`,
|
|
73
|
-
`+refs/heads/${branch}:refs/remotes/${remoteName}/${branch}`,
|
|
74
|
-
]);
|
|
75
|
-
}
|
|
76
|
-
async showStat() {
|
|
77
|
-
return await this.execGit(['show', '--stat']);
|
|
78
|
-
}
|
|
79
|
-
async listBranches() {
|
|
80
|
-
return (await this.execGit(['ls-remote', '--heads', '--quiet']))
|
|
81
|
-
.trim()
|
|
82
|
-
.split('\n')
|
|
83
|
-
.map((s) => s
|
|
84
|
-
.trim()
|
|
85
|
-
.substring(s.indexOf('\t') + 1)
|
|
86
|
-
.replace('refs/heads/', ''));
|
|
87
|
-
}
|
|
88
|
-
async getGitFiles(path) {
|
|
89
|
-
// Use -z to return file names exactly as they are stored in git, separated by NULL (\x00) character.
|
|
90
|
-
// This avoids problems with special characters in file names.
|
|
91
|
-
return (await this.execGit(['ls-files', '-z', '--', path]))
|
|
92
|
-
.trim()
|
|
93
|
-
.split('\x00')
|
|
94
|
-
.map((s) => s.trim())
|
|
95
|
-
.filter(Boolean);
|
|
96
|
-
}
|
|
97
|
-
async reset(ref) {
|
|
98
|
-
return await this.execGit(['reset', '--hard', ref]);
|
|
99
|
-
}
|
|
100
|
-
async mergeUnrelatedHistories(ref, message) {
|
|
101
|
-
return await this.execGit([
|
|
102
|
-
'merge',
|
|
103
|
-
ref,
|
|
104
|
-
'-X',
|
|
105
|
-
'ours',
|
|
106
|
-
'--allow-unrelated-histories',
|
|
107
|
-
'-m',
|
|
108
|
-
message,
|
|
109
|
-
]);
|
|
110
|
-
}
|
|
111
|
-
async fetch(remote, ref) {
|
|
112
|
-
return await this.execGit(['fetch', remote, ...(ref ? [ref] : [])]);
|
|
113
|
-
}
|
|
114
|
-
async checkout(branch, opts) {
|
|
115
|
-
return await this.execGit([
|
|
116
|
-
'checkout',
|
|
117
|
-
...(opts.new ? ['-b'] : []),
|
|
118
|
-
branch,
|
|
119
|
-
...(opts.base ? [opts.base] : []),
|
|
120
|
-
]);
|
|
121
|
-
}
|
|
122
|
-
async move(path, destination) {
|
|
123
|
-
return await this.execGit(['mv', '--', path, destination]);
|
|
124
|
-
}
|
|
125
|
-
async push(ref, remoteName) {
|
|
126
|
-
return await this.execGit(['push', '-u', '-f', remoteName, ref]);
|
|
127
|
-
}
|
|
128
|
-
async commit(message) {
|
|
129
|
-
return await this.execGit(['commit', '-am', message]);
|
|
130
|
-
}
|
|
131
|
-
async amendCommit() {
|
|
132
|
-
return await this.execGit(['commit', '--amend', '-a', '--no-edit']);
|
|
133
|
-
}
|
|
134
|
-
async deleteGitRemote(name) {
|
|
135
|
-
return await this.execGit(['remote', 'rm', name]);
|
|
136
|
-
}
|
|
137
|
-
async addGitRemote(name, url) {
|
|
138
|
-
return await this.execGit(['remote', 'add', name, url]);
|
|
139
|
-
}
|
|
140
|
-
async hasFilterRepoInstalled() {
|
|
141
|
-
try {
|
|
142
|
-
await this.execGit(['filter-repo', '--help']);
|
|
143
|
-
return true;
|
|
144
|
-
}
|
|
145
|
-
catch {
|
|
146
|
-
return false;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
// git-filter-repo is much faster than filter-branch, but needs to be installed by user
|
|
150
|
-
// Use `hasFilterRepoInstalled` to check if it's installed
|
|
151
|
-
async filterRepo(source, destination) {
|
|
152
|
-
// NOTE: filter-repo requires POSIX path to work
|
|
153
|
-
const sourcePosixPath = source.split(path_1.sep).join(path_1.posix.sep);
|
|
154
|
-
const destinationPosixPath = destination.split(path_1.sep).join(path_1.posix.sep);
|
|
155
|
-
const sourcePath = ensureTrailingSlash(sourcePosixPath);
|
|
156
|
-
const destinationPath = ensureTrailingSlash(destinationPosixPath);
|
|
157
|
-
await this.execGit([
|
|
158
|
-
'filter-repo',
|
|
159
|
-
'-f',
|
|
160
|
-
...(source !== '' ? ['--path', sourcePosixPath] : []),
|
|
161
|
-
...(source !== destination
|
|
162
|
-
? ['--path-rename', `${sourcePath}:${destinationPath}`]
|
|
163
|
-
: []),
|
|
164
|
-
]);
|
|
165
|
-
}
|
|
166
|
-
async filterBranch(source, destination, branchName) {
|
|
167
|
-
// We need non-ASCII file names to not be quoted, or else filter-branch will exclude them.
|
|
168
|
-
await this.execGit(['config', 'core.quotepath', 'false']);
|
|
169
|
-
// NOTE: filter-repo requires POSIX path to work
|
|
170
|
-
const sourcePosixPath = source.split(path_1.sep).join(path_1.posix.sep);
|
|
171
|
-
const destinationPosixPath = destination.split(path_1.sep).join(path_1.posix.sep);
|
|
172
|
-
// First, if the source is not a root project, then only include commits relevant to the subdirectory.
|
|
173
|
-
if (source !== '') {
|
|
174
|
-
const indexFilterCommand = `node ${quoteForShell((0, path_1.join)(__dirname, 'git-utils.index-filter.js'))}`;
|
|
175
|
-
await this.execGit([
|
|
176
|
-
'filter-branch',
|
|
177
|
-
'-f',
|
|
178
|
-
'--index-filter',
|
|
179
|
-
indexFilterCommand,
|
|
180
|
-
'--prune-empty',
|
|
181
|
-
'--',
|
|
182
|
-
branchName,
|
|
183
|
-
], {
|
|
184
|
-
NX_IMPORT_SOURCE: sourcePosixPath,
|
|
185
|
-
NX_IMPORT_DESTINATION: destinationPosixPath,
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
// Then, move files to their new location if necessary.
|
|
189
|
-
if (source === '' || source !== destination) {
|
|
190
|
-
const treeFilterCommand = `node ${quoteForShell((0, path_1.join)(__dirname, 'git-utils.tree-filter.js'))}`;
|
|
191
|
-
await this.execGit([
|
|
192
|
-
'filter-branch',
|
|
193
|
-
'-f',
|
|
194
|
-
'--tree-filter',
|
|
195
|
-
treeFilterCommand,
|
|
196
|
-
'--',
|
|
197
|
-
branchName,
|
|
198
|
-
], {
|
|
199
|
-
NX_IMPORT_SOURCE: sourcePosixPath,
|
|
200
|
-
NX_IMPORT_DESTINATION: destinationPosixPath,
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
execGit(args, env) {
|
|
205
|
-
return execFileAsync('git', args, {
|
|
206
|
-
cwd: this.root,
|
|
207
|
-
maxBuffer: 10 * 1024 * 1024,
|
|
208
|
-
env: {
|
|
209
|
-
...process.env,
|
|
210
|
-
...env,
|
|
211
|
-
},
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
exports.GitRepository = GitRepository;
|
|
216
|
-
function ensureTrailingSlash(path) {
|
|
217
|
-
return path !== '' && !path.endsWith('/') ? `${path}/` : path;
|
|
218
|
-
}
|
|
219
|
-
function quoteForShell(arg) {
|
|
220
|
-
return `'${arg.replaceAll("'", "'\"'\"'")}'`;
|
|
221
|
-
}
|
|
222
|
-
function parseVcsRemoteUrl(url) {
|
|
223
|
-
// Remove whitespace and handle common URL formats
|
|
224
|
-
const cleanUrl = url.trim();
|
|
225
|
-
// SSH format: git@domain:owner/repo.git
|
|
226
|
-
const sshMatch = cleanUrl.match(/^git@([^:]+):([^\/]+)\/(.+?)(\.git)?$/);
|
|
227
|
-
if (sshMatch) {
|
|
228
|
-
const [, domain, owner, repo] = sshMatch;
|
|
229
|
-
return {
|
|
230
|
-
domain,
|
|
231
|
-
slug: `${owner}/${repo}`,
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
// HTTPS with authentication: https://user@domain/owner/repo.git
|
|
235
|
-
const httpsAuthMatch = cleanUrl.match(/^https?:\/\/[^@]+@([^\/]+)\/([^\/]+)\/(.+?)(\.git)?$/);
|
|
236
|
-
if (httpsAuthMatch) {
|
|
237
|
-
const [, domain, owner, repo] = httpsAuthMatch;
|
|
238
|
-
return {
|
|
239
|
-
domain,
|
|
240
|
-
slug: `${owner}/${repo}`,
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
// HTTPS format: https://domain/owner/repo.git (without authentication)
|
|
244
|
-
const httpsMatch = cleanUrl.match(/^https?:\/\/([^@\/]+)\/([^\/]+)\/(.+?)(\.git)?$/);
|
|
245
|
-
if (httpsMatch) {
|
|
246
|
-
const [, domain, owner, repo] = httpsMatch;
|
|
247
|
-
return {
|
|
248
|
-
domain,
|
|
249
|
-
slug: `${owner}/${repo}`,
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
// SSH alternative format: ssh://git@domain/owner/repo.git or ssh://git@domain:port/owner/repo.git
|
|
253
|
-
const sshAltMatch = cleanUrl.match(/^ssh:\/\/[^@]+@([^:\/]+)(:[0-9]+)?\/([^\/]+)\/(.+?)(\.git)?$/);
|
|
254
|
-
if (sshAltMatch) {
|
|
255
|
-
const [, domain, , owner, repo] = sshAltMatch;
|
|
256
|
-
return {
|
|
257
|
-
domain,
|
|
258
|
-
slug: `${owner}/${repo}`,
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
return null;
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Where `directory`'s repository keeps its working root and its shared config.
|
|
265
|
-
*
|
|
266
|
-
* Walking up for `.git` is what lets the caller answer "which repo, and where
|
|
267
|
-
* am I inside it" without spawning git. It also reports the root as the caller
|
|
268
|
-
* referred to it, where `git rev-parse --show-toplevel` reports the realpath —
|
|
269
|
-
* relevant wherever a path crosses a symlink, macOS's /tmp being the common
|
|
270
|
-
* case.
|
|
271
|
-
*
|
|
272
|
-
* A linked worktree and a submodule both have `.git` as a FILE holding
|
|
273
|
-
* `gitdir: <path>`, and their remotes live in the shared common dir rather than
|
|
274
|
-
* in that per-worktree gitdir, which `commondir` names when it is not the
|
|
275
|
-
* gitdir itself.
|
|
276
|
-
*/
|
|
277
|
-
/**
|
|
278
|
-
* Contents of `path`, or null unless it is a regular file belonging to us.
|
|
279
|
-
*
|
|
280
|
-
* Three flags carry three separate guarantees, and the read needs all of them:
|
|
281
|
-
* `O_NOFOLLOW` refuses a symlink, keeping the read inside the repository;
|
|
282
|
-
* `O_NONBLOCK` stops a FIFO blocking the open forever, which at module scope of
|
|
283
|
-
* `cache-directory.ts` would hang every command in the workspace before it
|
|
284
|
-
* printed anything; and taking the type and owner from `fstat` on the
|
|
285
|
-
* descriptor that is then read leaves no window for the path to be swapped
|
|
286
|
-
* between the check and the read.
|
|
287
|
-
*/
|
|
288
|
-
function readOwnedFileSync(path) {
|
|
289
|
-
let fd;
|
|
290
|
-
try {
|
|
291
|
-
fd = fs.openSync(path, fs.constants.O_RDONLY |
|
|
292
|
-
(fs.constants.O_NOFOLLOW ?? 0) |
|
|
293
|
-
(fs.constants.O_NONBLOCK ?? 0));
|
|
294
|
-
const stats = fs.fstatSync(fd);
|
|
295
|
-
if (!stats.isFile() ||
|
|
296
|
-
(typeof process.getuid === 'function' && stats.uid !== process.getuid())) {
|
|
297
|
-
return null;
|
|
298
|
-
}
|
|
299
|
-
return fs.readFileSync(fd, 'utf8');
|
|
300
|
-
}
|
|
301
|
-
catch {
|
|
302
|
-
return null;
|
|
303
|
-
}
|
|
304
|
-
finally {
|
|
305
|
-
if (fd !== undefined) {
|
|
306
|
-
try {
|
|
307
|
-
fs.closeSync(fd);
|
|
308
|
-
}
|
|
309
|
-
catch { }
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
function locateGitDir(directory) {
|
|
314
|
-
let current = (0, path_1.resolve)(directory);
|
|
315
|
-
// Terminates at the filesystem root, where `dirname` is a fixed point.
|
|
316
|
-
while ((0, path_1.dirname)(current) !== current) {
|
|
317
|
-
const located = gitDirAt(current);
|
|
318
|
-
if (located !== undefined) {
|
|
319
|
-
return located;
|
|
320
|
-
}
|
|
321
|
-
current = (0, path_1.dirname)(current);
|
|
322
|
-
}
|
|
323
|
-
// The root itself: check it directly rather than walking past it.
|
|
324
|
-
return gitDirAt(current) ?? null;
|
|
325
|
-
}
|
|
326
|
-
/**
|
|
327
|
-
* The repository whose working root is `directory`, or:
|
|
328
|
-
*
|
|
329
|
-
* - `null` when a `.git` is there but is not one we will read, which ends the
|
|
330
|
-
* walk rather than continuing past it -- git would not look further either.
|
|
331
|
-
* - `undefined` when there is no `.git` there at all, so the caller keeps
|
|
332
|
-
* walking up.
|
|
333
|
-
*/
|
|
334
|
-
function gitDirAt(directory) {
|
|
335
|
-
const dotGit = (0, path_1.join)(directory, '.git');
|
|
336
|
-
let entry;
|
|
337
|
-
try {
|
|
338
|
-
entry = fs.statSync(dotGit);
|
|
339
|
-
}
|
|
340
|
-
catch {
|
|
341
|
-
return undefined;
|
|
342
|
-
}
|
|
343
|
-
if (entry.isDirectory()) {
|
|
344
|
-
// A directory named `.git` is not a repository. Git checks this before
|
|
345
|
-
// reading config, and asking git is what this function replaced -- so
|
|
346
|
-
// without it a `.git` planted in any writable ancestor (`/tmp` is 1777)
|
|
347
|
-
// decides the workspace identity for everything beneath it.
|
|
348
|
-
if (!fs.existsSync((0, path_1.join)(dotGit, 'HEAD')) ||
|
|
349
|
-
!fs.existsSync((0, path_1.join)(dotGit, 'objects'))) {
|
|
350
|
-
return null;
|
|
351
|
-
}
|
|
352
|
-
// Shape says it is a repository; ownership says it is ours. A real
|
|
353
|
-
// repository belonging to another user passes the check above, and git
|
|
354
|
-
// refuses exactly that (`safe.directory`, CVE-2022-24765). `lstat`
|
|
355
|
-
// inside also refuses a symlink standing in for `.git`.
|
|
356
|
-
return (0, owned_private_dir_1.isOwnedRealDirectory)(dotGit)
|
|
357
|
-
? { gitRoot: directory, commonDir: dotGit }
|
|
358
|
-
: null;
|
|
359
|
-
}
|
|
360
|
-
if (entry.isFile()) {
|
|
361
|
-
const pointer = readOwnedFileSync(dotGit)?.match(/^gitdir:\s*(.+)$/m);
|
|
362
|
-
if (!pointer) {
|
|
363
|
-
return null;
|
|
364
|
-
}
|
|
365
|
-
const gitDir = (0, path_1.resolve)(directory, pointer[1].trim());
|
|
366
|
-
// No commondir file: the gitdir is its own common dir.
|
|
367
|
-
const shared = readOwnedFileSync((0, path_1.join)(gitDir, 'commondir'))?.trim();
|
|
368
|
-
const commonDir = shared ? (0, path_1.resolve)(gitDir, shared) : gitDir;
|
|
369
|
-
// `gitdir:` and `commondir` are paths taken from file contents, so this
|
|
370
|
-
// branch can be pointed anywhere; the directory checks above apply to it
|
|
371
|
-
// just as much.
|
|
372
|
-
return (0, owned_private_dir_1.isOwnedRealDirectory)(commonDir)
|
|
373
|
-
? { gitRoot: directory, commonDir }
|
|
374
|
-
: null;
|
|
375
|
-
}
|
|
376
|
-
return undefined;
|
|
377
|
-
}
|
|
378
|
-
/**
|
|
379
|
-
* Remote name -> url from a git config file, or null when this parser cannot
|
|
380
|
-
* answer for the whole file.
|
|
381
|
-
*
|
|
382
|
-
* Null on `include`/`includeIf` specifically: git resolves those by reading
|
|
383
|
-
* other files, so a remote could live somewhere this does not look, and
|
|
384
|
-
* answering from a partial view would be worse than paying for git.
|
|
385
|
-
*/
|
|
386
|
-
function parseGitConfigRemotes(contents) {
|
|
387
|
-
const remotes = {};
|
|
388
|
-
let remoteName = null;
|
|
389
|
-
for (const rawLine of contents.split('\n')) {
|
|
390
|
-
const line = rawLine.trim();
|
|
391
|
-
if (!line || line.startsWith('#') || line.startsWith(';')) {
|
|
392
|
-
continue;
|
|
393
|
-
}
|
|
394
|
-
if (line.startsWith('[')) {
|
|
395
|
-
const close = line.indexOf(']');
|
|
396
|
-
const section = (close === -1 ? line.slice(1) : line.slice(1, close)).trim();
|
|
397
|
-
if (/^include(If)?\b/i.test(section)) {
|
|
398
|
-
return null;
|
|
399
|
-
}
|
|
400
|
-
// `git remote -v` prints the rewritten url; resolving `insteadOf` here
|
|
401
|
-
// would mean reimplementing the longest-prefix match, so defer instead.
|
|
402
|
-
// A rewrite in the *global* config stays an accepted divergence: this
|
|
403
|
-
// parser deliberately never opens `~/.gitconfig`.
|
|
404
|
-
if (/^url\s+"/i.test(section)) {
|
|
405
|
-
return null;
|
|
406
|
-
}
|
|
407
|
-
const named = section.match(/^remote\s+"(.*)"$/i);
|
|
408
|
-
remoteName = named ? named[1] : null;
|
|
409
|
-
continue;
|
|
410
|
-
}
|
|
411
|
-
if (!remoteName) {
|
|
412
|
-
continue;
|
|
413
|
-
}
|
|
414
|
-
const equals = line.indexOf('=');
|
|
415
|
-
if (equals === -1) {
|
|
416
|
-
continue;
|
|
417
|
-
}
|
|
418
|
-
if (line.slice(0, equals).trim().toLowerCase() !== 'url') {
|
|
419
|
-
continue;
|
|
420
|
-
}
|
|
421
|
-
const raw = line.slice(equals + 1).trim();
|
|
422
|
-
// Git ends a value at an unquoted `#`/`;` and honours `\` escapes. Both are
|
|
423
|
-
// enough to change the url, and reimplementing them is how a parser starts
|
|
424
|
-
// answering confidently wrong, so hand the file to git when either appears.
|
|
425
|
-
if (/[#;\\]/.test(raw)) {
|
|
426
|
-
return null;
|
|
427
|
-
}
|
|
428
|
-
const value = raw.replace(/^"(.*)"$/, '$1');
|
|
429
|
-
if (value.includes('"')) {
|
|
430
|
-
return null;
|
|
431
|
-
}
|
|
432
|
-
// `remote.<name>.url` is multi-valued and git fetches from the first, so
|
|
433
|
-
// taking the first here matches it.
|
|
434
|
-
if (remotes[remoteName] === undefined) {
|
|
435
|
-
remotes[remoteName] = value;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
return remotes;
|
|
439
|
-
}
|
|
440
|
-
/** `origin`, then `upstream`, then `base`, then whichever came first. */
|
|
441
|
-
function selectRemote(found, first) {
|
|
442
|
-
for (const remote of ['origin', 'upstream', 'base']) {
|
|
443
|
-
if (found[remote]) {
|
|
444
|
-
return found[remote];
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
return first;
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* The remote read straight from `.git/config`, or null when that cannot settle
|
|
451
|
-
* it and git itself has to be asked.
|
|
452
|
-
*
|
|
453
|
-
* Worth having because this runs on the import path of every Nx process:
|
|
454
|
-
* `cacheDir` is resolved at module scope, which reaches the repo identity, and
|
|
455
|
-
* `git remote -v` spawns a shell and git to answer a question a file read
|
|
456
|
-
* answers in microseconds.
|
|
457
|
-
*/
|
|
458
|
-
function remoteInfoFromGitConfig(directory) {
|
|
459
|
-
try {
|
|
460
|
-
const located = locateGitDir(directory);
|
|
461
|
-
if (!located) {
|
|
462
|
-
return null;
|
|
463
|
-
}
|
|
464
|
-
const contents = readOwnedFileSync((0, path_1.join)(located.commonDir, 'config'));
|
|
465
|
-
if (contents === null) {
|
|
466
|
-
return null;
|
|
467
|
-
}
|
|
468
|
-
const remotes = parseGitConfigRemotes(contents);
|
|
469
|
-
if (!remotes) {
|
|
470
|
-
return null;
|
|
471
|
-
}
|
|
472
|
-
const found = {};
|
|
473
|
-
let first = null;
|
|
474
|
-
for (const [name, url] of Object.entries(remotes)) {
|
|
475
|
-
const info = parseVcsRemoteUrl(url);
|
|
476
|
-
if (info && !found[name]) {
|
|
477
|
-
found[name] = info;
|
|
478
|
-
first ??= info;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
return selectRemote(found, first);
|
|
482
|
-
}
|
|
483
|
-
catch {
|
|
484
|
-
return null;
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
function getVcsRemoteInfo(directory) {
|
|
488
|
-
const fromConfig = remoteInfoFromGitConfig(directory ?? process.cwd());
|
|
489
|
-
if (fromConfig) {
|
|
490
|
-
return fromConfig;
|
|
491
|
-
}
|
|
492
|
-
// Reached when there is no readable config, no remote in it, or an `include`
|
|
493
|
-
// this parser will not follow. Note for anyone running a spec that asserts no
|
|
494
|
-
// subprocess: a repository with no remote at all lands here every time, so
|
|
495
|
-
// the shell-out is on the failure path rather than gone.
|
|
496
|
-
try {
|
|
497
|
-
const gitRemote = (0, child_process_1.execSync)('git remote -v', {
|
|
498
|
-
stdio: 'pipe',
|
|
499
|
-
windowsHide: true,
|
|
500
|
-
cwd: directory,
|
|
501
|
-
})
|
|
502
|
-
.toString()
|
|
503
|
-
.trim();
|
|
504
|
-
if (!gitRemote || gitRemote.length === 0) {
|
|
505
|
-
return null;
|
|
506
|
-
}
|
|
507
|
-
const lines = gitRemote.split('\n').filter((line) => line.trim());
|
|
508
|
-
const foundRemotes = {};
|
|
509
|
-
let firstRemote = null;
|
|
510
|
-
for (const line of lines) {
|
|
511
|
-
const match = line.trim().match(/^(\w+)\s+(\S+)\s+\((fetch|push)\)$/);
|
|
512
|
-
if (match) {
|
|
513
|
-
const [, remoteName, url] = match;
|
|
514
|
-
const remoteInfo = parseVcsRemoteUrl(url);
|
|
515
|
-
if (remoteInfo && !foundRemotes[remoteName]) {
|
|
516
|
-
foundRemotes[remoteName] = remoteInfo;
|
|
517
|
-
if (!firstRemote) {
|
|
518
|
-
firstRemote = remoteInfo;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
return selectRemote(foundRemotes, firstRemote);
|
|
524
|
-
}
|
|
525
|
-
catch (e) {
|
|
526
|
-
return null;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
function getGitRootPath(cwd) {
|
|
530
|
-
const located = locateGitDir(cwd ?? process.cwd());
|
|
531
|
-
if (located) {
|
|
532
|
-
return located.gitRoot;
|
|
533
|
-
}
|
|
534
|
-
// Outside a repository this throws, which is what `getGitRootRelativePath`
|
|
535
|
-
// turns into null. Kept as the fallback rather than the primary so the common
|
|
536
|
-
// case pays no subprocess.
|
|
537
|
-
return (0, child_process_1.execFileSync)('git', ['rev-parse', '--show-toplevel'], {
|
|
538
|
-
cwd,
|
|
539
|
-
windowsHide: true,
|
|
540
|
-
})
|
|
541
|
-
.toString()
|
|
542
|
-
.trim();
|
|
543
|
-
}
|
|
544
|
-
/**
|
|
545
|
-
* Path of `directory` relative to its git root, posix-separated so it is
|
|
546
|
-
* identical on every OS, and '' when the directory is the git root itself.
|
|
547
|
-
* Null outside a git repository.
|
|
548
|
-
*/
|
|
549
|
-
function getGitRootRelativePath(directory) {
|
|
550
|
-
try {
|
|
551
|
-
return (0, path_1.relative)(getGitRootPath(directory), directory)
|
|
552
|
-
.split(path_1.sep)
|
|
553
|
-
.join(path_1.posix.sep);
|
|
554
|
-
}
|
|
555
|
-
catch {
|
|
556
|
-
return null;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
/** A shallow clone's truncated history has no stable root commit. */
|
|
560
|
-
function isShallowRepository(directory) {
|
|
561
|
-
try {
|
|
562
|
-
return ((0, child_process_1.execFileSync)('git', ['rev-parse', '--is-shallow-repository'], {
|
|
563
|
-
encoding: 'utf8',
|
|
564
|
-
stdio: 'pipe',
|
|
565
|
-
cwd: directory,
|
|
566
|
-
windowsHide: true,
|
|
567
|
-
}).trim() === 'true');
|
|
568
|
-
}
|
|
569
|
-
catch {
|
|
570
|
-
return false;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
/**
|
|
574
|
-
* SHA of the repository's first commit. Merged unrelated histories leave
|
|
575
|
-
* several root commits — the sorted-first one is picked so every clone
|
|
576
|
-
* agrees. Null when there are no commits, or outside a git repository.
|
|
577
|
-
*/
|
|
578
|
-
function getFirstCommitSha(directory) {
|
|
579
|
-
try {
|
|
580
|
-
const roots = (0, child_process_1.execFileSync)('git', ['rev-list', '--max-parents=0', 'HEAD'], {
|
|
581
|
-
encoding: 'utf8',
|
|
582
|
-
stdio: 'pipe',
|
|
583
|
-
cwd: directory,
|
|
584
|
-
windowsHide: true,
|
|
585
|
-
})
|
|
586
|
-
.trim()
|
|
587
|
-
.split(/\r?\n/)
|
|
588
|
-
.filter(Boolean);
|
|
589
|
-
return roots.sort()[0] ?? null;
|
|
590
|
-
}
|
|
591
|
-
catch {
|
|
592
|
-
return null;
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
function isGitRepository(directory) {
|
|
596
|
-
try {
|
|
597
|
-
(0, child_process_1.execSync)('git rev-parse --is-inside-work-tree', {
|
|
598
|
-
stdio: 'ignore',
|
|
599
|
-
cwd: directory,
|
|
600
|
-
windowsHide: true,
|
|
601
|
-
});
|
|
602
|
-
return true;
|
|
603
|
-
}
|
|
604
|
-
catch {
|
|
605
|
-
return false;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
/**
|
|
609
|
-
* Like `isGitRepository`, but separates "this is not a git repository" from
|
|
610
|
-
* "the probe itself failed" (git not installed, permissions). Callers gating
|
|
611
|
-
* destructive or unverifiable behavior on the answer must fail closed on
|
|
612
|
-
* 'unknown' instead of reading a broken probe as a missing repository.
|
|
613
|
-
*/
|
|
614
|
-
function getGitRepositoryStatus(directory) {
|
|
615
|
-
try {
|
|
616
|
-
(0, child_process_1.execSync)('git rev-parse --is-inside-work-tree', {
|
|
617
|
-
stdio: 'pipe',
|
|
618
|
-
cwd: directory,
|
|
619
|
-
windowsHide: true,
|
|
620
|
-
// Force untranslated messages; the classification matches on the
|
|
621
|
-
// English "not a git repository".
|
|
622
|
-
env: { ...process.env, LC_ALL: 'C' },
|
|
623
|
-
});
|
|
624
|
-
return 'git';
|
|
625
|
-
}
|
|
626
|
-
catch (err) {
|
|
627
|
-
const stderr = err?.stderr?.toString() ?? '';
|
|
628
|
-
return /not a git repository/i.test(stderr) ? 'not-git' : 'unknown';
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
// Checked-out branch name, or null when there isn't one to act on: a detached
|
|
632
|
-
// HEAD reports the literal "HEAD" (treated as no branch), and any git error
|
|
633
|
-
// (not a repo, no commits yet) also yields null.
|
|
634
|
-
function getGitCurrentBranch(directory) {
|
|
635
|
-
try {
|
|
636
|
-
const branch = (0, child_process_1.execSync)('git rev-parse --abbrev-ref HEAD', {
|
|
637
|
-
encoding: 'utf8',
|
|
638
|
-
cwd: directory,
|
|
639
|
-
stdio: ['ignore', 'pipe', 'ignore'],
|
|
640
|
-
windowsHide: true,
|
|
641
|
-
}).trim();
|
|
642
|
-
return branch && branch !== 'HEAD' ? branch : null;
|
|
643
|
-
}
|
|
644
|
-
catch {
|
|
645
|
-
return null;
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
// Names of the remotes configured in the repository, empty when there are
|
|
649
|
-
// none or the probe itself failed.
|
|
650
|
-
function getGitRemoteNames(directory) {
|
|
651
|
-
try {
|
|
652
|
-
return (0, child_process_1.execSync)('git remote', {
|
|
653
|
-
encoding: 'utf8',
|
|
654
|
-
cwd: directory,
|
|
655
|
-
stdio: ['ignore', 'pipe', 'ignore'],
|
|
656
|
-
windowsHide: true,
|
|
657
|
-
})
|
|
658
|
-
.split('\n')
|
|
659
|
-
.map((name) => name.trim())
|
|
660
|
-
.filter(Boolean);
|
|
661
|
-
}
|
|
662
|
-
catch {
|
|
663
|
-
return [];
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
// Tri-state working-tree probe: 'unknown' means the probe itself failed (git
|
|
667
|
-
// missing, spawn failure, permissions), not that the tree is clean. Callers
|
|
668
|
-
// that gate destructive actions on tree cleanliness must treat 'unknown' as
|
|
669
|
-
// unsafe rather than clean.
|
|
670
|
-
// `excludePaths` are left out of the probe the way `tryCommitChanges` leaves
|
|
671
|
-
// them out of the commit, so a tree dirty only under them reads as clean. An
|
|
672
|
-
// exclude-only pathspec still covers the whole tree, matching `git add -A`.
|
|
673
|
-
function getWorkingTreeStatus(directory, excludePaths = []) {
|
|
674
|
-
const pathspecs = excludePaths
|
|
675
|
-
.map((excludePath) => ` ":(exclude)${excludePath}"`)
|
|
676
|
-
.join('');
|
|
677
|
-
try {
|
|
678
|
-
const out = (0, child_process_1.execSync)(`git status --porcelain${pathspecs ? ` --${pathspecs}` : ''}`, {
|
|
679
|
-
encoding: 'utf8',
|
|
680
|
-
cwd: directory,
|
|
681
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
682
|
-
windowsHide: true,
|
|
683
|
-
});
|
|
684
|
-
return out.trim() === '' ? 'clean' : 'dirty';
|
|
685
|
-
}
|
|
686
|
-
catch {
|
|
687
|
-
return 'unknown';
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
// Sync companion to `GitRepository.hasUncommittedChanges` for callers that
|
|
691
|
-
// can't drop into the async class. A failed probe reads as false; callers for
|
|
692
|
-
// whom that tolerance is unsafe use `getWorkingTreeStatus` instead.
|
|
693
|
-
function hasUncommittedChanges(directory, excludePaths = []) {
|
|
694
|
-
return getWorkingTreeStatus(directory, excludePaths) === 'dirty';
|
|
695
|
-
}
|
|
696
|
-
// Classifies whether `git add -A` commits made in `directory` can sweep in
|
|
697
|
-
// the directory at `dirPath`. Tracked files stay committable no matter what
|
|
698
|
-
// the ignore rules say (ignore rules never apply to tracked files), so
|
|
699
|
-
// `git ls-files` decides 'tracked' first; `git check-ignore` then splits the
|
|
700
|
-
// untracked remainder into 'ignored' (covered) vs 'unignored' (no
|
|
701
|
-
// coverage). 'unknown' means the probe itself failed (not a git repository,
|
|
702
|
-
// git missing); callers gating destructive behavior on the result must
|
|
703
|
-
// treat it as unsafe.
|
|
704
|
-
function getPathCommitExposure(dirPath, directory) {
|
|
705
|
-
try {
|
|
706
|
-
const tracked = (0, child_process_1.execSync)(`git ls-files -- ${dirPath}`, {
|
|
707
|
-
encoding: 'utf8',
|
|
708
|
-
cwd: directory,
|
|
709
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
710
|
-
windowsHide: true,
|
|
711
|
-
});
|
|
712
|
-
if (tracked.trim() !== '') {
|
|
713
|
-
return 'tracked';
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
catch {
|
|
717
|
-
return 'unknown';
|
|
718
|
-
}
|
|
719
|
-
// Query with a trailing slash so git treats the path as a directory even
|
|
720
|
-
// when it does not exist on disk yet: a directory-only ignore rule (a
|
|
721
|
-
// trailing-slash .gitignore entry) does not match a bare query for an
|
|
722
|
-
// absent path, which would misreport covered workspaces as unignored.
|
|
723
|
-
const asDir = dirPath.endsWith('/') ? dirPath : `${dirPath}/`;
|
|
724
|
-
try {
|
|
725
|
-
(0, child_process_1.execSync)(`git check-ignore -q -- ${asDir}`, {
|
|
726
|
-
cwd: directory,
|
|
727
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
728
|
-
windowsHide: true,
|
|
729
|
-
});
|
|
730
|
-
return 'ignored';
|
|
731
|
-
}
|
|
732
|
-
catch (e) {
|
|
733
|
-
// check-ignore exits 1 for "not ignored"; anything else is a probe
|
|
734
|
-
// failure.
|
|
735
|
-
return e?.status === 1 ? 'unignored' : 'unknown';
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
// Returns a content-sensitive sha1 snapshot of the working tree state for
|
|
739
|
-
// before/after comparison. Hashes three probes:
|
|
740
|
-
// 1. `git diff HEAD` with defensive flags — every byte of tracked-file
|
|
741
|
-
// changes. `--no-ext-diff` / `--no-textconv` neuter user/repo driver
|
|
742
|
-
// overrides so output is deterministic; `--binary` keeps binary
|
|
743
|
-
// edits from collapsing to "Binary files differ".
|
|
744
|
-
// 2. `git status --porcelain=v1 -uall` — untracked paths the diff
|
|
745
|
-
// omits. `-uall` expands untracked directories per-file.
|
|
746
|
-
// 3. Untracked file content bytes — so a same-path content edit on an
|
|
747
|
-
// already-untracked file does not collapse against the baseline.
|
|
748
|
-
//
|
|
749
|
-
// Each probe is wrapped independently with a failure sentinel so a
|
|
750
|
-
// single-sided git error (e.g. `git diff HEAD` on an initial-commit-less
|
|
751
|
-
// repo) cannot mask surviving signal from the others.
|
|
752
|
-
function getUncommittedChangesSnapshot(directory) {
|
|
753
|
-
const hasher = crypto.createHash('sha1');
|
|
754
|
-
const cwd = directory ?? process.cwd();
|
|
755
|
-
const execOpts = {
|
|
756
|
-
encoding: 'utf8',
|
|
757
|
-
cwd,
|
|
758
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
759
|
-
windowsHide: true,
|
|
760
|
-
maxBuffer: 64 * 1024 * 1024,
|
|
761
|
-
};
|
|
762
|
-
let diffOutput;
|
|
763
|
-
try {
|
|
764
|
-
diffOutput = (0, child_process_1.execSync)('git diff HEAD --no-color --no-ext-diff --no-textconv --binary', execOpts);
|
|
765
|
-
}
|
|
766
|
-
catch {
|
|
767
|
-
diffOutput = '<diff-unavailable>';
|
|
768
|
-
}
|
|
769
|
-
hasher.update('diff:').update(diffOutput).update('\0');
|
|
770
|
-
let statusOutput;
|
|
771
|
-
try {
|
|
772
|
-
statusOutput = (0, child_process_1.execSync)('git status --porcelain=v1 -uall', execOpts);
|
|
773
|
-
}
|
|
774
|
-
catch {
|
|
775
|
-
statusOutput = '<status-unavailable>';
|
|
776
|
-
}
|
|
777
|
-
hasher.update('status:').update(statusOutput).update('\0');
|
|
778
|
-
let untrackedRaw;
|
|
779
|
-
try {
|
|
780
|
-
untrackedRaw = (0, child_process_1.execSync)('git ls-files --others --exclude-standard -z', execOpts);
|
|
781
|
-
}
|
|
782
|
-
catch {
|
|
783
|
-
untrackedRaw = '';
|
|
784
|
-
}
|
|
785
|
-
const untrackedPaths = untrackedRaw.split('\0').filter(Boolean).sort();
|
|
786
|
-
hasher.update('untracked:');
|
|
787
|
-
for (const p of untrackedPaths) {
|
|
788
|
-
hasher.update(p).update('\0');
|
|
789
|
-
try {
|
|
790
|
-
hasher.update(fs.readFileSync((0, path_1.join)(cwd, p)));
|
|
791
|
-
}
|
|
792
|
-
catch {
|
|
793
|
-
hasher.update('<file-unreadable>');
|
|
794
|
-
}
|
|
795
|
-
hasher.update('\0');
|
|
796
|
-
}
|
|
797
|
-
return hasher.digest('hex');
|
|
798
|
-
}
|
|
799
|
-
function commitChanges(commitMessage, directory) {
|
|
800
|
-
try {
|
|
801
|
-
(0, child_process_1.execSync)('git add -A', {
|
|
802
|
-
encoding: 'utf8',
|
|
803
|
-
stdio: 'pipe',
|
|
804
|
-
cwd: directory,
|
|
805
|
-
windowsHide: true,
|
|
806
|
-
});
|
|
807
|
-
(0, child_process_1.execSync)('git commit --no-verify -F -', {
|
|
808
|
-
encoding: 'utf8',
|
|
809
|
-
stdio: 'pipe',
|
|
810
|
-
input: commitMessage,
|
|
811
|
-
cwd: directory,
|
|
812
|
-
windowsHide: true,
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
catch (err) {
|
|
816
|
-
if (directory) {
|
|
817
|
-
// We don't want to throw during create-nx-workspace
|
|
818
|
-
// because maybe there was an error when setting up git
|
|
819
|
-
// initially.
|
|
820
|
-
// Required here, not imported: `logger` reaches `daemon/*`, and this
|
|
821
|
-
// module is on the import path of `cache-directory`, whose bindings
|
|
822
|
-
// `daemon/tmp-dir.ts` reads at module scope. A static import would make
|
|
823
|
-
// that a cycle. This is the only logger use in the file.
|
|
824
|
-
const { logger } = require('./logger');
|
|
825
|
-
logger.verbose(`Git may not be set up correctly for this new workspace.
|
|
826
|
-
${err}`);
|
|
827
|
-
}
|
|
828
|
-
else {
|
|
829
|
-
throw new Error(`Error committing changes:\n${err.stderr}`);
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
return getLatestCommitSha(directory);
|
|
833
|
-
}
|
|
834
|
-
/**
|
|
835
|
-
* Throws on git failure with the real stderr attached. Use this when the
|
|
836
|
-
* caller needs to distinguish hook rejection / GPG signing failures / LFS
|
|
837
|
-
* lock errors from a successful no-op. Callers should pre-check
|
|
838
|
-
* `hasUncommittedChanges` to avoid the "nothing to commit" rejection
|
|
839
|
-
* (which `git commit` exits non-zero for).
|
|
840
|
-
*
|
|
841
|
-
* Returns `null` (rather than throwing) when the commit itself succeeded
|
|
842
|
-
* but `git rev-parse HEAD` failed transiently — by contract the diff is
|
|
843
|
-
* no longer in the working tree, so callers must NOT report it as such.
|
|
844
|
-
*
|
|
845
|
-
* `excludePaths` are `directory`-relative paths the commit must not capture,
|
|
846
|
-
* whatever the ignore rules say. Their working-tree files are left intact;
|
|
847
|
-
* only their index entries are put back to HEAD's state. Paths come from
|
|
848
|
-
* callers' own constants, never from user input.
|
|
849
|
-
*/
|
|
850
|
-
function tryCommitChanges(commitMessage, directory, excludePaths = []) {
|
|
851
|
-
try {
|
|
852
|
-
(0, child_process_1.execSync)('git add -A', {
|
|
853
|
-
encoding: 'utf8',
|
|
854
|
-
stdio: 'pipe',
|
|
855
|
-
cwd: directory,
|
|
856
|
-
windowsHide: true,
|
|
857
|
-
});
|
|
858
|
-
// Exclusion happens as an unstage rather than an add-time pathspec:
|
|
859
|
-
// `git add` refuses a pathspec naming an ignored directory (exit 1) even
|
|
860
|
-
// as an exclusion, and an add-time pathspec cannot cover entries that
|
|
861
|
-
// were already staged before this call. The reset is relative to cwd, so
|
|
862
|
-
// a workspace nested inside a larger repo excludes its own path; a path
|
|
863
|
-
// with no index entry is a quiet no-op, unborn HEAD included.
|
|
864
|
-
for (const excludePath of excludePaths) {
|
|
865
|
-
(0, child_process_1.execSync)(`git reset -q -- "${excludePath}"`, {
|
|
866
|
-
encoding: 'utf8',
|
|
867
|
-
stdio: 'pipe',
|
|
868
|
-
cwd: directory,
|
|
869
|
-
windowsHide: true,
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
(0, child_process_1.execSync)('git commit --no-verify -F -', {
|
|
873
|
-
encoding: 'utf8',
|
|
874
|
-
stdio: 'pipe',
|
|
875
|
-
input: commitMessage,
|
|
876
|
-
cwd: directory,
|
|
877
|
-
windowsHide: true,
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
catch (err) {
|
|
881
|
-
const stderr = err?.stderr?.toString();
|
|
882
|
-
const stdout = err?.stdout?.toString();
|
|
883
|
-
const detail = [stderr, stdout]
|
|
884
|
-
.map((s) => s?.trim())
|
|
885
|
-
.filter(Boolean)
|
|
886
|
-
.join('\n');
|
|
887
|
-
// `{ cause }` preserves structured fields (.signal, .status, .code)
|
|
888
|
-
// for callers to inspect; otherwise only stderr/stdout text survives.
|
|
889
|
-
throw new Error(detail || (err instanceof Error ? err.message : String(err)), { cause: err });
|
|
890
|
-
}
|
|
891
|
-
return getLatestCommitSha(directory);
|
|
892
|
-
}
|
|
893
|
-
function getLatestCommitSha(directory) {
|
|
894
|
-
try {
|
|
895
|
-
return (0, child_process_1.execSync)('git rev-parse HEAD', {
|
|
896
|
-
encoding: 'utf8',
|
|
897
|
-
stdio: 'pipe',
|
|
898
|
-
windowsHide: true,
|
|
899
|
-
cwd: directory,
|
|
900
|
-
}).trim();
|
|
901
|
-
}
|
|
902
|
-
catch {
|
|
903
|
-
return null;
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
/**
|
|
907
|
-
* The shape of a recorded `git rev-parse` output: 40 hex chars, or 64 in a
|
|
908
|
-
* sha256 repository. Anything a caller persists and later interpolates into a
|
|
909
|
-
* command line has to be checked against this first.
|
|
910
|
-
*/
|
|
911
|
-
exports.GIT_SHA = /^(?:[0-9a-f]{40}|[0-9a-f]{64})$/i;
|
|
912
|
-
/**
|
|
913
|
-
* Whether `ancestor` is reachable from `descendant`, i.e. resetting to
|
|
914
|
-
* `descendant` keeps `ancestor` in history. Returns false when the answer
|
|
915
|
-
* cannot be established (invalid input, not a repository, unknown commits),
|
|
916
|
-
* so callers treat an unverifiable commit as not preserved.
|
|
917
|
-
*/
|
|
918
|
-
function isAncestorCommit(ancestor, descendant, directory) {
|
|
919
|
-
if (!exports.GIT_SHA.test(ancestor) || !exports.GIT_SHA.test(descendant)) {
|
|
920
|
-
return false;
|
|
921
|
-
}
|
|
922
|
-
try {
|
|
923
|
-
(0, child_process_1.execSync)(`git merge-base --is-ancestor ${ancestor} ${descendant}`, {
|
|
924
|
-
stdio: 'pipe',
|
|
925
|
-
windowsHide: true,
|
|
926
|
-
cwd: directory,
|
|
927
|
-
});
|
|
928
|
-
return true;
|
|
929
|
-
}
|
|
930
|
-
catch {
|
|
931
|
-
return false;
|
|
932
|
-
}
|
|
933
|
-
}
|