@depup/nx 22.5.4-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +157 -0
- package/LICENSE +22 -0
- package/README.md +59 -0
- package/bin/init-local.d.ts +9 -0
- package/bin/init-local.d.ts.map +1 -0
- package/bin/init-local.js +195 -0
- package/bin/nx-cloud.d.ts +4 -0
- package/bin/nx-cloud.d.ts.map +1 -0
- package/bin/nx-cloud.js +47 -0
- package/bin/nx.d.ts +3 -0
- package/bin/nx.d.ts.map +1 -0
- package/bin/nx.js +252 -0
- package/bin/post-install.d.ts +2 -0
- package/bin/post-install.d.ts.map +1 -0
- package/bin/post-install.js +52 -0
- package/bin/run-executor.d.ts +2 -0
- package/bin/run-executor.d.ts.map +1 -0
- package/bin/run-executor.js +66 -0
- package/changes.json +122 -0
- package/executors.json +19 -0
- package/generators.json +16 -0
- package/migrations.json +147 -0
- package/package.json +309 -0
- package/plugins/package-json.d.ts +6 -0
- package/plugins/package-json.d.ts.map +1 -0
- package/plugins/package-json.js +38 -0
- package/presets/core.json +1 -0
- package/presets/npm.json +7 -0
- package/project.json +188 -0
- package/release/changelog-renderer/index.d.ts +109 -0
- package/release/changelog-renderer/index.d.ts.map +1 -0
- package/release/changelog-renderer/index.js +367 -0
- package/release/index.d.ts +5 -0
- package/release/index.d.ts.map +1 -0
- package/release/index.js +13 -0
- package/schemas/nx-schema.json +1400 -0
- package/schemas/project-schema.json +396 -0
- package/schemas/workspace-schema.json +185 -0
- package/src/adapter/angular-json.d.ts +11 -0
- package/src/adapter/angular-json.d.ts.map +1 -0
- package/src/adapter/angular-json.js +129 -0
- package/src/adapter/compat.d.ts +3 -0
- package/src/adapter/compat.d.ts.map +1 -0
- package/src/adapter/compat.js +153 -0
- package/src/adapter/ngcli-adapter.d.ts +102 -0
- package/src/adapter/ngcli-adapter.d.ts.map +1 -0
- package/src/adapter/ngcli-adapter.js +986 -0
- package/src/adapter/rxjs-for-await.d.ts +110 -0
- package/src/adapter/rxjs-for-await.d.ts.map +1 -0
- package/src/adapter/rxjs-for-await.js +362 -0
- package/src/ai/clone-ai-config-repo.d.ts +12 -0
- package/src/ai/clone-ai-config-repo.d.ts.map +1 -0
- package/src/ai/clone-ai-config-repo.js +136 -0
- package/src/ai/constants.d.ts +27 -0
- package/src/ai/constants.d.ts.map +1 -0
- package/src/ai/constants.js +69 -0
- package/src/ai/set-up-ai-agents/get-agent-rules.d.ts +6 -0
- package/src/ai/set-up-ai-agents/get-agent-rules.d.ts.map +1 -0
- package/src/ai/set-up-ai-agents/get-agent-rules.js +26 -0
- package/src/ai/set-up-ai-agents/schema.d.ts +11 -0
- package/src/ai/set-up-ai-agents/schema.json +34 -0
- package/src/ai/set-up-ai-agents/set-up-ai-agents.d.ts +11 -0
- package/src/ai/set-up-ai-agents/set-up-ai-agents.d.ts.map +1 -0
- package/src/ai/set-up-ai-agents/set-up-ai-agents.js +402 -0
- package/src/ai/utils.d.ts +21 -0
- package/src/ai/utils.d.ts.map +1 -0
- package/src/ai/utils.js +215 -0
- package/src/command-line/add/add.d.ts +4 -0
- package/src/command-line/add/add.d.ts.map +1 -0
- package/src/command-line/add/add.js +124 -0
- package/src/command-line/add/command-object.d.ts +9 -0
- package/src/command-line/add/command-object.d.ts.map +1 -0
- package/src/command-line/add/command-object.js +27 -0
- package/src/command-line/affected/affected.d.ts +11 -0
- package/src/command-line/affected/affected.d.ts.map +1 -0
- package/src/command-line/affected/affected.js +89 -0
- package/src/command-line/affected/command-object.d.ts +7 -0
- package/src/command-line/affected/command-object.d.ts.map +1 -0
- package/src/command-line/affected/command-object.js +82 -0
- package/src/command-line/configure-ai-agents/command-object.d.ts +9 -0
- package/src/command-line/configure-ai-agents/command-object.d.ts.map +1 -0
- package/src/command-line/configure-ai-agents/command-object.js +46 -0
- package/src/command-line/configure-ai-agents/configure-ai-agents.d.ts +4 -0
- package/src/command-line/configure-ai-agents/configure-ai-agents.d.ts.map +1 -0
- package/src/command-line/configure-ai-agents/configure-ai-agents.js +321 -0
- package/src/command-line/daemon/command-object.d.ts +4 -0
- package/src/command-line/daemon/command-object.d.ts.map +1 -0
- package/src/command-line/daemon/command-object.js +28 -0
- package/src/command-line/daemon/daemon.d.ts +3 -0
- package/src/command-line/daemon/daemon.d.ts.map +1 -0
- package/src/command-line/daemon/daemon.js +26 -0
- package/src/command-line/deprecated/command-objects.d.ts +10 -0
- package/src/command-line/deprecated/command-objects.d.ts.map +1 -0
- package/src/command-line/deprecated/command-objects.js +48 -0
- package/src/command-line/examples.d.ts +6 -0
- package/src/command-line/examples.d.ts.map +1 -0
- package/src/command-line/examples.js +375 -0
- package/src/command-line/exec/command-object.d.ts +3 -0
- package/src/command-line/exec/command-object.d.ts.map +1 -0
- package/src/command-line/exec/command-object.js +19 -0
- package/src/command-line/exec/exec.d.ts +2 -0
- package/src/command-line/exec/exec.d.ts.map +1 -0
- package/src/command-line/exec/exec.js +142 -0
- package/src/command-line/format/command-object.d.ts +4 -0
- package/src/command-line/format/command-object.d.ts.map +1 -0
- package/src/command-line/format/command-object.js +57 -0
- package/src/command-line/format/format.d.ts +3 -0
- package/src/command-line/format/format.d.ts.map +1 -0
- package/src/command-line/format/format.js +221 -0
- package/src/command-line/generate/command-object.d.ts +3 -0
- package/src/command-line/generate/command-object.d.ts.map +1 -0
- package/src/command-line/generate/command-object.js +66 -0
- package/src/command-line/generate/generate.d.ts +22 -0
- package/src/command-line/generate/generate.d.ts.map +1 -0
- package/src/command-line/generate/generate.js +264 -0
- package/src/command-line/generate/generator-utils.d.ts +19 -0
- package/src/command-line/generate/generator-utils.d.ts.map +1 -0
- package/src/command-line/generate/generator-utils.js +91 -0
- package/src/command-line/graph/command-object.d.ts +26 -0
- package/src/command-line/graph/command-object.d.ts.map +1 -0
- package/src/command-line/graph/command-object.js +75 -0
- package/src/command-line/graph/graph.d.ts +70 -0
- package/src/command-line/graph/graph.d.ts.map +1 -0
- package/src/command-line/graph/graph.js +971 -0
- package/src/command-line/import/command-object.d.ts +3 -0
- package/src/command-line/import/command-object.d.ts.map +1 -0
- package/src/command-line/import/command-object.js +44 -0
- package/src/command-line/import/import.d.ts +26 -0
- package/src/command-line/import/import.d.ts.map +1 -0
- package/src/command-line/import/import.js +375 -0
- package/src/command-line/import/utils/merge-remote-source.d.ts +3 -0
- package/src/command-line/import/utils/merge-remote-source.d.ts.map +1 -0
- package/src/command-line/import/utils/merge-remote-source.js +14 -0
- package/src/command-line/import/utils/prepare-source-repo.d.ts +3 -0
- package/src/command-line/import/utils/prepare-source-repo.d.ts.map +1 -0
- package/src/command-line/import/utils/prepare-source-repo.js +27 -0
- package/src/command-line/index.d.ts +23 -0
- package/src/command-line/index.d.ts.map +1 -0
- package/src/command-line/index.js +26 -0
- package/src/command-line/init/ai-agent-prompts.d.ts +3 -0
- package/src/command-line/init/ai-agent-prompts.d.ts.map +1 -0
- package/src/command-line/init/ai-agent-prompts.js +29 -0
- package/src/command-line/init/command-object.d.ts +3 -0
- package/src/command-line/init/command-object.d.ts.map +1 -0
- package/src/command-line/init/command-object.js +115 -0
- package/src/command-line/init/configure-plugins.d.ts +35 -0
- package/src/command-line/init/configure-plugins.d.ts.map +1 -0
- package/src/command-line/init/configure-plugins.js +204 -0
- package/src/command-line/init/implementation/add-nx-to-monorepo.d.ts +7 -0
- package/src/command-line/init/implementation/add-nx-to-monorepo.d.ts.map +1 -0
- package/src/command-line/init/implementation/add-nx-to-monorepo.js +130 -0
- package/src/command-line/init/implementation/add-nx-to-nest.d.ts +6 -0
- package/src/command-line/init/implementation/add-nx-to-nest.d.ts.map +1 -0
- package/src/command-line/init/implementation/add-nx-to-nest.js +345 -0
- package/src/command-line/init/implementation/add-nx-to-npm-repo.d.ts +7 -0
- package/src/command-line/init/implementation/add-nx-to-npm-repo.d.ts.map +1 -0
- package/src/command-line/init/implementation/add-nx-to-npm-repo.js +72 -0
- package/src/command-line/init/implementation/add-nx-to-turborepo.d.ts +5 -0
- package/src/command-line/init/implementation/add-nx-to-turborepo.d.ts.map +1 -0
- package/src/command-line/init/implementation/add-nx-to-turborepo.js +49 -0
- package/src/command-line/init/implementation/angular/index.d.ts +3 -0
- package/src/command-line/init/implementation/angular/index.d.ts.map +1 -0
- package/src/command-line/init/implementation/angular/index.js +125 -0
- package/src/command-line/init/implementation/angular/integrated-workspace.d.ts +2 -0
- package/src/command-line/init/implementation/angular/integrated-workspace.d.ts.map +1 -0
- package/src/command-line/init/implementation/angular/integrated-workspace.js +12 -0
- package/src/command-line/init/implementation/angular/legacy-angular-versions.d.ts +3 -0
- package/src/command-line/init/implementation/angular/legacy-angular-versions.d.ts.map +1 -0
- package/src/command-line/init/implementation/angular/legacy-angular-versions.js +143 -0
- package/src/command-line/init/implementation/angular/standalone-workspace.d.ts +2 -0
- package/src/command-line/init/implementation/angular/standalone-workspace.d.ts.map +1 -0
- package/src/command-line/init/implementation/angular/standalone-workspace.js +204 -0
- package/src/command-line/init/implementation/angular/types.d.ts +21 -0
- package/src/command-line/init/implementation/angular/types.d.ts.map +1 -0
- package/src/command-line/init/implementation/angular/types.js +2 -0
- package/src/command-line/init/implementation/check-compatible-with-plugins.d.ts +16 -0
- package/src/command-line/init/implementation/check-compatible-with-plugins.d.ts.map +1 -0
- package/src/command-line/init/implementation/check-compatible-with-plugins.js +134 -0
- package/src/command-line/init/implementation/deduce-default-base.d.ts +2 -0
- package/src/command-line/init/implementation/deduce-default-base.d.ts.map +1 -0
- package/src/command-line/init/implementation/deduce-default-base.js +53 -0
- package/src/command-line/init/implementation/dot-nx/add-nx-scripts.d.ts +11 -0
- package/src/command-line/init/implementation/dot-nx/add-nx-scripts.d.ts.map +1 -0
- package/src/command-line/init/implementation/dot-nx/add-nx-scripts.js +119 -0
- package/src/command-line/init/implementation/dot-nx/nxw.d.ts +2 -0
- package/src/command-line/init/implementation/dot-nx/nxw.d.ts.map +1 -0
- package/src/command-line/init/implementation/dot-nx/nxw.js +117 -0
- package/src/command-line/init/implementation/react/add-craco-commands-to-package-scripts.d.ts +2 -0
- package/src/command-line/init/implementation/react/add-craco-commands-to-package-scripts.d.ts.map +1 -0
- package/src/command-line/init/implementation/react/add-craco-commands-to-package-scripts.js +21 -0
- package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.d.ts +2 -0
- package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.d.ts.map +1 -0
- package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.js +20 -0
- package/src/command-line/init/implementation/react/check-for-custom-webpack-setup.d.ts +2 -0
- package/src/command-line/init/implementation/react/check-for-custom-webpack-setup.d.ts.map +1 -0
- package/src/command-line/init/implementation/react/check-for-custom-webpack-setup.js +17 -0
- package/src/command-line/init/implementation/react/check-for-uncommitted-changes.d.ts +2 -0
- package/src/command-line/init/implementation/react/check-for-uncommitted-changes.d.ts.map +1 -0
- package/src/command-line/init/implementation/react/check-for-uncommitted-changes.js +20 -0
- package/src/command-line/init/implementation/react/clean-up-files.d.ts +2 -0
- package/src/command-line/init/implementation/react/clean-up-files.d.ts.map +1 -0
- package/src/command-line/init/implementation/react/clean-up-files.js +30 -0
- package/src/command-line/init/implementation/react/index.d.ts +5 -0
- package/src/command-line/init/implementation/react/index.d.ts.map +1 -0
- package/src/command-line/init/implementation/react/index.js +77 -0
- package/src/command-line/init/implementation/react/read-name-from-package-json.d.ts +2 -0
- package/src/command-line/init/implementation/react/read-name-from-package-json.d.ts.map +1 -0
- package/src/command-line/init/implementation/react/read-name-from-package-json.js +16 -0
- package/src/command-line/init/implementation/react/rename-js-to-jsx.d.ts +2 -0
- package/src/command-line/init/implementation/react/rename-js-to-jsx.d.ts.map +1 -0
- package/src/command-line/init/implementation/react/rename-js-to-jsx.js +22 -0
- package/src/command-line/init/implementation/react/tsconfig-setup.d.ts +2 -0
- package/src/command-line/init/implementation/react/tsconfig-setup.d.ts.map +1 -0
- package/src/command-line/init/implementation/react/tsconfig-setup.js +108 -0
- package/src/command-line/init/implementation/react/write-vite-config.d.ts +2 -0
- package/src/command-line/init/implementation/react/write-vite-config.d.ts.map +1 -0
- package/src/command-line/init/implementation/react/write-vite-config.js +53 -0
- package/src/command-line/init/implementation/react/write-vite-index-html.d.ts +2 -0
- package/src/command-line/init/implementation/react/write-vite-index-html.d.ts.map +1 -0
- package/src/command-line/init/implementation/react/write-vite-index-html.js +24 -0
- package/src/command-line/init/implementation/utils.d.ts +21 -0
- package/src/command-line/init/implementation/utils.d.ts.map +1 -0
- package/src/command-line/init/implementation/utils.js +286 -0
- package/src/command-line/init/init-v1.d.ts +12 -0
- package/src/command-line/init/init-v1.d.ts.map +1 -0
- package/src/command-line/init/init-v1.js +130 -0
- package/src/command-line/init/init-v2.d.ts +18 -0
- package/src/command-line/init/init-v2.d.ts.map +1 -0
- package/src/command-line/init/init-v2.js +355 -0
- package/src/command-line/list/command-object.d.ts +3 -0
- package/src/command-line/list/command-object.d.ts.map +1 -0
- package/src/command-line/list/command-object.js +20 -0
- package/src/command-line/list/list.d.ts +16 -0
- package/src/command-line/list/list.d.ts.map +1 -0
- package/src/command-line/list/list.js +48 -0
- package/src/command-line/mcp/command-object.d.ts +3 -0
- package/src/command-line/mcp/command-object.d.ts.map +1 -0
- package/src/command-line/mcp/command-object.js +28 -0
- package/src/command-line/mcp/mcp.d.ts +3 -0
- package/src/command-line/mcp/mcp.d.ts.map +1 -0
- package/src/command-line/mcp/mcp.js +58 -0
- package/src/command-line/migrate/command-object.d.ts +4 -0
- package/src/command-line/migrate/command-object.d.ts.map +1 -0
- package/src/command-line/migrate/command-object.js +77 -0
- package/src/command-line/migrate/migrate-ui-api.d.ts +77 -0
- package/src/command-line/migrate/migrate-ui-api.d.ts.map +1 -0
- package/src/command-line/migrate/migrate-ui-api.js +341 -0
- package/src/command-line/migrate/migrate.d.ts +136 -0
- package/src/command-line/migrate/migrate.d.ts.map +1 -0
- package/src/command-line/migrate/migrate.js +1338 -0
- package/src/command-line/migrate/run-migration-process.js +85 -0
- package/src/command-line/new/command-object.d.ts +3 -0
- package/src/command-line/new/command-object.d.ts.map +1 -0
- package/src/command-line/new/command-object.js +25 -0
- package/src/command-line/new/new.d.ts +4 -0
- package/src/command-line/new/new.d.ts.map +1 -0
- package/src/command-line/new/new.js +30 -0
- package/src/command-line/nx-cloud/apply-locally/apply-locally.d.ts +5 -0
- package/src/command-line/nx-cloud/apply-locally/apply-locally.d.ts.map +1 -0
- package/src/command-line/nx-cloud/apply-locally/apply-locally.js +13 -0
- package/src/command-line/nx-cloud/apply-locally/command-object.d.ts +3 -0
- package/src/command-line/nx-cloud/apply-locally/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/apply-locally/command-object.js +15 -0
- package/src/command-line/nx-cloud/complete-run/command-object.d.ts +3 -0
- package/src/command-line/nx-cloud/complete-run/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/complete-run/command-object.js +16 -0
- package/src/command-line/nx-cloud/complete-run/stop-all-agents.d.ts +5 -0
- package/src/command-line/nx-cloud/complete-run/stop-all-agents.d.ts.map +1 -0
- package/src/command-line/nx-cloud/complete-run/stop-all-agents.js +13 -0
- package/src/command-line/nx-cloud/connect/command-object.d.ts +4 -0
- package/src/command-line/nx-cloud/connect/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/connect/command-object.js +33 -0
- package/src/command-line/nx-cloud/connect/connect-to-nx-cloud.d.ts +14 -0
- package/src/command-line/nx-cloud/connect/connect-to-nx-cloud.d.ts.map +1 -0
- package/src/command-line/nx-cloud/connect/connect-to-nx-cloud.js +163 -0
- package/src/command-line/nx-cloud/connect/view-logs.d.ts +2 -0
- package/src/command-line/nx-cloud/connect/view-logs.d.ts.map +1 -0
- package/src/command-line/nx-cloud/connect/view-logs.js +53 -0
- package/src/command-line/nx-cloud/download-cloud-client/command-object.d.ts +3 -0
- package/src/command-line/nx-cloud/download-cloud-client/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/download-cloud-client/command-object.js +12 -0
- package/src/command-line/nx-cloud/download-cloud-client/download-cloud-client.d.ts +5 -0
- package/src/command-line/nx-cloud/download-cloud-client/download-cloud-client.d.ts.map +1 -0
- package/src/command-line/nx-cloud/download-cloud-client/download-cloud-client.js +26 -0
- package/src/command-line/nx-cloud/fix-ci/command-object.d.ts +3 -0
- package/src/command-line/nx-cloud/fix-ci/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/fix-ci/command-object.js +15 -0
- package/src/command-line/nx-cloud/fix-ci/fix-ci.d.ts +5 -0
- package/src/command-line/nx-cloud/fix-ci/fix-ci.d.ts.map +1 -0
- package/src/command-line/nx-cloud/fix-ci/fix-ci.js +13 -0
- package/src/command-line/nx-cloud/login/command-object.d.ts +3 -0
- package/src/command-line/nx-cloud/login/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/login/command-object.js +19 -0
- package/src/command-line/nx-cloud/login/login.d.ts +6 -0
- package/src/command-line/nx-cloud/login/login.d.ts.map +1 -0
- package/src/command-line/nx-cloud/login/login.js +16 -0
- package/src/command-line/nx-cloud/logout/command-object.d.ts +3 -0
- package/src/command-line/nx-cloud/logout/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/logout/command-object.js +15 -0
- package/src/command-line/nx-cloud/logout/logout.d.ts +5 -0
- package/src/command-line/nx-cloud/logout/logout.d.ts.map +1 -0
- package/src/command-line/nx-cloud/logout/logout.js +13 -0
- package/src/command-line/nx-cloud/record/command-object.d.ts +3 -0
- package/src/command-line/nx-cloud/record/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/record/command-object.js +18 -0
- package/src/command-line/nx-cloud/record/record.d.ts +6 -0
- package/src/command-line/nx-cloud/record/record.d.ts.map +1 -0
- package/src/command-line/nx-cloud/record/record.js +33 -0
- package/src/command-line/nx-cloud/start-agent/command-object.d.ts +3 -0
- package/src/command-line/nx-cloud/start-agent/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/start-agent/command-object.js +15 -0
- package/src/command-line/nx-cloud/start-agent/start-agent.d.ts +5 -0
- package/src/command-line/nx-cloud/start-agent/start-agent.d.ts.map +1 -0
- package/src/command-line/nx-cloud/start-agent/start-agent.js +13 -0
- package/src/command-line/nx-cloud/start-ci-run/command-object.d.ts +3 -0
- package/src/command-line/nx-cloud/start-ci-run/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/start-ci-run/command-object.js +15 -0
- package/src/command-line/nx-cloud/start-ci-run/start-ci-run.d.ts +5 -0
- package/src/command-line/nx-cloud/start-ci-run/start-ci-run.d.ts.map +1 -0
- package/src/command-line/nx-cloud/start-ci-run/start-ci-run.js +13 -0
- package/src/command-line/nx-cloud/utils.d.ts +3 -0
- package/src/command-line/nx-cloud/utils.d.ts.map +1 -0
- package/src/command-line/nx-cloud/utils.js +27 -0
- package/src/command-line/nx-commands.d.ts +11 -0
- package/src/command-line/nx-commands.d.ts.map +1 -0
- package/src/command-line/nx-commands.js +160 -0
- package/src/command-line/register/command-object.d.ts +7 -0
- package/src/command-line/register/command-object.d.ts.map +1 -0
- package/src/command-line/register/command-object.js +26 -0
- package/src/command-line/register/register.d.ts +3 -0
- package/src/command-line/register/register.d.ts.map +1 -0
- package/src/command-line/register/register.js +9 -0
- package/src/command-line/release/changelog/commit-utils.d.ts +14 -0
- package/src/command-line/release/changelog/commit-utils.d.ts.map +1 -0
- package/src/command-line/release/changelog/commit-utils.js +63 -0
- package/src/command-line/release/changelog/version-plan-filtering.d.ts +42 -0
- package/src/command-line/release/changelog/version-plan-filtering.d.ts.map +1 -0
- package/src/command-line/release/changelog/version-plan-filtering.js +152 -0
- package/src/command-line/release/changelog/version-plan-utils.d.ts +32 -0
- package/src/command-line/release/changelog/version-plan-utils.d.ts.map +1 -0
- package/src/command-line/release/changelog/version-plan-utils.js +92 -0
- package/src/command-line/release/changelog.d.ts +22 -0
- package/src/command-line/release/changelog.d.ts.map +1 -0
- package/src/command-line/release/changelog.js +892 -0
- package/src/command-line/release/command-object.d.ts +84 -0
- package/src/command-line/release/command-object.d.ts.map +1 -0
- package/src/command-line/release/command-object.js +337 -0
- package/src/command-line/release/config/config.d.ts +74 -0
- package/src/command-line/release/config/config.d.ts.map +1 -0
- package/src/command-line/release/config/config.js +1172 -0
- package/src/command-line/release/config/conventional-commits.d.ts +3 -0
- package/src/command-line/release/config/conventional-commits.d.ts.map +1 -0
- package/src/command-line/release/config/conventional-commits.js +106 -0
- package/src/command-line/release/config/deep-merge-json.d.ts +2 -0
- package/src/command-line/release/config/deep-merge-json.d.ts.map +1 -0
- package/src/command-line/release/config/deep-merge-json.js +28 -0
- package/src/command-line/release/config/filter-release-groups.d.ts +24 -0
- package/src/command-line/release/config/filter-release-groups.d.ts.map +1 -0
- package/src/command-line/release/config/filter-release-groups.js +157 -0
- package/src/command-line/release/config/version-plans.d.ts +43 -0
- package/src/command-line/release/config/version-plans.d.ts.map +1 -0
- package/src/command-line/release/config/version-plans.js +254 -0
- package/src/command-line/release/index.d.ts +50 -0
- package/src/command-line/release/index.d.ts.map +1 -0
- package/src/command-line/release/index.js +49 -0
- package/src/command-line/release/plan-check.d.ts +5 -0
- package/src/command-line/release/plan-check.d.ts.map +1 -0
- package/src/command-line/release/plan-check.js +170 -0
- package/src/command-line/release/plan.d.ts +5 -0
- package/src/command-line/release/plan.d.ts.map +1 -0
- package/src/command-line/release/plan.js +261 -0
- package/src/command-line/release/publish.d.ts +10 -0
- package/src/command-line/release/publish.d.ts.map +1 -0
- package/src/command-line/release/publish.js +234 -0
- package/src/command-line/release/release.d.ts +6 -0
- package/src/command-line/release/release.d.ts.map +1 -0
- package/src/command-line/release/release.js +300 -0
- package/src/command-line/release/utils/exec-command.d.ts +2 -0
- package/src/command-line/release/utils/exec-command.d.ts.map +1 -0
- package/src/command-line/release/utils/exec-command.js +34 -0
- package/src/command-line/release/utils/generate-version-plan-content.d.ts +2 -0
- package/src/command-line/release/utils/generate-version-plan-content.d.ts.map +1 -0
- package/src/command-line/release/utils/generate-version-plan-content.js +20 -0
- package/src/command-line/release/utils/get-touched-projects-for-group.d.ts +8 -0
- package/src/command-line/release/utils/get-touched-projects-for-group.d.ts.map +1 -0
- package/src/command-line/release/utils/get-touched-projects-for-group.js +78 -0
- package/src/command-line/release/utils/git.d.ts +121 -0
- package/src/command-line/release/utils/git.d.ts.map +1 -0
- package/src/command-line/release/utils/git.js +560 -0
- package/src/command-line/release/utils/launch-editor.d.ts +2 -0
- package/src/command-line/release/utils/launch-editor.d.ts.map +1 -0
- package/src/command-line/release/utils/launch-editor.js +46 -0
- package/src/command-line/release/utils/markdown.d.ts +7 -0
- package/src/command-line/release/utils/markdown.d.ts.map +1 -0
- package/src/command-line/release/utils/markdown.js +28 -0
- package/src/command-line/release/utils/print-changes.d.ts +7 -0
- package/src/command-line/release/utils/print-changes.d.ts.map +1 -0
- package/src/command-line/release/utils/print-changes.js +62 -0
- package/src/command-line/release/utils/print-config.d.ts +8 -0
- package/src/command-line/release/utils/print-config.d.ts.map +1 -0
- package/src/command-line/release/utils/print-config.js +36 -0
- package/src/command-line/release/utils/release-graph.d.ts +230 -0
- package/src/command-line/release/utils/release-graph.d.ts.map +1 -0
- package/src/command-line/release/utils/release-graph.js +700 -0
- package/src/command-line/release/utils/remote-release-clients/extract-repo-slug.d.ts +10 -0
- package/src/command-line/release/utils/remote-release-clients/extract-repo-slug.d.ts.map +1 -0
- package/src/command-line/release/utils/remote-release-clients/extract-repo-slug.js +61 -0
- package/src/command-line/release/utils/remote-release-clients/github.d.ts +58 -0
- package/src/command-line/release/utils/remote-release-clients/github.d.ts.map +1 -0
- package/src/command-line/release/utils/remote-release-clients/github.js +305 -0
- package/src/command-line/release/utils/remote-release-clients/gitlab.d.ts +63 -0
- package/src/command-line/release/utils/remote-release-clients/gitlab.d.ts.map +1 -0
- package/src/command-line/release/utils/remote-release-clients/gitlab.js +266 -0
- package/src/command-line/release/utils/remote-release-clients/remote-release-client.d.ts +112 -0
- package/src/command-line/release/utils/remote-release-clients/remote-release-client.d.ts.map +1 -0
- package/src/command-line/release/utils/remote-release-clients/remote-release-client.js +136 -0
- package/src/command-line/release/utils/repository-git-tags.d.ts +26 -0
- package/src/command-line/release/utils/repository-git-tags.d.ts.map +1 -0
- package/src/command-line/release/utils/repository-git-tags.js +125 -0
- package/src/command-line/release/utils/resolve-changelog-renderer.d.ts +3 -0
- package/src/command-line/release/utils/resolve-changelog-renderer.d.ts.map +1 -0
- package/src/command-line/release/utils/resolve-changelog-renderer.js +34 -0
- package/src/command-line/release/utils/resolve-nx-json-error-message.d.ts +2 -0
- package/src/command-line/release/utils/resolve-nx-json-error-message.d.ts.map +1 -0
- package/src/command-line/release/utils/resolve-nx-json-error-message.js +52 -0
- package/src/command-line/release/utils/resolve-semver-specifier.d.ts +8 -0
- package/src/command-line/release/utils/resolve-semver-specifier.d.ts.map +1 -0
- package/src/command-line/release/utils/resolve-semver-specifier.js +58 -0
- package/src/command-line/release/utils/semver.d.ts +27 -0
- package/src/command-line/release/utils/semver.d.ts.map +1 -0
- package/src/command-line/release/utils/semver.js +105 -0
- package/src/command-line/release/utils/shared-legacy.d.ts +26 -0
- package/src/command-line/release/utils/shared-legacy.d.ts.map +1 -0
- package/src/command-line/release/utils/shared-legacy.js +2 -0
- package/src/command-line/release/utils/shared.d.ts +65 -0
- package/src/command-line/release/utils/shared.d.ts.map +1 -0
- package/src/command-line/release/utils/shared.js +342 -0
- package/src/command-line/release/utils/test/test-utils.d.ts +21 -0
- package/src/command-line/release/utils/test/test-utils.d.ts.map +1 -0
- package/src/command-line/release/utils/test/test-utils.js +25 -0
- package/src/command-line/release/utils/version-plan-utils.d.ts +41 -0
- package/src/command-line/release/utils/version-plan-utils.d.ts.map +1 -0
- package/src/command-line/release/utils/version-plan-utils.js +111 -0
- package/src/command-line/release/version/derive-specifier-from-conventional-commits.d.ts +9 -0
- package/src/command-line/release/version/derive-specifier-from-conventional-commits.d.ts.map +1 -0
- package/src/command-line/release/version/derive-specifier-from-conventional-commits.js +56 -0
- package/src/command-line/release/version/deriver-specifier-from-version-plans.d.ts +9 -0
- package/src/command-line/release/version/deriver-specifier-from-version-plans.d.ts.map +1 -0
- package/src/command-line/release/version/deriver-specifier-from-version-plans.js +59 -0
- package/src/command-line/release/version/project-logger.d.ts +9 -0
- package/src/command-line/release/version/project-logger.d.ts.map +1 -0
- package/src/command-line/release/version/project-logger.js +46 -0
- package/src/command-line/release/version/release-group-processor.d.ts +108 -0
- package/src/command-line/release/version/release-group-processor.d.ts.map +1 -0
- package/src/command-line/release/version/release-group-processor.js +603 -0
- package/src/command-line/release/version/resolve-current-version.d.ts +33 -0
- package/src/command-line/release/version/resolve-current-version.d.ts.map +1 -0
- package/src/command-line/release/version/resolve-current-version.js +239 -0
- package/src/command-line/release/version/test-utils.d.ts +103 -0
- package/src/command-line/release/version/test-utils.d.ts.map +1 -0
- package/src/command-line/release/version/test-utils.js +426 -0
- package/src/command-line/release/version/topological-sort.d.ts +10 -0
- package/src/command-line/release/version/topological-sort.d.ts.map +1 -0
- package/src/command-line/release/version/topological-sort.js +41 -0
- package/src/command-line/release/version/version-actions.d.ts +200 -0
- package/src/command-line/release/version/version-actions.d.ts.map +1 -0
- package/src/command-line/release/version/version-actions.js +251 -0
- package/src/command-line/release/version.d.ts +26 -0
- package/src/command-line/release/version.d.ts.map +1 -0
- package/src/command-line/release/version.js +367 -0
- package/src/command-line/repair/command-object.d.ts +3 -0
- package/src/command-line/repair/command-object.d.ts.map +1 -0
- package/src/command-line/repair/command-object.js +20 -0
- package/src/command-line/repair/repair.d.ts +4 -0
- package/src/command-line/repair/repair.d.ts.map +1 -0
- package/src/command-line/repair/repair.js +41 -0
- package/src/command-line/report/command-object.d.ts +3 -0
- package/src/command-line/report/command-object.d.ts.map +1 -0
- package/src/command-line/report/command-object.js +11 -0
- package/src/command-line/report/report.d.ts +72 -0
- package/src/command-line/report/report.d.ts.map +1 -0
- package/src/command-line/report/report.js +405 -0
- package/src/command-line/reset/command-object.d.ts +9 -0
- package/src/command-line/reset/command-object.d.ts.map +1 -0
- package/src/command-line/reset/command-object.js +26 -0
- package/src/command-line/reset/reset.d.ts +3 -0
- package/src/command-line/reset/reset.d.ts.map +1 -0
- package/src/command-line/reset/reset.js +162 -0
- package/src/command-line/run/command-object.d.ts +7 -0
- package/src/command-line/run/command-object.d.ts.map +1 -0
- package/src/command-line/run/command-object.js +42 -0
- package/src/command-line/run/executor-utils.d.ts +13 -0
- package/src/command-line/run/executor-utils.d.ts.map +1 -0
- package/src/command-line/run/executor-utils.js +95 -0
- package/src/command-line/run/run-one.d.ts +18 -0
- package/src/command-line/run/run-one.d.ts.map +1 -0
- package/src/command-line/run/run-one.js +152 -0
- package/src/command-line/run/run.d.ts +52 -0
- package/src/command-line/run/run.d.ts.map +1 -0
- package/src/command-line/run/run.js +178 -0
- package/src/command-line/run-many/command-object.d.ts +3 -0
- package/src/command-line/run-many/command-object.d.ts.map +1 -0
- package/src/command-line/run-many/command-object.js +17 -0
- package/src/command-line/run-many/run-many.d.ts +11 -0
- package/src/command-line/run-many/run-many.d.ts.map +1 -0
- package/src/command-line/run-many/run-many.js +89 -0
- package/src/command-line/show/command-object.d.ts +27 -0
- package/src/command-line/show/command-object.d.ts.map +1 -0
- package/src/command-line/show/command-object.js +116 -0
- package/src/command-line/show/project.d.ts +3 -0
- package/src/command-line/show/project.d.ts.map +1 -0
- package/src/command-line/show/project.js +103 -0
- package/src/command-line/show/projects.d.ts +3 -0
- package/src/command-line/show/projects.d.ts.map +1 -0
- package/src/command-line/show/projects.js +80 -0
- package/src/command-line/sync/command-object.d.ts +7 -0
- package/src/command-line/sync/command-object.d.ts.map +1 -0
- package/src/command-line/sync/command-object.js +20 -0
- package/src/command-line/sync/sync.d.ts +7 -0
- package/src/command-line/sync/sync.d.ts.map +1 -0
- package/src/command-line/sync/sync.js +119 -0
- package/src/command-line/watch/command-object.d.ts +3 -0
- package/src/command-line/watch/command-object.d.ts.map +1 -0
- package/src/command-line/watch/command-object.js +70 -0
- package/src/command-line/watch/watch.d.ts +25 -0
- package/src/command-line/watch/watch.d.ts.map +1 -0
- package/src/command-line/watch/watch.js +198 -0
- package/src/command-line/yargs-utils/arguments-of.d.ts +12 -0
- package/src/command-line/yargs-utils/arguments-of.d.ts.map +1 -0
- package/src/command-line/yargs-utils/arguments-of.js +9 -0
- package/src/command-line/yargs-utils/documentation.d.ts +3 -0
- package/src/command-line/yargs-utils/documentation.d.ts.map +1 -0
- package/src/command-line/yargs-utils/documentation.js +11 -0
- package/src/command-line/yargs-utils/shared-options.d.ts +87 -0
- package/src/command-line/yargs-utils/shared-options.d.ts.map +1 -0
- package/src/command-line/yargs-utils/shared-options.js +351 -0
- package/src/commands-runner/command-graph.d.ts +14 -0
- package/src/commands-runner/command-graph.d.ts.map +1 -0
- package/src/commands-runner/command-graph.js +2 -0
- package/src/commands-runner/create-command-graph.d.ts +5 -0
- package/src/commands-runner/create-command-graph.d.ts.map +1 -0
- package/src/commands-runner/create-command-graph.js +67 -0
- package/src/commands-runner/get-command-projects.d.ts +4 -0
- package/src/commands-runner/get-command-projects.d.ts.map +1 -0
- package/src/commands-runner/get-command-projects.js +33 -0
- package/src/config/calculate-default-project-name.d.ts +5 -0
- package/src/config/calculate-default-project-name.d.ts.map +1 -0
- package/src/config/calculate-default-project-name.js +41 -0
- package/src/config/configuration.d.ts +9 -0
- package/src/config/configuration.d.ts.map +1 -0
- package/src/config/configuration.js +17 -0
- package/src/config/misc-interfaces.d.ts +222 -0
- package/src/config/misc-interfaces.d.ts.map +1 -0
- package/src/config/misc-interfaces.js +2 -0
- package/src/config/nx-json.d.ts +846 -0
- package/src/config/nx-json.d.ts.map +1 -0
- package/src/config/nx-json.js +40 -0
- package/src/config/project-graph.d.ts +138 -0
- package/src/config/project-graph.d.ts.map +1 -0
- package/src/config/project-graph.js +45 -0
- package/src/config/schema-utils.d.ts +17 -0
- package/src/config/schema-utils.d.ts.map +1 -0
- package/src/config/schema-utils.js +125 -0
- package/src/config/task-graph.d.ts +110 -0
- package/src/config/task-graph.d.ts.map +1 -0
- package/src/config/task-graph.js +2 -0
- package/src/config/to-project-name.d.ts +6 -0
- package/src/config/to-project-name.d.ts.map +1 -0
- package/src/config/to-project-name.js +12 -0
- package/src/config/workspace-json-project-json.d.ts +260 -0
- package/src/config/workspace-json-project-json.d.ts.map +1 -0
- package/src/config/workspace-json-project-json.js +2 -0
- package/src/core/graph/environment.js +1 -0
- package/src/core/graph/favicon.ico +0 -0
- package/src/core/graph/index.html +32 -0
- package/src/core/graph/main.js +1 -0
- package/src/core/graph/runtime.js +1 -0
- package/src/core/graph/styles.css +3 -0
- package/src/core/graph/styles.js +1 -0
- package/src/daemon/cache.d.ts +11 -0
- package/src/daemon/cache.d.ts.map +1 -0
- package/src/daemon/cache.js +58 -0
- package/src/daemon/client/client.d.ts +106 -0
- package/src/daemon/client/client.d.ts.map +1 -0
- package/src/daemon/client/client.js +1009 -0
- package/src/daemon/client/daemon-socket-messenger.d.ts +16 -0
- package/src/daemon/client/daemon-socket-messenger.d.ts.map +1 -0
- package/src/daemon/client/daemon-socket-messenger.js +54 -0
- package/src/daemon/client/exec-is-server-available.d.ts +2 -0
- package/src/daemon/client/exec-is-server-available.d.ts.map +1 -0
- package/src/daemon/client/exec-is-server-available.js +11 -0
- package/src/daemon/client/generate-help-output.d.ts +2 -0
- package/src/daemon/client/generate-help-output.d.ts.map +1 -0
- package/src/daemon/client/generate-help-output.js +26 -0
- package/src/daemon/is-nx-version-mismatch.d.ts +3 -0
- package/src/daemon/is-nx-version-mismatch.d.ts.map +1 -0
- package/src/daemon/is-nx-version-mismatch.js +24 -0
- package/src/daemon/is-on-daemon.d.ts +2 -0
- package/src/daemon/is-on-daemon.d.ts.map +1 -0
- package/src/daemon/is-on-daemon.js +6 -0
- package/src/daemon/is-v8-serializer-enabled.d.ts +6 -0
- package/src/daemon/is-v8-serializer-enabled.d.ts.map +1 -0
- package/src/daemon/is-v8-serializer-enabled.js +10 -0
- package/src/daemon/logger.d.ts +26 -0
- package/src/daemon/logger.d.ts.map +1 -0
- package/src/daemon/logger.js +65 -0
- package/src/daemon/message-types/flush-sync-generator-changes-to-disk.d.ts +7 -0
- package/src/daemon/message-types/flush-sync-generator-changes-to-disk.d.ts.map +1 -0
- package/src/daemon/message-types/flush-sync-generator-changes-to-disk.js +11 -0
- package/src/daemon/message-types/force-shutdown.d.ts +6 -0
- package/src/daemon/message-types/force-shutdown.d.ts.map +1 -0
- package/src/daemon/message-types/force-shutdown.js +11 -0
- package/src/daemon/message-types/get-context-file-data.d.ts +6 -0
- package/src/daemon/message-types/get-context-file-data.d.ts.map +1 -0
- package/src/daemon/message-types/get-context-file-data.js +11 -0
- package/src/daemon/message-types/get-files-in-directory.d.ts +7 -0
- package/src/daemon/message-types/get-files-in-directory.d.ts.map +1 -0
- package/src/daemon/message-types/get-files-in-directory.js +11 -0
- package/src/daemon/message-types/get-nx-workspace-files.d.ts +7 -0
- package/src/daemon/message-types/get-nx-workspace-files.d.ts.map +1 -0
- package/src/daemon/message-types/get-nx-workspace-files.js +11 -0
- package/src/daemon/message-types/get-registered-sync-generators.d.ts +6 -0
- package/src/daemon/message-types/get-registered-sync-generators.d.ts.map +1 -0
- package/src/daemon/message-types/get-registered-sync-generators.js +11 -0
- package/src/daemon/message-types/get-sync-generator-changes.d.ts +7 -0
- package/src/daemon/message-types/get-sync-generator-changes.d.ts.map +1 -0
- package/src/daemon/message-types/get-sync-generator-changes.js +11 -0
- package/src/daemon/message-types/glob.d.ts +15 -0
- package/src/daemon/message-types/glob.d.ts.map +1 -0
- package/src/daemon/message-types/glob.js +19 -0
- package/src/daemon/message-types/hash-glob.d.ts +14 -0
- package/src/daemon/message-types/hash-glob.d.ts.map +1 -0
- package/src/daemon/message-types/hash-glob.js +19 -0
- package/src/daemon/message-types/nx-console.d.ts +18 -0
- package/src/daemon/message-types/nx-console.d.ts.map +1 -0
- package/src/daemon/message-types/nx-console.js +19 -0
- package/src/daemon/message-types/register-project-graph-listener.d.ts +6 -0
- package/src/daemon/message-types/register-project-graph-listener.d.ts.map +1 -0
- package/src/daemon/message-types/register-project-graph-listener.js +11 -0
- package/src/daemon/message-types/run-tasks-execution-hooks.d.ts +14 -0
- package/src/daemon/message-types/run-tasks-execution-hooks.d.ts.map +1 -0
- package/src/daemon/message-types/run-tasks-execution-hooks.js +19 -0
- package/src/daemon/message-types/task-history.d.ts +20 -0
- package/src/daemon/message-types/task-history.d.ts.map +1 -0
- package/src/daemon/message-types/task-history.js +27 -0
- package/src/daemon/message-types/update-workspace-context.d.ts +9 -0
- package/src/daemon/message-types/update-workspace-context.d.ts.map +1 -0
- package/src/daemon/message-types/update-workspace-context.js +11 -0
- package/src/daemon/server/file-watching/changed-projects.d.ts +11 -0
- package/src/daemon/server/file-watching/changed-projects.d.ts.map +1 -0
- package/src/daemon/server/file-watching/changed-projects.js +44 -0
- package/src/daemon/server/file-watching/file-change-events.d.ts +8 -0
- package/src/daemon/server/file-watching/file-change-events.d.ts.map +1 -0
- package/src/daemon/server/file-watching/file-change-events.js +19 -0
- package/src/daemon/server/file-watching/file-watcher-sockets.d.ts +13 -0
- package/src/daemon/server/file-watching/file-watcher-sockets.d.ts.map +1 -0
- package/src/daemon/server/file-watching/file-watcher-sockets.js +66 -0
- package/src/daemon/server/handle-context-file-data.d.ts +3 -0
- package/src/daemon/server/handle-context-file-data.d.ts.map +1 -0
- package/src/daemon/server/handle-context-file-data.js +12 -0
- package/src/daemon/server/handle-flush-sync-generator-changes-to-disk.d.ts +3 -0
- package/src/daemon/server/handle-flush-sync-generator-changes-to-disk.d.ts.map +1 -0
- package/src/daemon/server/handle-flush-sync-generator-changes-to-disk.js +11 -0
- package/src/daemon/server/handle-force-shutdown.d.ts +6 -0
- package/src/daemon/server/handle-force-shutdown.d.ts.map +1 -0
- package/src/daemon/server/handle-force-shutdown.js +18 -0
- package/src/daemon/server/handle-get-files-in-directory.d.ts +3 -0
- package/src/daemon/server/handle-get-files-in-directory.d.ts.map +1 -0
- package/src/daemon/server/handle-get-files-in-directory.js +12 -0
- package/src/daemon/server/handle-get-registered-sync-generators.d.ts +3 -0
- package/src/daemon/server/handle-get-registered-sync-generators.d.ts.map +1 -0
- package/src/daemon/server/handle-get-registered-sync-generators.js +11 -0
- package/src/daemon/server/handle-get-sync-generator-changes.d.ts +3 -0
- package/src/daemon/server/handle-get-sync-generator-changes.d.ts.map +1 -0
- package/src/daemon/server/handle-get-sync-generator-changes.js +20 -0
- package/src/daemon/server/handle-glob.d.ts +4 -0
- package/src/daemon/server/handle-glob.d.ts.map +1 -0
- package/src/daemon/server/handle-glob.js +20 -0
- package/src/daemon/server/handle-hash-glob.d.ts +4 -0
- package/src/daemon/server/handle-hash-glob.d.ts.map +1 -0
- package/src/daemon/server/handle-hash-glob.js +20 -0
- package/src/daemon/server/handle-hash-tasks.d.ts +12 -0
- package/src/daemon/server/handle-hash-tasks.d.ts.map +1 -0
- package/src/daemon/server/handle-hash-tasks.js +28 -0
- package/src/daemon/server/handle-nx-console.d.ts +4 -0
- package/src/daemon/server/handle-nx-console.d.ts.map +1 -0
- package/src/daemon/server/handle-nx-console.js +54 -0
- package/src/daemon/server/handle-nx-workspace-files.d.ts +3 -0
- package/src/daemon/server/handle-nx-workspace-files.d.ts.map +1 -0
- package/src/daemon/server/handle-nx-workspace-files.js +12 -0
- package/src/daemon/server/handle-outputs-tracking.d.ts +16 -0
- package/src/daemon/server/handle-outputs-tracking.d.ts.map +1 -0
- package/src/daemon/server/handle-outputs-tracking.js +35 -0
- package/src/daemon/server/handle-process-in-background.d.ts +7 -0
- package/src/daemon/server/handle-process-in-background.d.ts.map +1 -0
- package/src/daemon/server/handle-process-in-background.js +32 -0
- package/src/daemon/server/handle-request-project-graph.d.ts +3 -0
- package/src/daemon/server/handle-request-project-graph.d.ts.map +1 -0
- package/src/daemon/server/handle-request-project-graph.js +36 -0
- package/src/daemon/server/handle-request-shutdown.d.ts +6 -0
- package/src/daemon/server/handle-request-shutdown.d.ts.map +1 -0
- package/src/daemon/server/handle-request-shutdown.js +27 -0
- package/src/daemon/server/handle-task-history.d.ts +14 -0
- package/src/daemon/server/handle-task-history.d.ts.map +1 -0
- package/src/daemon/server/handle-task-history.js +30 -0
- package/src/daemon/server/handle-tasks-execution-hooks.d.ts +20 -0
- package/src/daemon/server/handle-tasks-execution-hooks.d.ts.map +1 -0
- package/src/daemon/server/handle-tasks-execution-hooks.js +35 -0
- package/src/daemon/server/handle-update-workspace-context.d.ts +3 -0
- package/src/daemon/server/handle-update-workspace-context.d.ts.map +1 -0
- package/src/daemon/server/handle-update-workspace-context.js +11 -0
- package/src/daemon/server/nx-console-operations.d.ts +31 -0
- package/src/daemon/server/nx-console-operations.d.ts.map +1 -0
- package/src/daemon/server/nx-console-operations.js +135 -0
- package/src/daemon/server/outputs-tracking.d.ts +9 -0
- package/src/daemon/server/outputs-tracking.d.ts.map +1 -0
- package/src/daemon/server/outputs-tracking.js +93 -0
- package/src/daemon/server/project-graph-incremental-recomputation.d.ts +27 -0
- package/src/daemon/server/project-graph-incremental-recomputation.d.ts.map +1 -0
- package/src/daemon/server/project-graph-incremental-recomputation.js +369 -0
- package/src/daemon/server/project-graph-listener-sockets.d.ts +8 -0
- package/src/daemon/server/project-graph-listener-sockets.d.ts.map +1 -0
- package/src/daemon/server/project-graph-listener-sockets.js +25 -0
- package/src/daemon/server/server.d.ts +10 -0
- package/src/daemon/server/server.d.ts.map +1 -0
- package/src/daemon/server/server.js +463 -0
- package/src/daemon/server/shutdown-utils.d.ts +19 -0
- package/src/daemon/server/shutdown-utils.d.ts.map +1 -0
- package/src/daemon/server/shutdown-utils.js +151 -0
- package/src/daemon/server/start.d.ts +2 -0
- package/src/daemon/server/start.d.ts.map +1 -0
- package/src/daemon/server/start.js +17 -0
- package/src/daemon/server/sync-generators.d.ts +15 -0
- package/src/daemon/server/sync-generators.d.ts.map +1 -0
- package/src/daemon/server/sync-generators.js +368 -0
- package/src/daemon/server/watcher.d.ts +12 -0
- package/src/daemon/server/watcher.d.ts.map +1 -0
- package/src/daemon/server/watcher.js +97 -0
- package/src/daemon/socket-utils.d.ts +24 -0
- package/src/daemon/socket-utils.d.ts.map +1 -0
- package/src/daemon/socket-utils.js +96 -0
- package/src/daemon/tmp-dir.d.ts +13 -0
- package/src/daemon/tmp-dir.d.ts.map +1 -0
- package/src/daemon/tmp-dir.js +71 -0
- package/src/devkit-exports.d.ts +140 -0
- package/src/devkit-exports.d.ts.map +1 -0
- package/src/devkit-exports.js +140 -0
- package/src/devkit-internals.d.ts +33 -0
- package/src/devkit-internals.d.ts.map +1 -0
- package/src/devkit-internals.js +69 -0
- package/src/devkit-testing-exports.d.ts +3 -0
- package/src/devkit-testing-exports.d.ts.map +1 -0
- package/src/devkit-testing-exports.js +8 -0
- package/src/executors/noop/noop.impl.d.ts +4 -0
- package/src/executors/noop/noop.impl.d.ts.map +1 -0
- package/src/executors/noop/noop.impl.js +6 -0
- package/src/executors/noop/schema.json +10 -0
- package/src/executors/run-commands/run-commands.impl.d.ts +60 -0
- package/src/executors/run-commands/run-commands.impl.d.ts.map +1 -0
- package/src/executors/run-commands/run-commands.impl.js +247 -0
- package/src/executors/run-commands/running-tasks.d.ts +46 -0
- package/src/executors/run-commands/running-tasks.d.ts.map +1 -0
- package/src/executors/run-commands/running-tasks.js +496 -0
- package/src/executors/run-commands/schema.json +198 -0
- package/src/executors/run-script/run-script.impl.d.ts +9 -0
- package/src/executors/run-script/run-script.impl.d.ts.map +1 -0
- package/src/executors/run-script/run-script.impl.js +84 -0
- package/src/executors/run-script/schema.json +28 -0
- package/src/executors/utils/convert-nx-executor.d.ts +11 -0
- package/src/executors/utils/convert-nx-executor.d.ts.map +1 -0
- package/src/executors/utils/convert-nx-executor.js +83 -0
- package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.d.ts +15 -0
- package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.d.ts.map +1 -0
- package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.js +68 -0
- package/src/generators/testing-utils/create-tree-with-empty-workspace.d.ts +12 -0
- package/src/generators/testing-utils/create-tree-with-empty-workspace.d.ts.map +1 -0
- package/src/generators/testing-utils/create-tree-with-empty-workspace.js +52 -0
- package/src/generators/testing-utils/create-tree.d.ts +6 -0
- package/src/generators/testing-utils/create-tree.d.ts.map +1 -0
- package/src/generators/testing-utils/create-tree.js +14 -0
- package/src/generators/tree.d.ts +126 -0
- package/src/generators/tree.d.ts.map +1 -0
- package/src/generators/tree.js +309 -0
- package/src/generators/utils/generate-files.d.ts +45 -0
- package/src/generators/utils/generate-files.d.ts.map +1 -0
- package/src/generators/utils/generate-files.js +113 -0
- package/src/generators/utils/glob.d.ts +23 -0
- package/src/generators/utils/glob.d.ts.map +1 -0
- package/src/generators/utils/glob.js +51 -0
- package/src/generators/utils/json.d.ts +29 -0
- package/src/generators/utils/json.d.ts.map +1 -0
- package/src/generators/utils/json.js +48 -0
- package/src/generators/utils/nx-json.d.ts +11 -0
- package/src/generators/utils/nx-json.d.ts.map +1 -0
- package/src/generators/utils/nx-json.js +52 -0
- package/src/generators/utils/project-configuration.d.ts +43 -0
- package/src/generators/utils/project-configuration.d.ts.map +1 -0
- package/src/generators/utils/project-configuration.js +307 -0
- package/src/hasher/create-task-hasher.d.ts +5 -0
- package/src/hasher/create-task-hasher.d.ts.map +1 -0
- package/src/hasher/create-task-hasher.js +15 -0
- package/src/hasher/file-hasher.d.ts +4 -0
- package/src/hasher/file-hasher.d.ts.map +1 -0
- package/src/hasher/file-hasher.js +23 -0
- package/src/hasher/hash-plan-inspector.d.ts +26 -0
- package/src/hasher/hash-plan-inspector.d.ts.map +1 -0
- package/src/hasher/hash-plan-inspector.js +54 -0
- package/src/hasher/hash-task.d.ts +10 -0
- package/src/hasher/hash-task.d.ts.map +1 -0
- package/src/hasher/hash-task.js +161 -0
- package/src/hasher/native-task-hasher-impl.d.ts +19 -0
- package/src/hasher/native-task-hasher-impl.d.ts.map +1 -0
- package/src/hasher/native-task-hasher-impl.js +37 -0
- package/src/hasher/task-hasher.d.ts +128 -0
- package/src/hasher/task-hasher.d.ts.map +1 -0
- package/src/hasher/task-hasher.js +242 -0
- package/src/index.d.ts +2 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.js +5 -0
- package/src/migrations/update-15-0-0/prefix-outputs.d.ts +3 -0
- package/src/migrations/update-15-0-0/prefix-outputs.d.ts.map +1 -0
- package/src/migrations/update-15-0-0/prefix-outputs.js +49 -0
- package/src/migrations/update-16-0-0/remove-nrwl-cli.d.ts +3 -0
- package/src/migrations/update-16-0-0/remove-nrwl-cli.d.ts.map +1 -0
- package/src/migrations/update-16-0-0/remove-nrwl-cli.js +16 -0
- package/src/migrations/update-16-0-0/update-depends-on-to-tokens.d.ts +3 -0
- package/src/migrations/update-16-0-0/update-depends-on-to-tokens.d.ts.map +1 -0
- package/src/migrations/update-16-0-0/update-depends-on-to-tokens.js +97 -0
- package/src/migrations/update-16-0-0/update-nx-cloud-runner.d.ts +3 -0
- package/src/migrations/update-16-0-0/update-nx-cloud-runner.d.ts.map +1 -0
- package/src/migrations/update-16-0-0/update-nx-cloud-runner.js +29 -0
- package/src/migrations/update-16-2-0/remove-run-commands-output-path.d.ts +3 -0
- package/src/migrations/update-16-2-0/remove-run-commands-output-path.d.ts.map +1 -0
- package/src/migrations/update-16-2-0/remove-run-commands-output-path.js +45 -0
- package/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.d.ts +13 -0
- package/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.d.ts.map +1 -0
- package/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.js +67 -0
- package/src/migrations/update-17-0-0/move-cache-directory.d.ts +3 -0
- package/src/migrations/update-17-0-0/move-cache-directory.d.ts.map +1 -0
- package/src/migrations/update-17-0-0/move-cache-directory.js +35 -0
- package/src/migrations/update-17-0-0/rm-default-collection-npm-scope.d.ts +3 -0
- package/src/migrations/update-17-0-0/rm-default-collection-npm-scope.d.ts.map +1 -0
- package/src/migrations/update-17-0-0/rm-default-collection-npm-scope.js +72 -0
- package/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.d.ts +3 -0
- package/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.d.ts.map +1 -0
- package/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.js +122 -0
- package/src/migrations/update-17-2-0/move-default-base.d.ts +6 -0
- package/src/migrations/update-17-2-0/move-default-base.d.ts.map +1 -0
- package/src/migrations/update-17-2-0/move-default-base.js +21 -0
- package/src/migrations/update-17-3-0/nx-release-path.d.ts +4 -0
- package/src/migrations/update-17-3-0/nx-release-path.d.ts.map +1 -0
- package/src/migrations/update-17-3-0/nx-release-path.js +47 -0
- package/src/migrations/update-17-3-0/update-nxw.d.ts +3 -0
- package/src/migrations/update-17-3-0/update-nxw.d.ts.map +1 -0
- package/src/migrations/update-17-3-0/update-nxw.js +7 -0
- package/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.d.ts +3 -0
- package/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.d.ts.map +1 -0
- package/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.js +11 -0
- package/src/migrations/update-19-2-0/move-workspace-data-directory.d.ts +5 -0
- package/src/migrations/update-19-2-0/move-workspace-data-directory.d.ts.map +1 -0
- package/src/migrations/update-19-2-0/move-workspace-data-directory.js +33 -0
- package/src/migrations/update-19-2-4/set-project-name.d.ts +3 -0
- package/src/migrations/update-19-2-4/set-project-name.d.ts.map +1 -0
- package/src/migrations/update-19-2-4/set-project-name.js +34 -0
- package/src/migrations/update-20-0-0/move-use-daemon-process.d.ts +3 -0
- package/src/migrations/update-20-0-0/move-use-daemon-process.d.ts.map +1 -0
- package/src/migrations/update-20-0-0/move-use-daemon-process.js +25 -0
- package/src/migrations/update-20-0-1/use-legacy-cache.d.ts +3 -0
- package/src/migrations/update-20-0-1/use-legacy-cache.d.ts.map +1 -0
- package/src/migrations/update-20-0-1/use-legacy-cache.js +20 -0
- package/src/migrations/update-21-0-0/release-changelog-config-changes.d.ts +3 -0
- package/src/migrations/update-21-0-0/release-changelog-config-changes.d.ts.map +1 -0
- package/src/migrations/update-21-0-0/release-changelog-config-changes.js +38 -0
- package/src/migrations/update-21-0-0/release-version-config-changes.d.ts +3 -0
- package/src/migrations/update-21-0-0/release-version-config-changes.d.ts.map +1 -0
- package/src/migrations/update-21-0-0/release-version-config-changes.js +101 -0
- package/src/migrations/update-21-0-0/remove-custom-tasks-runner.d.ts +3 -0
- package/src/migrations/update-21-0-0/remove-custom-tasks-runner.d.ts.map +1 -0
- package/src/migrations/update-21-0-0/remove-custom-tasks-runner.js +38 -0
- package/src/migrations/update-21-0-0/remove-legacy-cache.d.ts +3 -0
- package/src/migrations/update-21-0-0/remove-legacy-cache.d.ts.map +1 -0
- package/src/migrations/update-21-0-0/remove-legacy-cache.js +17 -0
- package/src/migrations/update-22-0-0/consolidate-release-tag-config.d.ts +3 -0
- package/src/migrations/update-22-0-0/consolidate-release-tag-config.d.ts.map +1 -0
- package/src/migrations/update-22-0-0/consolidate-release-tag-config.js +100 -0
- package/src/migrations/update-22-0-0/release-version-config-changes.d.ts +3 -0
- package/src/migrations/update-22-0-0/release-version-config-changes.d.ts.map +1 -0
- package/src/migrations/update-22-0-0/release-version-config-changes.js +101 -0
- package/src/migrations/update-22-1-0/update-nx-wrapper.d.ts +3 -0
- package/src/migrations/update-22-1-0/update-nx-wrapper.d.ts.map +1 -0
- package/src/migrations/update-22-1-0/update-nx-wrapper.js +7 -0
- package/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.d.ts +3 -0
- package/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.d.ts.map +1 -0
- package/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.js +14 -0
- package/src/native/assert-supported-platform.d.ts +2 -0
- package/src/native/assert-supported-platform.d.ts.map +1 -0
- package/src/native/assert-supported-platform.js +38 -0
- package/src/native/browser.js +1 -0
- package/src/native/index.js +173 -0
- package/src/native/native-bindings.js +412 -0
- package/src/native/native-file-cache-location.d.ts +2 -0
- package/src/native/native-file-cache-location.d.ts.map +1 -0
- package/src/native/native-file-cache-location.js +23 -0
- package/src/native/nx.wasi-browser.js +132 -0
- package/src/native/nx.wasi.cjs +173 -0
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/native/tests/__fixtures__/file-lock.fixture.js +20 -0
- package/src/native/transform-objects.d.ts +4 -0
- package/src/native/transform-objects.d.ts.map +1 -0
- package/src/native/transform-objects.js +51 -0
- package/src/native/wasi-worker-browser.mjs +32 -0
- package/src/native/wasi-worker.mjs +63 -0
- package/src/nx-cloud/debug-logger.d.ts +2 -0
- package/src/nx-cloud/debug-logger.d.ts.map +1 -0
- package/src/nx-cloud/debug-logger.js +8 -0
- package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.d.ts +15 -0
- package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.d.ts.map +1 -0
- package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +159 -0
- package/src/nx-cloud/generators/connect-to-nx-cloud/schema.json +41 -0
- package/src/nx-cloud/models/onboarding-status.d.ts +2 -0
- package/src/nx-cloud/models/onboarding-status.d.ts.map +1 -0
- package/src/nx-cloud/models/onboarding-status.js +2 -0
- package/src/nx-cloud/nx-cloud-tasks-runner-shell.d.ts +17 -0
- package/src/nx-cloud/nx-cloud-tasks-runner-shell.d.ts.map +1 -0
- package/src/nx-cloud/nx-cloud-tasks-runner-shell.js +41 -0
- package/src/nx-cloud/resolution-helpers.d.ts +2 -0
- package/src/nx-cloud/resolution-helpers.d.ts.map +1 -0
- package/src/nx-cloud/resolution-helpers.js +19 -0
- package/src/nx-cloud/update-manager.d.ts +21 -0
- package/src/nx-cloud/update-manager.d.ts.map +1 -0
- package/src/nx-cloud/update-manager.js +253 -0
- package/src/nx-cloud/utilities/axios.d.ts +3 -0
- package/src/nx-cloud/utilities/axios.d.ts.map +1 -0
- package/src/nx-cloud/utilities/axios.js +24 -0
- package/src/nx-cloud/utilities/client.d.ts +11 -0
- package/src/nx-cloud/utilities/client.d.ts.map +1 -0
- package/src/nx-cloud/utilities/client.js +42 -0
- package/src/nx-cloud/utilities/environment.d.ts +4 -0
- package/src/nx-cloud/utilities/environment.d.ts.map +1 -0
- package/src/nx-cloud/utilities/environment.js +47 -0
- package/src/nx-cloud/utilities/get-cloud-options.d.ts +6 -0
- package/src/nx-cloud/utilities/get-cloud-options.d.ts.map +1 -0
- package/src/nx-cloud/utilities/get-cloud-options.js +23 -0
- package/src/nx-cloud/utilities/is-workspace-claimed.d.ts +2 -0
- package/src/nx-cloud/utilities/is-workspace-claimed.d.ts.map +1 -0
- package/src/nx-cloud/utilities/is-workspace-claimed.js +25 -0
- package/src/nx-cloud/utilities/onboarding.d.ts +6 -0
- package/src/nx-cloud/utilities/onboarding.d.ts.map +1 -0
- package/src/nx-cloud/utilities/onboarding.js +28 -0
- package/src/nx-cloud/utilities/url-shorten.d.ts +6 -0
- package/src/nx-cloud/utilities/url-shorten.d.ts.map +1 -0
- package/src/nx-cloud/utilities/url-shorten.js +84 -0
- package/src/plugins/js/hasher/hasher.d.ts +6 -0
- package/src/plugins/js/hasher/hasher.d.ts.map +1 -0
- package/src/plugins/js/hasher/hasher.js +51 -0
- package/src/plugins/js/index.d.ts +5 -0
- package/src/plugins/js/index.d.ts.map +1 -0
- package/src/plugins/js/index.js +165 -0
- package/src/plugins/js/lock-file/bun-parser.d.ts +15 -0
- package/src/plugins/js/lock-file/bun-parser.d.ts.map +1 -0
- package/src/plugins/js/lock-file/bun-parser.js +936 -0
- package/src/plugins/js/lock-file/lock-file.d.ts +39 -0
- package/src/plugins/js/lock-file/lock-file.d.ts.map +1 -0
- package/src/plugins/js/lock-file/lock-file.js +253 -0
- package/src/plugins/js/lock-file/npm-parser.d.ts +11 -0
- package/src/plugins/js/lock-file/npm-parser.d.ts.map +1 -0
- package/src/plugins/js/lock-file/npm-parser.js +514 -0
- package/src/plugins/js/lock-file/pnpm-parser.d.ts +11 -0
- package/src/plugins/js/lock-file/pnpm-parser.d.ts.map +1 -0
- package/src/plugins/js/lock-file/pnpm-parser.js +613 -0
- package/src/plugins/js/lock-file/project-graph-pruning.d.ts +12 -0
- package/src/plugins/js/lock-file/project-graph-pruning.d.ts.map +1 -0
- package/src/plugins/js/lock-file/project-graph-pruning.js +202 -0
- package/src/plugins/js/lock-file/utils/package-json.d.ts +11 -0
- package/src/plugins/js/lock-file/utils/package-json.d.ts.map +1 -0
- package/src/plugins/js/lock-file/utils/package-json.js +36 -0
- package/src/plugins/js/lock-file/utils/pnpm-normalizer.d.ts +21 -0
- package/src/plugins/js/lock-file/utils/pnpm-normalizer.d.ts.map +1 -0
- package/src/plugins/js/lock-file/utils/pnpm-normalizer.js +854 -0
- package/src/plugins/js/lock-file/yarn-parser.d.ts +11 -0
- package/src/plugins/js/lock-file/yarn-parser.d.ts.map +1 -0
- package/src/plugins/js/lock-file/yarn-parser.js +509 -0
- package/src/plugins/js/package-json/create-package-json.d.ts +30 -0
- package/src/plugins/js/package-json/create-package-json.d.ts.map +1 -0
- package/src/plugins/js/package-json/create-package-json.js +261 -0
- package/src/plugins/js/project-graph/affected/lock-file-changes.d.ts +6 -0
- package/src/plugins/js/project-graph/affected/lock-file-changes.d.ts.map +1 -0
- package/src/plugins/js/project-graph/affected/lock-file-changes.js +72 -0
- package/src/plugins/js/project-graph/affected/npm-packages.d.ts +5 -0
- package/src/plugins/js/project-graph/affected/npm-packages.d.ts.map +1 -0
- package/src/plugins/js/project-graph/affected/npm-packages.js +93 -0
- package/src/plugins/js/project-graph/affected/touched-projects.d.ts +3 -0
- package/src/plugins/js/project-graph/affected/touched-projects.d.ts.map +1 -0
- package/src/plugins/js/project-graph/affected/touched-projects.js +18 -0
- package/src/plugins/js/project-graph/affected/tsconfig-json-changes.d.ts +5 -0
- package/src/plugins/js/project-graph/affected/tsconfig-json-changes.d.ts.map +1 -0
- package/src/plugins/js/project-graph/affected/tsconfig-json-changes.js +63 -0
- package/src/plugins/js/project-graph/build-dependencies/build-dependencies.d.ts +7 -0
- package/src/plugins/js/project-graph/build-dependencies/build-dependencies.d.ts.map +1 -0
- package/src/plugins/js/project-graph/build-dependencies/build-dependencies.js +45 -0
- package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.d.ts +5 -0
- package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.d.ts.map +1 -0
- package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.js +86 -0
- package/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.d.ts +5 -0
- package/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.d.ts.map +1 -0
- package/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.js +75 -0
- package/src/plugins/js/project-graph/build-dependencies/strip-source-code.d.ts +8 -0
- package/src/plugins/js/project-graph/build-dependencies/strip-source-code.d.ts.map +1 -0
- package/src/plugins/js/project-graph/build-dependencies/strip-source-code.js +155 -0
- package/src/plugins/js/project-graph/build-dependencies/target-project-locator.d.ts +75 -0
- package/src/plugins/js/project-graph/build-dependencies/target-project-locator.d.ts.map +1 -0
- package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +429 -0
- package/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.d.ts +17 -0
- package/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.d.ts.map +1 -0
- package/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.js +120 -0
- package/src/plugins/js/project-graph/build-nodes/build-npm-package-nodes.d.ts +3 -0
- package/src/plugins/js/project-graph/build-nodes/build-npm-package-nodes.d.ts.map +1 -0
- package/src/plugins/js/project-graph/build-nodes/build-npm-package-nodes.js +31 -0
- package/src/plugins/js/utils/config.d.ts +3 -0
- package/src/plugins/js/utils/config.d.ts.map +1 -0
- package/src/plugins/js/utils/config.js +61 -0
- package/src/plugins/js/utils/get-workspace-packages-from-graph.d.ts +3 -0
- package/src/plugins/js/utils/get-workspace-packages-from-graph.d.ts.map +1 -0
- package/src/plugins/js/utils/get-workspace-packages-from-graph.js +13 -0
- package/src/plugins/js/utils/packages.d.ts +9 -0
- package/src/plugins/js/utils/packages.d.ts.map +1 -0
- package/src/plugins/js/utils/packages.js +91 -0
- package/src/plugins/js/utils/register.d.ts +160 -0
- package/src/plugins/js/utils/register.d.ts.map +1 -0
- package/src/plugins/js/utils/register.js +406 -0
- package/src/plugins/js/utils/resolve-relative-to-dir.d.ts +6 -0
- package/src/plugins/js/utils/resolve-relative-to-dir.d.ts.map +1 -0
- package/src/plugins/js/utils/resolve-relative-to-dir.js +17 -0
- package/src/plugins/js/utils/typescript.d.ts +17 -0
- package/src/plugins/js/utils/typescript.d.ts.map +1 -0
- package/src/plugins/js/utils/typescript.js +103 -0
- package/src/plugins/js/versions.d.ts +2 -0
- package/src/plugins/js/versions.d.ts.map +1 -0
- package/src/plugins/js/versions.js +4 -0
- package/src/plugins/package-json/create-nodes.d.ts +28 -0
- package/src/plugins/package-json/create-nodes.d.ts.map +1 -0
- package/src/plugins/package-json/create-nodes.js +239 -0
- package/src/plugins/package-json/index.d.ts +3 -0
- package/src/plugins/package-json/index.d.ts.map +1 -0
- package/src/plugins/package-json/index.js +6 -0
- package/src/plugins/project-json/build-nodes/project-json.d.ts +6 -0
- package/src/plugins/project-json/build-nodes/project-json.d.ts.map +1 -0
- package/src/plugins/project-json/build-nodes/project-json.js +33 -0
- package/src/project-graph/affected/affected-project-graph-models.d.ts +12 -0
- package/src/project-graph/affected/affected-project-graph-models.d.ts.map +1 -0
- package/src/project-graph/affected/affected-project-graph-models.js +2 -0
- package/src/project-graph/affected/affected-project-graph.d.ts +5 -0
- package/src/project-graph/affected/affected-project-graph.d.ts.map +1 -0
- package/src/project-graph/affected/affected-project-graph.js +90 -0
- package/src/project-graph/affected/locators/project-glob-changes.d.ts +3 -0
- package/src/project-graph/affected/locators/project-glob-changes.d.ts.map +1 -0
- package/src/project-graph/affected/locators/project-glob-changes.js +43 -0
- package/src/project-graph/affected/locators/workspace-json-changes.d.ts +5 -0
- package/src/project-graph/affected/locators/workspace-json-changes.d.ts.map +1 -0
- package/src/project-graph/affected/locators/workspace-json-changes.js +47 -0
- package/src/project-graph/affected/locators/workspace-projects.d.ts +4 -0
- package/src/project-graph/affected/locators/workspace-projects.d.ts.map +1 -0
- package/src/project-graph/affected/locators/workspace-projects.js +74 -0
- package/src/project-graph/build-project-graph.d.ts +24 -0
- package/src/project-graph/build-project-graph.d.ts.map +1 -0
- package/src/project-graph/build-project-graph.js +322 -0
- package/src/project-graph/error-types.d.ts +140 -0
- package/src/project-graph/error-types.d.ts.map +1 -0
- package/src/project-graph/error-types.js +399 -0
- package/src/project-graph/file-map-utils.d.ts +16 -0
- package/src/project-graph/file-map-utils.d.ts.map +1 -0
- package/src/project-graph/file-map-utils.js +55 -0
- package/src/project-graph/file-utils.d.ts +25 -0
- package/src/project-graph/file-utils.d.ts.map +1 -0
- package/src/project-graph/file-utils.js +112 -0
- package/src/project-graph/nx-deps-cache.d.ts +63 -0
- package/src/project-graph/nx-deps-cache.d.ts.map +1 -0
- package/src/project-graph/nx-deps-cache.js +331 -0
- package/src/project-graph/operators.d.ts +13 -0
- package/src/project-graph/operators.d.ts.map +1 -0
- package/src/project-graph/operators.js +114 -0
- package/src/project-graph/plugins/get-plugins.d.ts +5 -0
- package/src/project-graph/plugins/get-plugins.d.ts.map +1 -0
- package/src/project-graph/plugins/get-plugins.js +216 -0
- package/src/project-graph/plugins/in-process-loader.d.ts +11 -0
- package/src/project-graph/plugins/in-process-loader.d.ts.map +1 -0
- package/src/project-graph/plugins/in-process-loader.js +60 -0
- package/src/project-graph/plugins/index.d.ts +5 -0
- package/src/project-graph/plugins/index.d.ts.map +1 -0
- package/src/project-graph/plugins/index.js +12 -0
- package/src/project-graph/plugins/isolation/enabled.d.ts +2 -0
- package/src/project-graph/plugins/isolation/enabled.d.ts.map +1 -0
- package/src/project-graph/plugins/isolation/enabled.js +22 -0
- package/src/project-graph/plugins/isolation/index.d.ts +2 -0
- package/src/project-graph/plugins/isolation/index.d.ts.map +1 -0
- package/src/project-graph/plugins/isolation/index.js +5 -0
- package/src/project-graph/plugins/isolation/isolated-plugin.d.ts +60 -0
- package/src/project-graph/plugins/isolation/isolated-plugin.d.ts.map +1 -0
- package/src/project-graph/plugins/isolation/isolated-plugin.js +436 -0
- package/src/project-graph/plugins/isolation/load-isolated-plugin.d.ts +4 -0
- package/src/project-graph/plugins/isolation/load-isolated-plugin.d.ts.map +1 -0
- package/src/project-graph/plugins/isolation/load-isolated-plugin.js +24 -0
- package/src/project-graph/plugins/isolation/message-types.d.ts +60 -0
- package/src/project-graph/plugins/isolation/message-types.d.ts.map +1 -0
- package/src/project-graph/plugins/isolation/message-types.js +9 -0
- package/src/project-graph/plugins/isolation/messaging.d.ts +127 -0
- package/src/project-graph/plugins/isolation/messaging.d.ts.map +1 -0
- package/src/project-graph/plugins/isolation/messaging.js +71 -0
- package/src/project-graph/plugins/isolation/plugin-lifecycle-manager.d.ts +65 -0
- package/src/project-graph/plugins/isolation/plugin-lifecycle-manager.d.ts.map +1 -0
- package/src/project-graph/plugins/isolation/plugin-lifecycle-manager.js +149 -0
- package/src/project-graph/plugins/isolation/plugin-worker.d.ts +2 -0
- package/src/project-graph/plugins/isolation/plugin-worker.d.ts.map +1 -0
- package/src/project-graph/plugins/isolation/plugin-worker.js +182 -0
- package/src/project-graph/plugins/load-resolved-plugin.d.ts +4 -0
- package/src/project-graph/plugins/load-resolved-plugin.d.ts.map +1 -0
- package/src/project-graph/plugins/load-resolved-plugin.js +22 -0
- package/src/project-graph/plugins/loaded-nx-plugin.d.ts +26 -0
- package/src/project-graph/plugins/loaded-nx-plugin.d.ts.map +1 -0
- package/src/project-graph/plugins/loaded-nx-plugin.js +86 -0
- package/src/project-graph/plugins/public-api.d.ts +121 -0
- package/src/project-graph/plugins/public-api.d.ts.map +1 -0
- package/src/project-graph/plugins/public-api.js +4 -0
- package/src/project-graph/plugins/resolve-plugin.d.ts +16 -0
- package/src/project-graph/plugins/resolve-plugin.d.ts.map +1 -0
- package/src/project-graph/plugins/resolve-plugin.js +136 -0
- package/src/project-graph/plugins/tasks-execution-hooks.d.ts +4 -0
- package/src/project-graph/plugins/tasks-execution-hooks.d.ts.map +1 -0
- package/src/project-graph/plugins/tasks-execution-hooks.js +65 -0
- package/src/project-graph/plugins/transpiler.d.ts +9 -0
- package/src/project-graph/plugins/transpiler.d.ts.map +1 -0
- package/src/project-graph/plugins/transpiler.js +47 -0
- package/src/project-graph/plugins/utils.d.ts +5 -0
- package/src/project-graph/plugins/utils.d.ts.map +1 -0
- package/src/project-graph/plugins/utils.js +26 -0
- package/src/project-graph/project-graph-builder.d.ts +134 -0
- package/src/project-graph/project-graph-builder.d.ts.map +1 -0
- package/src/project-graph/project-graph-builder.js +379 -0
- package/src/project-graph/project-graph.d.ts +55 -0
- package/src/project-graph/project-graph.d.ts.map +1 -0
- package/src/project-graph/project-graph.js +367 -0
- package/src/project-graph/utils/build-all-workspace-files.d.ts +3 -0
- package/src/project-graph/utils/build-all-workspace-files.d.ts.map +1 -0
- package/src/project-graph/utils/build-all-workspace-files.js +14 -0
- package/src/project-graph/utils/find-project-for-path.d.ts +21 -0
- package/src/project-graph/utils/find-project-for-path.d.ts.map +1 -0
- package/src/project-graph/utils/find-project-for-path.js +55 -0
- package/src/project-graph/utils/implicit-project-dependencies.d.ts +4 -0
- package/src/project-graph/utils/implicit-project-dependencies.d.ts.map +1 -0
- package/src/project-graph/utils/implicit-project-dependencies.js +18 -0
- package/src/project-graph/utils/normalize-project-nodes.d.ts +7 -0
- package/src/project-graph/utils/normalize-project-nodes.d.ts.map +1 -0
- package/src/project-graph/utils/normalize-project-nodes.js +117 -0
- package/src/project-graph/utils/project-configuration-utils.d.ts +75 -0
- package/src/project-graph/utils/project-configuration-utils.d.ts.map +1 -0
- package/src/project-graph/utils/project-configuration-utils.js +909 -0
- package/src/project-graph/utils/retrieve-workspace-files.d.ts +27 -0
- package/src/project-graph/utils/retrieve-workspace-files.d.ts.map +1 -0
- package/src/project-graph/utils/retrieve-workspace-files.js +82 -0
- package/src/tasks-runner/batch/batch-messages.d.ts +36 -0
- package/src/tasks-runner/batch/batch-messages.d.ts.map +1 -0
- package/src/tasks-runner/batch/batch-messages.js +9 -0
- package/src/tasks-runner/batch/run-batch.d.ts +2 -0
- package/src/tasks-runner/batch/run-batch.d.ts.map +1 -0
- package/src/tasks-runner/batch/run-batch.js +75 -0
- package/src/tasks-runner/cache.d.ts +91 -0
- package/src/tasks-runner/cache.d.ts.map +1 -0
- package/src/tasks-runner/cache.js +553 -0
- package/src/tasks-runner/create-task-graph.d.ts +43 -0
- package/src/tasks-runner/create-task-graph.d.ts.map +1 -0
- package/src/tasks-runner/create-task-graph.js +313 -0
- package/src/tasks-runner/default-tasks-runner.d.ts +28 -0
- package/src/tasks-runner/default-tasks-runner.d.ts.map +1 -0
- package/src/tasks-runner/default-tasks-runner.js +71 -0
- package/src/tasks-runner/fork.d.ts +2 -0
- package/src/tasks-runner/fork.d.ts.map +1 -0
- package/src/tasks-runner/fork.js +73 -0
- package/src/tasks-runner/forked-process-task-runner.d.ts +43 -0
- package/src/tasks-runner/forked-process-task-runner.d.ts.map +1 -0
- package/src/tasks-runner/forked-process-task-runner.js +312 -0
- package/src/tasks-runner/init-tasks-runner.d.ts +23 -0
- package/src/tasks-runner/init-tasks-runner.d.ts.map +1 -0
- package/src/tasks-runner/init-tasks-runner.js +143 -0
- package/src/tasks-runner/is-tui-enabled.d.ts +19 -0
- package/src/tasks-runner/is-tui-enabled.d.ts.map +1 -0
- package/src/tasks-runner/is-tui-enabled.js +91 -0
- package/src/tasks-runner/life-cycle.d.ts +70 -0
- package/src/tasks-runner/life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycle.js +134 -0
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts +26 -0
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +364 -0
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.d.ts +25 -0
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +236 -0
- package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.d.ts +6 -0
- package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.js +16 -0
- package/src/tasks-runner/life-cycles/formatting-utils.d.ts +4 -0
- package/src/tasks-runner/life-cycles/formatting-utils.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/formatting-utils.js +55 -0
- package/src/tasks-runner/life-cycles/invoke-runner-terminal-output-life-cycle.d.ts +14 -0
- package/src/tasks-runner/life-cycles/invoke-runner-terminal-output-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/invoke-runner-terminal-output-life-cycle.js +67 -0
- package/src/tasks-runner/life-cycles/pretty-time.d.ts +5 -0
- package/src/tasks-runner/life-cycles/pretty-time.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/pretty-time.js +73 -0
- package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.d.ts +30 -0
- package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +109 -0
- package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.d.ts +29 -0
- package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js +97 -0
- package/src/tasks-runner/life-cycles/store-run-information-life-cycle.d.ts +18 -0
- package/src/tasks-runner/life-cycles/store-run-information-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/store-run-information-life-cycle.js +87 -0
- package/src/tasks-runner/life-cycles/task-history-life-cycle-old.d.ts +13 -0
- package/src/tasks-runner/life-cycles/task-history-life-cycle-old.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/task-history-life-cycle-old.js +79 -0
- package/src/tasks-runner/life-cycles/task-history-life-cycle.d.ts +16 -0
- package/src/tasks-runner/life-cycles/task-history-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/task-history-life-cycle.js +96 -0
- package/src/tasks-runner/life-cycles/task-profiling-life-cycle.d.ts +15 -0
- package/src/tasks-runner/life-cycles/task-profiling-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/task-profiling-life-cycle.js +73 -0
- package/src/tasks-runner/life-cycles/task-results-life-cycle.d.ts +7 -0
- package/src/tasks-runner/life-cycles/task-results-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/task-results-life-cycle.js +17 -0
- package/src/tasks-runner/life-cycles/task-timings-life-cycle.d.ts +9 -0
- package/src/tasks-runner/life-cycles/task-timings-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/task-timings-life-cycle.js +39 -0
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts +20 -0
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +316 -0
- package/src/tasks-runner/life-cycles/view-logs-utils.d.ts +2 -0
- package/src/tasks-runner/life-cycles/view-logs-utils.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/view-logs-utils.js +15 -0
- package/src/tasks-runner/process-metrics-service.d.ts +54 -0
- package/src/tasks-runner/process-metrics-service.d.ts.map +1 -0
- package/src/tasks-runner/process-metrics-service.js +161 -0
- package/src/tasks-runner/pseudo-ipc.d.ts +49 -0
- package/src/tasks-runner/pseudo-ipc.d.ts.map +1 -0
- package/src/tasks-runner/pseudo-ipc.js +156 -0
- package/src/tasks-runner/pseudo-terminal.d.ts +58 -0
- package/src/tasks-runner/pseudo-terminal.d.ts.map +1 -0
- package/src/tasks-runner/pseudo-terminal.js +191 -0
- package/src/tasks-runner/remove-old-cache-records.d.ts +2 -0
- package/src/tasks-runner/remove-old-cache-records.d.ts.map +1 -0
- package/src/tasks-runner/remove-old-cache-records.js +60 -0
- package/src/tasks-runner/run-command.d.ts +43 -0
- package/src/tasks-runner/run-command.d.ts.map +1 -0
- package/src/tasks-runner/run-command.js +854 -0
- package/src/tasks-runner/running-tasks/batch-process.d.ts +20 -0
- package/src/tasks-runner/running-tasks/batch-process.d.ts.map +1 -0
- package/src/tasks-runner/running-tasks/batch-process.js +108 -0
- package/src/tasks-runner/running-tasks/node-child-process.d.ts +41 -0
- package/src/tasks-runner/running-tasks/node-child-process.d.ts.map +1 -0
- package/src/tasks-runner/running-tasks/node-child-process.js +206 -0
- package/src/tasks-runner/running-tasks/noop-child-process.d.ts +17 -0
- package/src/tasks-runner/running-tasks/noop-child-process.d.ts.map +1 -0
- package/src/tasks-runner/running-tasks/noop-child-process.js +22 -0
- package/src/tasks-runner/running-tasks/running-task.d.ts +12 -0
- package/src/tasks-runner/running-tasks/running-task.d.ts.map +1 -0
- package/src/tasks-runner/running-tasks/running-task.js +6 -0
- package/src/tasks-runner/running-tasks/shared-running-task.d.ts +15 -0
- package/src/tasks-runner/running-tasks/shared-running-task.d.ts.map +1 -0
- package/src/tasks-runner/running-tasks/shared-running-task.js +30 -0
- package/src/tasks-runner/task-env-paths.d.ts +2 -0
- package/src/tasks-runner/task-env-paths.d.ts.map +1 -0
- package/src/tasks-runner/task-env-paths.js +45 -0
- package/src/tasks-runner/task-env.d.ts +20 -0
- package/src/tasks-runner/task-env.d.ts.map +1 -0
- package/src/tasks-runner/task-env.js +149 -0
- package/src/tasks-runner/task-graph-utils.d.ts +26 -0
- package/src/tasks-runner/task-graph-utils.d.ts.map +1 -0
- package/src/tasks-runner/task-graph-utils.js +197 -0
- package/src/tasks-runner/task-io-service.d.ts +97 -0
- package/src/tasks-runner/task-io-service.d.ts.map +1 -0
- package/src/tasks-runner/task-io-service.js +146 -0
- package/src/tasks-runner/task-orchestrator.d.ts +77 -0
- package/src/tasks-runner/task-orchestrator.d.ts.map +1 -0
- package/src/tasks-runner/task-orchestrator.js +778 -0
- package/src/tasks-runner/tasks-runner.d.ts +25 -0
- package/src/tasks-runner/tasks-runner.d.ts.map +1 -0
- package/src/tasks-runner/tasks-runner.js +2 -0
- package/src/tasks-runner/tasks-schedule.d.ts +46 -0
- package/src/tasks-runner/tasks-schedule.d.ts.map +1 -0
- package/src/tasks-runner/tasks-schedule.js +222 -0
- package/src/tasks-runner/utils.d.ts +51 -0
- package/src/tasks-runner/utils.d.ts.map +1 -0
- package/src/tasks-runner/utils.js +417 -0
- package/src/utils/ab-testing.d.ts +52 -0
- package/src/utils/ab-testing.d.ts.map +1 -0
- package/src/utils/ab-testing.js +112 -0
- package/src/utils/all-file-data.d.ts +3 -0
- package/src/utils/all-file-data.d.ts.map +1 -0
- package/src/utils/all-file-data.js +8 -0
- package/src/utils/assert-workspace-validity.d.ts +4 -0
- package/src/utils/assert-workspace-validity.d.ts.map +1 -0
- package/src/utils/assert-workspace-validity.js +85 -0
- package/src/utils/async-iterator.d.ts +3 -0
- package/src/utils/async-iterator.d.ts.map +1 -0
- package/src/utils/async-iterator.js +18 -0
- package/src/utils/binary-extensions.d.ts +2 -0
- package/src/utils/binary-extensions.d.ts.map +1 -0
- package/src/utils/binary-extensions.js +279 -0
- package/src/utils/cache-directory.d.ts +8 -0
- package/src/utils/cache-directory.d.ts.map +1 -0
- package/src/utils/cache-directory.js +71 -0
- package/src/utils/call-sites.d.ts +15 -0
- package/src/utils/call-sites.d.ts.map +1 -0
- package/src/utils/call-sites.js +28 -0
- package/src/utils/catalog/index.d.ts +10 -0
- package/src/utils/catalog/index.d.ts.map +1 -0
- package/src/utils/catalog/index.js +38 -0
- package/src/utils/catalog/manager-factory.d.ts +6 -0
- package/src/utils/catalog/manager-factory.d.ts.map +1 -0
- package/src/utils/catalog/manager-factory.js +17 -0
- package/src/utils/catalog/manager.d.ts +41 -0
- package/src/utils/catalog/manager.d.ts.map +1 -0
- package/src/utils/catalog/manager.js +2 -0
- package/src/utils/catalog/pnpm-manager.d.ts +23 -0
- package/src/utils/catalog/pnpm-manager.d.ts.map +1 -0
- package/src/utils/catalog/pnpm-manager.js +260 -0
- package/src/utils/catalog/types.d.ts +5 -0
- package/src/utils/catalog/types.d.ts.map +1 -0
- package/src/utils/catalog/types.js +2 -0
- package/src/utils/child-process.d.ts +23 -0
- package/src/utils/child-process.d.ts.map +1 -0
- package/src/utils/child-process.js +112 -0
- package/src/utils/chunkify.d.ts +12 -0
- package/src/utils/chunkify.d.ts.map +1 -0
- package/src/utils/chunkify.js +44 -0
- package/src/utils/code-frames.d.ts +15 -0
- package/src/utils/code-frames.d.ts.map +1 -0
- package/src/utils/code-frames.js +115 -0
- package/src/utils/collapse-expanded-outputs.d.ts +11 -0
- package/src/utils/collapse-expanded-outputs.d.ts.map +1 -0
- package/src/utils/collapse-expanded-outputs.js +72 -0
- package/src/utils/command-line-utils.d.ts +58 -0
- package/src/utils/command-line-utils.d.ts.map +1 -0
- package/src/utils/command-line-utils.js +248 -0
- package/src/utils/consume-messages-from-socket.d.ts +4 -0
- package/src/utils/consume-messages-from-socket.d.ts.map +1 -0
- package/src/utils/consume-messages-from-socket.js +44 -0
- package/src/utils/db-connection.d.ts +7 -0
- package/src/utils/db-connection.d.ts.map +1 -0
- package/src/utils/db-connection.js +29 -0
- package/src/utils/default-base.d.ts +2 -0
- package/src/utils/default-base.d.ts.map +1 -0
- package/src/utils/default-base.js +17 -0
- package/src/utils/delayed-spinner.d.ts +43 -0
- package/src/utils/delayed-spinner.d.ts.map +1 -0
- package/src/utils/delayed-spinner.js +78 -0
- package/src/utils/dotenv.d.ts +8 -0
- package/src/utils/dotenv.d.ts.map +1 -0
- package/src/utils/dotenv.js +21 -0
- package/src/utils/exit-codes.d.ts +10 -0
- package/src/utils/exit-codes.d.ts.map +1 -0
- package/src/utils/exit-codes.js +35 -0
- package/src/utils/fileutils.d.ts +76 -0
- package/src/utils/fileutils.d.ts.map +1 -0
- package/src/utils/fileutils.js +151 -0
- package/src/utils/find-matching-projects.d.ts +11 -0
- package/src/utils/find-matching-projects.d.ts.map +1 -0
- package/src/utils/find-matching-projects.js +222 -0
- package/src/utils/find-workspace-root.d.ts +12 -0
- package/src/utils/find-workspace-root.d.ts.map +1 -0
- package/src/utils/find-workspace-root.js +33 -0
- package/src/utils/get-package-name-from-import-path.d.ts +2 -0
- package/src/utils/get-package-name-from-import-path.d.ts.map +1 -0
- package/src/utils/get-package-name-from-import-path.js +17 -0
- package/src/utils/git-utils.d.ts +43 -0
- package/src/utils/git-utils.d.ts.map +1 -0
- package/src/utils/git-utils.index-filter.d.ts +1 -0
- package/src/utils/git-utils.index-filter.d.ts.map +1 -0
- package/src/utils/git-utils.index-filter.js +21 -0
- package/src/utils/git-utils.js +297 -0
- package/src/utils/git-utils.tree-filter.d.ts +12 -0
- package/src/utils/git-utils.tree-filter.d.ts.map +1 -0
- package/src/utils/git-utils.tree-filter.js +45 -0
- package/src/utils/globs.d.ts +4 -0
- package/src/utils/globs.d.ts.map +1 -0
- package/src/utils/globs.js +18 -0
- package/src/utils/handle-errors.d.ts +2 -0
- package/src/utils/handle-errors.d.ts.map +1 -0
- package/src/utils/handle-errors.js +82 -0
- package/src/utils/ignore.d.ts +10 -0
- package/src/utils/ignore.d.ts.map +1 -0
- package/src/utils/ignore.js +42 -0
- package/src/utils/installation-directory.d.ts +3 -0
- package/src/utils/installation-directory.d.ts.map +1 -0
- package/src/utils/installation-directory.js +12 -0
- package/src/utils/is-ci.d.ts +2 -0
- package/src/utils/is-ci.d.ts.map +1 -0
- package/src/utils/is-ci.js +26 -0
- package/src/utils/is-sandbox.d.ts +2 -0
- package/src/utils/is-sandbox.d.ts.map +1 -0
- package/src/utils/is-sandbox.js +9 -0
- package/src/utils/is-using-prettier.d.ts +4 -0
- package/src/utils/is-using-prettier.d.ts.map +1 -0
- package/src/utils/is-using-prettier.js +62 -0
- package/src/utils/json-diff.d.ts +19 -0
- package/src/utils/json-diff.d.ts.map +1 -0
- package/src/utils/json-diff.js +112 -0
- package/src/utils/json.d.ts +45 -0
- package/src/utils/json.d.ts.map +1 -0
- package/src/utils/json.js +62 -0
- package/src/utils/legacy-task-history.d.ts +9 -0
- package/src/utils/legacy-task-history.d.ts.map +1 -0
- package/src/utils/legacy-task-history.js +87 -0
- package/src/utils/logger.d.ts +13 -0
- package/src/utils/logger.d.ts.map +1 -0
- package/src/utils/logger.js +52 -0
- package/src/utils/nx-cloud-utils.d.ts +4 -0
- package/src/utils/nx-cloud-utils.d.ts.map +1 -0
- package/src/utils/nx-cloud-utils.js +24 -0
- package/src/utils/nx-console-prompt.d.ts +2 -0
- package/src/utils/nx-console-prompt.d.ts.map +1 -0
- package/src/utils/nx-console-prompt.js +64 -0
- package/src/utils/nx-key.d.ts +8 -0
- package/src/utils/nx-key.d.ts.map +1 -0
- package/src/utils/nx-key.js +52 -0
- package/src/utils/object-sort.d.ts +2 -0
- package/src/utils/object-sort.d.ts.map +1 -0
- package/src/utils/object-sort.js +9 -0
- package/src/utils/output.d.ts +78 -0
- package/src/utils/output.d.ts.map +1 -0
- package/src/utils/output.js +258 -0
- package/src/utils/package-json.d.ts +195 -0
- package/src/utils/package-json.d.ts.map +1 -0
- package/src/utils/package-json.js +357 -0
- package/src/utils/package-manager.d.ts +123 -0
- package/src/utils/package-manager.d.ts.map +1 -0
- package/src/utils/package-manager.js +580 -0
- package/src/utils/params.d.ts +138 -0
- package/src/utils/params.d.ts.map +1 -0
- package/src/utils/params.js +682 -0
- package/src/utils/path.d.ts +20 -0
- package/src/utils/path.d.ts.map +1 -0
- package/src/utils/path.js +37 -0
- package/src/utils/perf-logging.d.ts +2 -0
- package/src/utils/perf-logging.d.ts.map +1 -0
- package/src/utils/perf-logging.js +13 -0
- package/src/utils/plugins/atomizer-utils.d.ts +12 -0
- package/src/utils/plugins/atomizer-utils.d.ts.map +1 -0
- package/src/utils/plugins/atomizer-utils.js +23 -0
- package/src/utils/plugins/core-plugins.d.ts +7 -0
- package/src/utils/plugins/core-plugins.d.ts.map +1 -0
- package/src/utils/plugins/core-plugins.js +113 -0
- package/src/utils/plugins/index.d.ts +6 -0
- package/src/utils/plugins/index.d.ts.map +1 -0
- package/src/utils/plugins/index.js +15 -0
- package/src/utils/plugins/installed-plugins.d.ts +6 -0
- package/src/utils/plugins/installed-plugins.d.ts.map +1 -0
- package/src/utils/plugins/installed-plugins.js +76 -0
- package/src/utils/plugins/local-plugins.d.ts +5 -0
- package/src/utils/plugins/local-plugins.d.ts.map +1 -0
- package/src/utils/plugins/local-plugins.js +30 -0
- package/src/utils/plugins/output.d.ts +35 -0
- package/src/utils/plugins/output.d.ts.map +1 -0
- package/src/utils/plugins/output.js +200 -0
- package/src/utils/plugins/plugin-capabilities.d.ts +16 -0
- package/src/utils/plugins/plugin-capabilities.d.ts.map +1 -0
- package/src/utils/plugins/plugin-capabilities.js +78 -0
- package/src/utils/pnpm-workspace.d.ts +9 -0
- package/src/utils/pnpm-workspace.d.ts.map +1 -0
- package/src/utils/pnpm-workspace.js +2 -0
- package/src/utils/print-help.d.ts +12 -0
- package/src/utils/print-help.d.ts.map +1 -0
- package/src/utils/print-help.js +258 -0
- package/src/utils/project-graph-utils.d.ts +19 -0
- package/src/utils/project-graph-utils.d.ts.map +1 -0
- package/src/utils/project-graph-utils.js +78 -0
- package/src/utils/promised-based-queue.d.ts +7 -0
- package/src/utils/promised-based-queue.d.ts.map +1 -0
- package/src/utils/promised-based-queue.js +43 -0
- package/src/utils/provenance.d.ts +48 -0
- package/src/utils/provenance.d.ts.map +1 -0
- package/src/utils/provenance.js +105 -0
- package/src/utils/require-nx-key.d.ts +2 -0
- package/src/utils/require-nx-key.d.ts.map +1 -0
- package/src/utils/require-nx-key.js +22 -0
- package/src/utils/serializable-error.d.ts +5 -0
- package/src/utils/serializable-error.d.ts.map +1 -0
- package/src/utils/serializable-error.js +33 -0
- package/src/utils/serialize-overrides-into-command-line.d.ts +4 -0
- package/src/utils/serialize-overrides-into-command-line.d.ts.map +1 -0
- package/src/utils/serialize-overrides-into-command-line.js +42 -0
- package/src/utils/serialize-target.d.ts +2 -0
- package/src/utils/serialize-target.d.ts.map +1 -0
- package/src/utils/serialize-target.js +6 -0
- package/src/utils/spinner.d.ts +13 -0
- package/src/utils/spinner.d.ts.map +1 -0
- package/src/utils/spinner.js +61 -0
- package/src/utils/split-target.d.ts +4 -0
- package/src/utils/split-target.d.ts.map +1 -0
- package/src/utils/split-target.js +88 -0
- package/src/utils/strip-indents.d.ts +15 -0
- package/src/utils/strip-indents.d.ts.map +1 -0
- package/src/utils/strip-indents.js +23 -0
- package/src/utils/sync-generators.d.ts +67 -0
- package/src/utils/sync-generators.d.ts.map +1 -0
- package/src/utils/sync-generators.js +354 -0
- package/src/utils/task-history.d.ts +18 -0
- package/src/utils/task-history.d.ts.map +1 -0
- package/src/utils/task-history.js +51 -0
- package/src/utils/update-nxw.d.ts +3 -0
- package/src/utils/update-nxw.d.ts.map +1 -0
- package/src/utils/update-nxw.js +22 -0
- package/src/utils/versions.d.ts +2 -0
- package/src/utils/versions.d.ts.map +1 -0
- package/src/utils/versions.js +4 -0
- package/src/utils/workspace-context.d.ts +22 -0
- package/src/utils/workspace-context.d.ts.map +1 -0
- package/src/utils/workspace-context.js +119 -0
- package/src/utils/workspace-root.d.ts +7 -0
- package/src/utils/workspace-root.d.ts.map +1 -0
- package/src/utils/workspace-root.js +39 -0
- package/tasks-runners/default.d.ts +2 -0
- package/tasks-runners/default.d.ts.map +1 -0
- package/tasks-runners/default.js +5 -0
|
@@ -0,0 +1,1009 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.daemonClient = exports.DaemonClient = void 0;
|
|
4
|
+
exports.isDaemonEnabled = isDaemonEnabled;
|
|
5
|
+
const child_process_1 = require("child_process");
|
|
6
|
+
const promises_1 = require("fs/promises");
|
|
7
|
+
const net_1 = require("net");
|
|
8
|
+
const node_fs_1 = require("node:fs");
|
|
9
|
+
const node_v8_1 = require("node:v8");
|
|
10
|
+
const path_1 = require("path");
|
|
11
|
+
const perf_hooks_1 = require("perf_hooks");
|
|
12
|
+
const configuration_1 = require("../../config/configuration");
|
|
13
|
+
const nx_json_1 = require("../../config/nx-json");
|
|
14
|
+
const native_1 = require("../../native");
|
|
15
|
+
const error_types_1 = require("../../project-graph/error-types");
|
|
16
|
+
const project_graph_1 = require("../../project-graph/project-graph");
|
|
17
|
+
const consume_messages_from_socket_1 = require("../../utils/consume-messages-from-socket");
|
|
18
|
+
const delayed_spinner_1 = require("../../utils/delayed-spinner");
|
|
19
|
+
const is_ci_1 = require("../../utils/is-ci");
|
|
20
|
+
const is_sandbox_1 = require("../../utils/is-sandbox");
|
|
21
|
+
const output_1 = require("../../utils/output");
|
|
22
|
+
const promised_based_queue_1 = require("../../utils/promised-based-queue");
|
|
23
|
+
const workspace_root_1 = require("../../utils/workspace-root");
|
|
24
|
+
const cache_1 = require("../cache");
|
|
25
|
+
const is_nx_version_mismatch_1 = require("../is-nx-version-mismatch");
|
|
26
|
+
const logger_1 = require("../logger");
|
|
27
|
+
const flush_sync_generator_changes_to_disk_1 = require("../message-types/flush-sync-generator-changes-to-disk");
|
|
28
|
+
const get_context_file_data_1 = require("../message-types/get-context-file-data");
|
|
29
|
+
const get_files_in_directory_1 = require("../message-types/get-files-in-directory");
|
|
30
|
+
const get_nx_workspace_files_1 = require("../message-types/get-nx-workspace-files");
|
|
31
|
+
const get_registered_sync_generators_1 = require("../message-types/get-registered-sync-generators");
|
|
32
|
+
const get_sync_generator_changes_1 = require("../message-types/get-sync-generator-changes");
|
|
33
|
+
const hash_glob_1 = require("../message-types/hash-glob");
|
|
34
|
+
const nx_console_1 = require("../message-types/nx-console");
|
|
35
|
+
const register_project_graph_listener_1 = require("../message-types/register-project-graph-listener");
|
|
36
|
+
const run_tasks_execution_hooks_1 = require("../message-types/run-tasks-execution-hooks");
|
|
37
|
+
const task_history_1 = require("../message-types/task-history");
|
|
38
|
+
const update_workspace_context_1 = require("../message-types/update-workspace-context");
|
|
39
|
+
const tmp_dir_1 = require("../tmp-dir");
|
|
40
|
+
const daemon_socket_messenger_1 = require("./daemon-socket-messenger");
|
|
41
|
+
const DAEMON_ENV_REQUIRED_SETTINGS = {
|
|
42
|
+
NX_PROJECT_GLOB_CACHE: 'false',
|
|
43
|
+
NX_CACHE_PROJECTS_CONFIG: 'false',
|
|
44
|
+
};
|
|
45
|
+
const DAEMON_ENV_OVERRIDABLE_SETTINGS = {
|
|
46
|
+
NX_VERBOSE_LOGGING: 'true',
|
|
47
|
+
NX_PERF_LOGGING: 'true',
|
|
48
|
+
NX_NATIVE_LOGGING: 'nx=debug',
|
|
49
|
+
};
|
|
50
|
+
var DaemonStatus;
|
|
51
|
+
(function (DaemonStatus) {
|
|
52
|
+
DaemonStatus[DaemonStatus["CONNECTING"] = 0] = "CONNECTING";
|
|
53
|
+
DaemonStatus[DaemonStatus["DISCONNECTED"] = 1] = "DISCONNECTED";
|
|
54
|
+
DaemonStatus[DaemonStatus["CONNECTED"] = 2] = "CONNECTED";
|
|
55
|
+
})(DaemonStatus || (DaemonStatus = {}));
|
|
56
|
+
const WAIT_FOR_SERVER_CONFIG = {
|
|
57
|
+
delayMs: 10,
|
|
58
|
+
maxAttempts: 6000, // 6000 * 10ms = 60 seconds
|
|
59
|
+
};
|
|
60
|
+
class DaemonClient {
|
|
61
|
+
constructor() {
|
|
62
|
+
this._daemonStatus = DaemonStatus.DISCONNECTED;
|
|
63
|
+
this._waitForDaemonReady = null;
|
|
64
|
+
this._daemonReady = null;
|
|
65
|
+
this._out = null;
|
|
66
|
+
this._err = null;
|
|
67
|
+
this.fileWatcherReconnecting = false;
|
|
68
|
+
this.fileWatcherCallbacks = new Map();
|
|
69
|
+
this.fileWatcherConfigs = new Map();
|
|
70
|
+
this.projectGraphListenerReconnecting = false;
|
|
71
|
+
this.projectGraphListenerCallbacks = new Map();
|
|
72
|
+
try {
|
|
73
|
+
this.nxJson = (0, configuration_1.readNxJson)();
|
|
74
|
+
}
|
|
75
|
+
catch (e) {
|
|
76
|
+
this.nxJson = null;
|
|
77
|
+
}
|
|
78
|
+
this.reset();
|
|
79
|
+
}
|
|
80
|
+
enabled() {
|
|
81
|
+
if (this._enabled === undefined) {
|
|
82
|
+
const useDaemonProcessOption = this.nxJson?.useDaemonProcess;
|
|
83
|
+
const env = process.env.NX_DAEMON;
|
|
84
|
+
// env takes precedence
|
|
85
|
+
// option=true,env=false => no daemon
|
|
86
|
+
// option=false,env=undefined => no daemon
|
|
87
|
+
// option=false,env=false => no daemon
|
|
88
|
+
// option=undefined,env=undefined => daemon
|
|
89
|
+
// option=true,env=true => daemon
|
|
90
|
+
// option=false,env=true => daemon
|
|
91
|
+
// CI=true,env=undefined => no daemon
|
|
92
|
+
// CI=true,env=false => no daemon
|
|
93
|
+
// CI=true,env=true => daemon
|
|
94
|
+
// docker=true,env=undefined => no daemon
|
|
95
|
+
// docker=true,env=false => no daemon
|
|
96
|
+
// docker=true,env=true => daemon
|
|
97
|
+
// WASM => no daemon because file watching does not work
|
|
98
|
+
// version mismatch => no daemon because the installed nx version differs from the running one
|
|
99
|
+
if ((0, is_nx_version_mismatch_1.isNxVersionMismatch)() ||
|
|
100
|
+
(((0, is_ci_1.isCI)() || isDocker() || (0, is_sandbox_1.isSandbox)()) && env !== 'true') ||
|
|
101
|
+
(0, tmp_dir_1.isDaemonDisabled)() ||
|
|
102
|
+
nxJsonIsNotPresent() ||
|
|
103
|
+
(useDaemonProcessOption === undefined && env === 'false') ||
|
|
104
|
+
(useDaemonProcessOption === true && env === 'false') ||
|
|
105
|
+
(useDaemonProcessOption === false && env === undefined) ||
|
|
106
|
+
(useDaemonProcessOption === false && env === 'false')) {
|
|
107
|
+
this._enabled = false;
|
|
108
|
+
}
|
|
109
|
+
else if (native_1.IS_WASM) {
|
|
110
|
+
output_1.output.warn({
|
|
111
|
+
title: 'The Nx Daemon is unsupported in WebAssembly environments. Some things may be slower than or not function as expected.',
|
|
112
|
+
});
|
|
113
|
+
this._enabled = false;
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
this._enabled = true;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return this._enabled;
|
|
120
|
+
}
|
|
121
|
+
reset() {
|
|
122
|
+
this.socketMessenger?.close();
|
|
123
|
+
this.socketMessenger = null;
|
|
124
|
+
this.queue = new promised_based_queue_1.PromisedBasedQueue();
|
|
125
|
+
this.currentMessage = null;
|
|
126
|
+
this.currentResolve = null;
|
|
127
|
+
this.currentReject = null;
|
|
128
|
+
this._enabled = undefined;
|
|
129
|
+
this._out?.close();
|
|
130
|
+
this._err?.close();
|
|
131
|
+
this._out = null;
|
|
132
|
+
this._err = null;
|
|
133
|
+
// Clean up file watcher and project graph listener connections
|
|
134
|
+
this.fileWatcherMessenger?.close();
|
|
135
|
+
this.fileWatcherMessenger = undefined;
|
|
136
|
+
this.projectGraphListenerMessenger?.close();
|
|
137
|
+
this.projectGraphListenerMessenger = undefined;
|
|
138
|
+
this._daemonStatus = DaemonStatus.DISCONNECTED;
|
|
139
|
+
this._waitForDaemonReady = new Promise((resolve) => (this._daemonReady = resolve));
|
|
140
|
+
}
|
|
141
|
+
getSocketPath() {
|
|
142
|
+
const daemonProcessJson = (0, cache_1.readDaemonProcessJsonCache)();
|
|
143
|
+
if (daemonProcessJson?.socketPath) {
|
|
144
|
+
return daemonProcessJson.socketPath;
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
throw daemonProcessException('Unable to connect to daemon: no socket path available');
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
parseMessage(message) {
|
|
151
|
+
return (0, consume_messages_from_socket_1.isJsonMessage)(message)
|
|
152
|
+
? JSON.parse(message)
|
|
153
|
+
: (0, node_v8_1.deserialize)(Buffer.from(message, 'binary'));
|
|
154
|
+
}
|
|
155
|
+
async requestShutdown() {
|
|
156
|
+
return this.sendToDaemonViaQueue({ type: 'REQUEST_SHUTDOWN' });
|
|
157
|
+
}
|
|
158
|
+
async getProjectGraphAndSourceMaps() {
|
|
159
|
+
(0, project_graph_1.preventRecursionInGraphConstruction)();
|
|
160
|
+
let spinner;
|
|
161
|
+
// If the graph takes a while to load, we want to show a spinner.
|
|
162
|
+
spinner = new delayed_spinner_1.DelayedSpinner('Calculating the project graph on the Nx Daemon').scheduleMessageUpdate('Calculating the project graph on the Nx Daemon is taking longer than expected. Re-run with NX_DAEMON=false to see more details.', { ciDelay: 60_000, delay: 30_000 });
|
|
163
|
+
try {
|
|
164
|
+
const response = await this.sendToDaemonViaQueue({
|
|
165
|
+
type: 'REQUEST_PROJECT_GRAPH',
|
|
166
|
+
});
|
|
167
|
+
return {
|
|
168
|
+
projectGraph: response.projectGraph,
|
|
169
|
+
sourceMaps: response.sourceMaps,
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
catch (e) {
|
|
173
|
+
if (e.name === error_types_1.DaemonProjectGraphError.name) {
|
|
174
|
+
throw error_types_1.ProjectGraphError.fromDaemonProjectGraphError(e);
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
throw e;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
finally {
|
|
181
|
+
spinner?.cleanup();
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
async getAllFileData() {
|
|
185
|
+
return await this.sendToDaemonViaQueue({ type: 'REQUEST_FILE_DATA' });
|
|
186
|
+
}
|
|
187
|
+
hashTasks(runnerOptions, tasks, taskGraph, env, cwd) {
|
|
188
|
+
return this.sendToDaemonViaQueue({
|
|
189
|
+
type: 'HASH_TASKS',
|
|
190
|
+
runnerOptions,
|
|
191
|
+
env: process.env.NX_USE_V8_SERIALIZER !== 'false'
|
|
192
|
+
? structuredClone(process.env)
|
|
193
|
+
: env,
|
|
194
|
+
tasks,
|
|
195
|
+
taskGraph,
|
|
196
|
+
cwd,
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
async registerFileWatcher(config, callback) {
|
|
200
|
+
try {
|
|
201
|
+
await this.getProjectGraphAndSourceMaps();
|
|
202
|
+
}
|
|
203
|
+
catch (e) {
|
|
204
|
+
if (config.allowPartialGraph && e instanceof error_types_1.ProjectGraphError) {
|
|
205
|
+
// we are fine with partial graph
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
throw e;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
// Generate unique ID for this callback
|
|
212
|
+
const callbackId = Math.random().toString(36).substring(2, 11);
|
|
213
|
+
// Store callback and config for reconnection
|
|
214
|
+
this.fileWatcherCallbacks.set(callbackId, callback);
|
|
215
|
+
this.fileWatcherConfigs.set(callbackId, config);
|
|
216
|
+
await this.queue.sendToQueue(async () => {
|
|
217
|
+
// If we already have a connection, just register the new config
|
|
218
|
+
if (this.fileWatcherMessenger) {
|
|
219
|
+
this.fileWatcherMessenger.sendMessage({
|
|
220
|
+
type: 'REGISTER_FILE_WATCHER',
|
|
221
|
+
config,
|
|
222
|
+
});
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
await this.startDaemonIfNecessary();
|
|
226
|
+
const socketPath = this.getSocketPath();
|
|
227
|
+
this.fileWatcherMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)(socketPath)).listen((message) => {
|
|
228
|
+
try {
|
|
229
|
+
const parsedMessage = this.parseMessage(message);
|
|
230
|
+
// Notify all callbacks
|
|
231
|
+
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
232
|
+
cb(null, parsedMessage);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
catch (e) {
|
|
236
|
+
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
237
|
+
cb(e, null);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}, () => {
|
|
241
|
+
// Connection closed - trigger reconnection
|
|
242
|
+
logger_1.clientLogger.log(`[FileWatcher] Socket closed, triggering reconnection`);
|
|
243
|
+
this.fileWatcherMessenger = undefined;
|
|
244
|
+
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
245
|
+
cb('reconnecting', null);
|
|
246
|
+
}
|
|
247
|
+
this.reconnectFileWatcher();
|
|
248
|
+
}, (err) => {
|
|
249
|
+
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
250
|
+
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
251
|
+
cb('closed', null);
|
|
252
|
+
}
|
|
253
|
+
process.exit(1);
|
|
254
|
+
}
|
|
255
|
+
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
256
|
+
cb(err, null);
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
this.fileWatcherMessenger.sendMessage({
|
|
260
|
+
type: 'REGISTER_FILE_WATCHER',
|
|
261
|
+
config,
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
// Return unregister function
|
|
265
|
+
return () => {
|
|
266
|
+
this.fileWatcherCallbacks.delete(callbackId);
|
|
267
|
+
this.fileWatcherConfigs.delete(callbackId);
|
|
268
|
+
// If no more callbacks, close the connection
|
|
269
|
+
if (this.fileWatcherCallbacks.size === 0) {
|
|
270
|
+
this.fileWatcherMessenger?.close();
|
|
271
|
+
this.fileWatcherMessenger = undefined;
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
async reconnectFileWatcher() {
|
|
276
|
+
// Guard against concurrent reconnection attempts
|
|
277
|
+
if (this.fileWatcherReconnecting) {
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
if (this.fileWatcherCallbacks.size === 0) {
|
|
281
|
+
return; // No callbacks to reconnect
|
|
282
|
+
}
|
|
283
|
+
this.fileWatcherReconnecting = true;
|
|
284
|
+
logger_1.clientLogger.log(`[FileWatcher] Starting reconnection for ${this.fileWatcherCallbacks.size} callbacks`);
|
|
285
|
+
// Wait for daemon server to be available before trying to reconnect
|
|
286
|
+
let serverAvailable;
|
|
287
|
+
try {
|
|
288
|
+
serverAvailable = await this.waitForServerToBeAvailable({
|
|
289
|
+
ignoreVersionMismatch: false,
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
catch (err) {
|
|
293
|
+
// Version mismatch - pass error to callbacks so they can handle it
|
|
294
|
+
logger_1.clientLogger.log(`[FileWatcher] Error during reconnection: ${err.message}`);
|
|
295
|
+
this.fileWatcherReconnecting = false;
|
|
296
|
+
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
297
|
+
cb(err, null);
|
|
298
|
+
}
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
if (!serverAvailable) {
|
|
302
|
+
// Failed to reconnect after all attempts - notify as closed
|
|
303
|
+
logger_1.clientLogger.log(`[FileWatcher] Failed to reconnect - server unavailable`);
|
|
304
|
+
this.fileWatcherReconnecting = false;
|
|
305
|
+
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
306
|
+
cb('closed', null);
|
|
307
|
+
}
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
try {
|
|
311
|
+
// Try to reconnect
|
|
312
|
+
const socketPath = this.getSocketPath();
|
|
313
|
+
this.fileWatcherMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)(socketPath)).listen((message) => {
|
|
314
|
+
try {
|
|
315
|
+
const parsedMessage = this.parseMessage(message);
|
|
316
|
+
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
317
|
+
cb(null, parsedMessage);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
catch (e) {
|
|
321
|
+
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
322
|
+
cb(e, null);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}, () => {
|
|
326
|
+
// Connection closed - trigger reconnection again
|
|
327
|
+
this.fileWatcherMessenger = undefined;
|
|
328
|
+
// Reset reconnection flag before triggering reconnection
|
|
329
|
+
this.fileWatcherReconnecting = false;
|
|
330
|
+
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
331
|
+
cb('reconnecting', null);
|
|
332
|
+
}
|
|
333
|
+
this.reconnectFileWatcher();
|
|
334
|
+
}, (err) => {
|
|
335
|
+
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
336
|
+
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
337
|
+
cb('closed', null);
|
|
338
|
+
}
|
|
339
|
+
process.exit(1);
|
|
340
|
+
}
|
|
341
|
+
// Other errors during reconnection - let retry loop handle
|
|
342
|
+
});
|
|
343
|
+
// Re-register all stored configs
|
|
344
|
+
for (const cfg of this.fileWatcherConfigs.values()) {
|
|
345
|
+
this.fileWatcherMessenger.sendMessage({
|
|
346
|
+
type: 'REGISTER_FILE_WATCHER',
|
|
347
|
+
config: cfg,
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
// Successfully reconnected - notify callbacks
|
|
351
|
+
logger_1.clientLogger.log(`[FileWatcher] Reconnected successfully`);
|
|
352
|
+
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
353
|
+
cb('reconnected', null);
|
|
354
|
+
}
|
|
355
|
+
this.fileWatcherReconnecting = false;
|
|
356
|
+
}
|
|
357
|
+
catch (e) {
|
|
358
|
+
// Failed to reconnect - notify as closed
|
|
359
|
+
logger_1.clientLogger.log(`[FileWatcher] Reconnection failed: ${e.message}`);
|
|
360
|
+
this.fileWatcherReconnecting = false;
|
|
361
|
+
for (const cb of this.fileWatcherCallbacks.values()) {
|
|
362
|
+
cb('closed', null);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
async registerProjectGraphRecomputationListener(callback) {
|
|
367
|
+
// Generate unique ID for this callback
|
|
368
|
+
const callbackId = Math.random().toString(36).substring(2, 11);
|
|
369
|
+
// Store callback
|
|
370
|
+
this.projectGraphListenerCallbacks.set(callbackId, callback);
|
|
371
|
+
await this.queue.sendToQueue(async () => {
|
|
372
|
+
// If we already have a connection, just send the registration
|
|
373
|
+
if (this.projectGraphListenerMessenger) {
|
|
374
|
+
this.projectGraphListenerMessenger.sendMessage({
|
|
375
|
+
type: register_project_graph_listener_1.REGISTER_PROJECT_GRAPH_LISTENER,
|
|
376
|
+
});
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
await this.startDaemonIfNecessary();
|
|
380
|
+
const socketPath = this.getSocketPath();
|
|
381
|
+
this.projectGraphListenerMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)(socketPath)).listen((message) => {
|
|
382
|
+
try {
|
|
383
|
+
const parsedMessage = this.parseMessage(message);
|
|
384
|
+
// Notify all callbacks
|
|
385
|
+
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
386
|
+
cb(null, parsedMessage);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
catch (e) {
|
|
390
|
+
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
391
|
+
cb(e, null);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}, () => {
|
|
395
|
+
// Connection closed - trigger reconnection
|
|
396
|
+
logger_1.clientLogger.log(`[ProjectGraphListener] Socket closed, triggering reconnection`);
|
|
397
|
+
this.projectGraphListenerMessenger = undefined;
|
|
398
|
+
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
399
|
+
cb('reconnecting', null);
|
|
400
|
+
}
|
|
401
|
+
this.reconnectProjectGraphListener();
|
|
402
|
+
}, (err) => {
|
|
403
|
+
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
404
|
+
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
405
|
+
cb('closed', null);
|
|
406
|
+
}
|
|
407
|
+
process.exit(1);
|
|
408
|
+
}
|
|
409
|
+
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
410
|
+
cb(err, null);
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
this.projectGraphListenerMessenger.sendMessage({
|
|
414
|
+
type: register_project_graph_listener_1.REGISTER_PROJECT_GRAPH_LISTENER,
|
|
415
|
+
});
|
|
416
|
+
});
|
|
417
|
+
// Return unregister function
|
|
418
|
+
return () => {
|
|
419
|
+
this.projectGraphListenerCallbacks.delete(callbackId);
|
|
420
|
+
// If no more callbacks, close the connection
|
|
421
|
+
if (this.projectGraphListenerCallbacks.size === 0) {
|
|
422
|
+
this.projectGraphListenerMessenger?.close();
|
|
423
|
+
this.projectGraphListenerMessenger = undefined;
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
async reconnectProjectGraphListener() {
|
|
428
|
+
// Guard against concurrent reconnection attempts
|
|
429
|
+
if (this.projectGraphListenerReconnecting) {
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
if (this.projectGraphListenerCallbacks.size === 0) {
|
|
433
|
+
return; // No callbacks to reconnect
|
|
434
|
+
}
|
|
435
|
+
this.projectGraphListenerReconnecting = true;
|
|
436
|
+
logger_1.clientLogger.log(`[ProjectGraphListener] Starting reconnection for ${this.projectGraphListenerCallbacks.size} callbacks`);
|
|
437
|
+
// Wait for daemon server to be available before trying to reconnect
|
|
438
|
+
let serverAvailable;
|
|
439
|
+
try {
|
|
440
|
+
serverAvailable = await this.waitForServerToBeAvailable({
|
|
441
|
+
ignoreVersionMismatch: false,
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
catch (err) {
|
|
445
|
+
// Version mismatch - pass error to callbacks so they can handle it
|
|
446
|
+
logger_1.clientLogger.log(`[ProjectGraphListener] Error during reconnection: ${err.message}`);
|
|
447
|
+
this.projectGraphListenerReconnecting = false;
|
|
448
|
+
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
449
|
+
cb(err, null);
|
|
450
|
+
}
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
453
|
+
if (!serverAvailable) {
|
|
454
|
+
// Failed to reconnect after all attempts - notify as closed
|
|
455
|
+
logger_1.clientLogger.log(`[ProjectGraphListener] Failed to reconnect - server unavailable`);
|
|
456
|
+
this.projectGraphListenerReconnecting = false;
|
|
457
|
+
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
458
|
+
cb('closed', null);
|
|
459
|
+
}
|
|
460
|
+
return;
|
|
461
|
+
}
|
|
462
|
+
try {
|
|
463
|
+
const socketPath = this.getSocketPath();
|
|
464
|
+
// Try to reconnect
|
|
465
|
+
this.projectGraphListenerMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger((0, net_1.connect)(socketPath)).listen((message) => {
|
|
466
|
+
try {
|
|
467
|
+
const parsedMessage = this.parseMessage(message);
|
|
468
|
+
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
469
|
+
cb(null, parsedMessage);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
catch (e) {
|
|
473
|
+
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
474
|
+
cb(e, null);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}, () => {
|
|
478
|
+
// Connection closed - trigger reconnection again
|
|
479
|
+
this.projectGraphListenerMessenger = undefined;
|
|
480
|
+
// Reset reconnection flag before triggering reconnection
|
|
481
|
+
this.projectGraphListenerReconnecting = false;
|
|
482
|
+
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
483
|
+
cb('reconnecting', null);
|
|
484
|
+
}
|
|
485
|
+
this.reconnectProjectGraphListener();
|
|
486
|
+
}, (err) => {
|
|
487
|
+
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
488
|
+
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
489
|
+
cb('closed', null);
|
|
490
|
+
}
|
|
491
|
+
process.exit(1);
|
|
492
|
+
}
|
|
493
|
+
// Other errors during reconnection - let retry loop handle
|
|
494
|
+
});
|
|
495
|
+
// Re-register
|
|
496
|
+
this.projectGraphListenerMessenger.sendMessage({
|
|
497
|
+
type: register_project_graph_listener_1.REGISTER_PROJECT_GRAPH_LISTENER,
|
|
498
|
+
});
|
|
499
|
+
// Successfully reconnected - notify callbacks
|
|
500
|
+
logger_1.clientLogger.log(`[ProjectGraphListener] Reconnected successfully`);
|
|
501
|
+
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
502
|
+
cb('reconnected', null);
|
|
503
|
+
}
|
|
504
|
+
this.projectGraphListenerReconnecting = false;
|
|
505
|
+
}
|
|
506
|
+
catch (e) {
|
|
507
|
+
// Failed to reconnect - notify as closed
|
|
508
|
+
logger_1.clientLogger.log(`[ProjectGraphListener] Reconnection failed: ${e.message}`);
|
|
509
|
+
this.projectGraphListenerReconnecting = false;
|
|
510
|
+
for (const cb of this.projectGraphListenerCallbacks.values()) {
|
|
511
|
+
cb('closed', null);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
processInBackground(requirePath, data) {
|
|
516
|
+
return this.sendToDaemonViaQueue({
|
|
517
|
+
type: 'PROCESS_IN_BACKGROUND',
|
|
518
|
+
requirePath,
|
|
519
|
+
data,
|
|
520
|
+
// This method is sometimes passed data that cannot be serialized with v8
|
|
521
|
+
// so we force JSON serialization here
|
|
522
|
+
}, 'json');
|
|
523
|
+
}
|
|
524
|
+
recordOutputsHash(outputs, hash) {
|
|
525
|
+
return this.sendToDaemonViaQueue({
|
|
526
|
+
type: 'RECORD_OUTPUTS_HASH',
|
|
527
|
+
data: {
|
|
528
|
+
outputs,
|
|
529
|
+
hash,
|
|
530
|
+
},
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
outputsHashesMatch(outputs, hash) {
|
|
534
|
+
return this.sendToDaemonViaQueue({
|
|
535
|
+
type: 'OUTPUTS_HASHES_MATCH',
|
|
536
|
+
data: {
|
|
537
|
+
outputs,
|
|
538
|
+
hash,
|
|
539
|
+
},
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
glob(globs, exclude) {
|
|
543
|
+
const message = {
|
|
544
|
+
type: 'GLOB',
|
|
545
|
+
globs,
|
|
546
|
+
exclude,
|
|
547
|
+
};
|
|
548
|
+
return this.sendToDaemonViaQueue(message);
|
|
549
|
+
}
|
|
550
|
+
multiGlob(globs, exclude) {
|
|
551
|
+
const message = {
|
|
552
|
+
type: 'MULTI_GLOB',
|
|
553
|
+
globs,
|
|
554
|
+
exclude,
|
|
555
|
+
};
|
|
556
|
+
return this.sendToDaemonViaQueue(message);
|
|
557
|
+
}
|
|
558
|
+
getWorkspaceContextFileData() {
|
|
559
|
+
const message = {
|
|
560
|
+
type: get_context_file_data_1.GET_CONTEXT_FILE_DATA,
|
|
561
|
+
};
|
|
562
|
+
return this.sendToDaemonViaQueue(message);
|
|
563
|
+
}
|
|
564
|
+
getWorkspaceFiles(projectRootMap) {
|
|
565
|
+
const message = {
|
|
566
|
+
type: get_nx_workspace_files_1.GET_NX_WORKSPACE_FILES,
|
|
567
|
+
projectRootMap,
|
|
568
|
+
};
|
|
569
|
+
return this.sendToDaemonViaQueue(message);
|
|
570
|
+
}
|
|
571
|
+
getFilesInDirectory(dir) {
|
|
572
|
+
const message = {
|
|
573
|
+
type: get_files_in_directory_1.GET_FILES_IN_DIRECTORY,
|
|
574
|
+
dir,
|
|
575
|
+
};
|
|
576
|
+
return this.sendToDaemonViaQueue(message);
|
|
577
|
+
}
|
|
578
|
+
hashGlob(globs, exclude) {
|
|
579
|
+
const message = {
|
|
580
|
+
type: hash_glob_1.HASH_GLOB,
|
|
581
|
+
globs,
|
|
582
|
+
exclude,
|
|
583
|
+
};
|
|
584
|
+
return this.sendToDaemonViaQueue(message);
|
|
585
|
+
}
|
|
586
|
+
hashMultiGlob(globGroups) {
|
|
587
|
+
const message = {
|
|
588
|
+
type: hash_glob_1.HASH_MULTI_GLOB,
|
|
589
|
+
globGroups: globGroups,
|
|
590
|
+
};
|
|
591
|
+
return this.sendToDaemonViaQueue(message);
|
|
592
|
+
}
|
|
593
|
+
getFlakyTasks(hashes) {
|
|
594
|
+
const message = {
|
|
595
|
+
type: task_history_1.GET_FLAKY_TASKS,
|
|
596
|
+
hashes,
|
|
597
|
+
};
|
|
598
|
+
return this.sendToDaemonViaQueue(message);
|
|
599
|
+
}
|
|
600
|
+
async getEstimatedTaskTimings(targets) {
|
|
601
|
+
const message = {
|
|
602
|
+
type: task_history_1.GET_ESTIMATED_TASK_TIMINGS,
|
|
603
|
+
targets,
|
|
604
|
+
};
|
|
605
|
+
return this.sendToDaemonViaQueue(message);
|
|
606
|
+
}
|
|
607
|
+
recordTaskRuns(taskRuns) {
|
|
608
|
+
const message = {
|
|
609
|
+
type: task_history_1.RECORD_TASK_RUNS,
|
|
610
|
+
taskRuns,
|
|
611
|
+
};
|
|
612
|
+
return this.sendToDaemonViaQueue(message);
|
|
613
|
+
}
|
|
614
|
+
getSyncGeneratorChanges(generators) {
|
|
615
|
+
const message = {
|
|
616
|
+
type: get_sync_generator_changes_1.GET_SYNC_GENERATOR_CHANGES,
|
|
617
|
+
generators,
|
|
618
|
+
};
|
|
619
|
+
return this.sendToDaemonViaQueue(message);
|
|
620
|
+
}
|
|
621
|
+
flushSyncGeneratorChangesToDisk(generators) {
|
|
622
|
+
const message = {
|
|
623
|
+
type: flush_sync_generator_changes_to_disk_1.FLUSH_SYNC_GENERATOR_CHANGES_TO_DISK,
|
|
624
|
+
generators,
|
|
625
|
+
};
|
|
626
|
+
return this.sendToDaemonViaQueue(message);
|
|
627
|
+
}
|
|
628
|
+
getRegisteredSyncGenerators() {
|
|
629
|
+
const message = {
|
|
630
|
+
type: get_registered_sync_generators_1.GET_REGISTERED_SYNC_GENERATORS,
|
|
631
|
+
};
|
|
632
|
+
return this.sendToDaemonViaQueue(message);
|
|
633
|
+
}
|
|
634
|
+
updateWorkspaceContext(createdFiles, updatedFiles, deletedFiles) {
|
|
635
|
+
const message = {
|
|
636
|
+
type: update_workspace_context_1.UPDATE_WORKSPACE_CONTEXT,
|
|
637
|
+
createdFiles,
|
|
638
|
+
updatedFiles,
|
|
639
|
+
deletedFiles,
|
|
640
|
+
};
|
|
641
|
+
return this.sendToDaemonViaQueue(message);
|
|
642
|
+
}
|
|
643
|
+
async runPreTasksExecution(context) {
|
|
644
|
+
const message = {
|
|
645
|
+
type: run_tasks_execution_hooks_1.PRE_TASKS_EXECUTION,
|
|
646
|
+
context,
|
|
647
|
+
};
|
|
648
|
+
return this.sendToDaemonViaQueue(message);
|
|
649
|
+
}
|
|
650
|
+
async runPostTasksExecution(context) {
|
|
651
|
+
const message = {
|
|
652
|
+
type: run_tasks_execution_hooks_1.POST_TASKS_EXECUTION,
|
|
653
|
+
context,
|
|
654
|
+
};
|
|
655
|
+
return this.sendToDaemonViaQueue(message);
|
|
656
|
+
}
|
|
657
|
+
getNxConsoleStatus() {
|
|
658
|
+
const message = {
|
|
659
|
+
type: nx_console_1.GET_NX_CONSOLE_STATUS,
|
|
660
|
+
};
|
|
661
|
+
return this.sendToDaemonViaQueue(message);
|
|
662
|
+
}
|
|
663
|
+
setNxConsolePreferenceAndInstall(preference) {
|
|
664
|
+
const message = {
|
|
665
|
+
type: nx_console_1.SET_NX_CONSOLE_PREFERENCE_AND_INSTALL,
|
|
666
|
+
preference,
|
|
667
|
+
};
|
|
668
|
+
return this.sendToDaemonViaQueue(message);
|
|
669
|
+
}
|
|
670
|
+
async isServerAvailable() {
|
|
671
|
+
return new Promise((resolve, reject) => {
|
|
672
|
+
try {
|
|
673
|
+
const socketPath = this.getSocketPath();
|
|
674
|
+
if (!socketPath) {
|
|
675
|
+
resolve(false);
|
|
676
|
+
return;
|
|
677
|
+
}
|
|
678
|
+
const socket = (0, net_1.connect)(socketPath, () => {
|
|
679
|
+
socket.destroy();
|
|
680
|
+
resolve(true);
|
|
681
|
+
});
|
|
682
|
+
socket.once('error', () => {
|
|
683
|
+
resolve(false);
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
catch (err) {
|
|
687
|
+
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
688
|
+
reject(err); // Let version mismatch bubble up
|
|
689
|
+
}
|
|
690
|
+
resolve(false);
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
async startDaemonIfNecessary() {
|
|
695
|
+
if (this._daemonStatus == DaemonStatus.CONNECTED) {
|
|
696
|
+
return;
|
|
697
|
+
}
|
|
698
|
+
// Ensure daemon is running and socket path is available
|
|
699
|
+
if (this._daemonStatus == DaemonStatus.DISCONNECTED) {
|
|
700
|
+
this._daemonStatus = DaemonStatus.CONNECTING;
|
|
701
|
+
let daemonPid = null;
|
|
702
|
+
let serverAvailable;
|
|
703
|
+
try {
|
|
704
|
+
serverAvailable = await this.isServerAvailable();
|
|
705
|
+
}
|
|
706
|
+
catch (err) {
|
|
707
|
+
// Version mismatch - treat as server not available, start new one
|
|
708
|
+
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
709
|
+
serverAvailable = false;
|
|
710
|
+
}
|
|
711
|
+
else {
|
|
712
|
+
throw err;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
if (!serverAvailable) {
|
|
716
|
+
daemonPid = await this.startInBackground();
|
|
717
|
+
}
|
|
718
|
+
this.setUpConnection();
|
|
719
|
+
this._daemonStatus = DaemonStatus.CONNECTED;
|
|
720
|
+
this._daemonReady();
|
|
721
|
+
daemonPid ??= (0, cache_1.getDaemonProcessIdSync)();
|
|
722
|
+
// Fire-and-forget - don't block daemon connection by waiting for metrics registration
|
|
723
|
+
this.registerDaemonProcessWithMetricsService(daemonPid);
|
|
724
|
+
}
|
|
725
|
+
else if (this._daemonStatus == DaemonStatus.CONNECTING) {
|
|
726
|
+
await this._waitForDaemonReady;
|
|
727
|
+
const daemonPid = (0, cache_1.getDaemonProcessIdSync)();
|
|
728
|
+
// Fire-and-forget - don't block daemon connection by waiting for metrics registration
|
|
729
|
+
this.registerDaemonProcessWithMetricsService(daemonPid);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
async sendToDaemonViaQueue(messageToDaemon, force) {
|
|
733
|
+
return this.queue.sendToQueue(() => this.sendMessageToDaemon(messageToDaemon, force));
|
|
734
|
+
}
|
|
735
|
+
setUpConnection() {
|
|
736
|
+
const socketPath = this.getSocketPath();
|
|
737
|
+
const socket = (0, net_1.connect)(socketPath);
|
|
738
|
+
// Unref the socket so it doesn't keep the process alive. The
|
|
739
|
+
// sendMessageToDaemon method uses a keep-alive setTimeout to
|
|
740
|
+
// explicitly hold the event loop open while awaiting a response.
|
|
741
|
+
socket.unref();
|
|
742
|
+
this.socketMessenger = new daemon_socket_messenger_1.DaemonSocketMessenger(socket).listen((message) => this.handleMessage(message), () => {
|
|
743
|
+
// it's ok for the daemon to terminate if the client doesn't wait on
|
|
744
|
+
// any messages from the daemon
|
|
745
|
+
if (this.queue.isEmpty()) {
|
|
746
|
+
this.reset();
|
|
747
|
+
}
|
|
748
|
+
else {
|
|
749
|
+
// Connection closed while we had pending work - try to reconnect
|
|
750
|
+
this._daemonStatus = DaemonStatus.DISCONNECTED;
|
|
751
|
+
this.handleConnectionError(daemonProcessException('Daemon process terminated and closed the connection'));
|
|
752
|
+
}
|
|
753
|
+
}, (err) => {
|
|
754
|
+
if (!err.message) {
|
|
755
|
+
return this.currentReject(daemonProcessException(err.toString()));
|
|
756
|
+
}
|
|
757
|
+
let error;
|
|
758
|
+
if (err.message.startsWith('connect ENOENT')) {
|
|
759
|
+
error = daemonProcessException('The Daemon Server is not running');
|
|
760
|
+
}
|
|
761
|
+
else if (err.message.startsWith('connect ECONNREFUSED')) {
|
|
762
|
+
error = daemonProcessException(`A server instance had not been fully shut down. Please try running the command again.`);
|
|
763
|
+
}
|
|
764
|
+
else if (err.message.startsWith('read ECONNRESET')) {
|
|
765
|
+
error = daemonProcessException(`Unable to connect to the daemon process.`);
|
|
766
|
+
}
|
|
767
|
+
else {
|
|
768
|
+
error = daemonProcessException(err.toString());
|
|
769
|
+
}
|
|
770
|
+
this.currentReject(error);
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
async handleConnectionError(error) {
|
|
774
|
+
logger_1.clientLogger.log(`[Reconnect] Connection error detected: ${error.message}`);
|
|
775
|
+
// Create a new ready promise for new requests to wait on
|
|
776
|
+
this._waitForDaemonReady = new Promise((resolve) => (this._daemonReady = resolve));
|
|
777
|
+
// Set status to CONNECTING so new requests will wait for reconnection
|
|
778
|
+
this._daemonStatus = DaemonStatus.CONNECTING;
|
|
779
|
+
let serverAvailable;
|
|
780
|
+
try {
|
|
781
|
+
serverAvailable = await this.waitForServerToBeAvailable({
|
|
782
|
+
ignoreVersionMismatch: false,
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
catch (err) {
|
|
786
|
+
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
787
|
+
// New daemon has different version - reject with error so caller can handle
|
|
788
|
+
if (this.currentReject) {
|
|
789
|
+
this.currentReject(err);
|
|
790
|
+
}
|
|
791
|
+
return;
|
|
792
|
+
}
|
|
793
|
+
throw err;
|
|
794
|
+
}
|
|
795
|
+
if (serverAvailable) {
|
|
796
|
+
logger_1.clientLogger.log(`[Reconnect] Reconnection successful, re-establishing connection`);
|
|
797
|
+
// Server is back up, establish connection and signal ready
|
|
798
|
+
this.establishConnection();
|
|
799
|
+
// Resend the pending message if one exists
|
|
800
|
+
if (this.currentMessage && this.currentResolve && this.currentReject) {
|
|
801
|
+
// Retry the message directly (not through the queue) to resolve the
|
|
802
|
+
// pending promise that the original queue entry is waiting on.
|
|
803
|
+
// This allows the original queue entry to complete naturally.
|
|
804
|
+
const msg = this.currentMessage;
|
|
805
|
+
const res = this.currentResolve;
|
|
806
|
+
const rej = this.currentReject;
|
|
807
|
+
this.sendMessageToDaemon(msg).then(res, rej);
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
else {
|
|
811
|
+
// Failed to reconnect after all attempts, reject the pending request
|
|
812
|
+
if (this.currentReject) {
|
|
813
|
+
this.currentReject(error);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
establishConnection() {
|
|
818
|
+
this._daemonStatus = DaemonStatus.DISCONNECTED;
|
|
819
|
+
this.setUpConnection();
|
|
820
|
+
this._daemonStatus = DaemonStatus.CONNECTED;
|
|
821
|
+
this._daemonReady();
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Wait for daemon server to be available.
|
|
825
|
+
* Used for reconnection - throws VersionMismatchError if daemon version differs.
|
|
826
|
+
*/
|
|
827
|
+
async waitForServerToBeAvailable(options) {
|
|
828
|
+
let attempts = 0;
|
|
829
|
+
logger_1.clientLogger.log(`[Client] Waiting for server (max: ${WAIT_FOR_SERVER_CONFIG.maxAttempts} attempts, ${WAIT_FOR_SERVER_CONFIG.delayMs}ms interval)`);
|
|
830
|
+
while (attempts < WAIT_FOR_SERVER_CONFIG.maxAttempts) {
|
|
831
|
+
await new Promise((resolve) => setTimeout(resolve, WAIT_FOR_SERVER_CONFIG.delayMs));
|
|
832
|
+
attempts++;
|
|
833
|
+
try {
|
|
834
|
+
if (await this.isServerAvailable()) {
|
|
835
|
+
logger_1.clientLogger.log(`[Client] Server available after ${attempts} attempts`);
|
|
836
|
+
return true;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
catch (err) {
|
|
840
|
+
if (err instanceof daemon_socket_messenger_1.VersionMismatchError) {
|
|
841
|
+
if (!options.ignoreVersionMismatch) {
|
|
842
|
+
throw err;
|
|
843
|
+
}
|
|
844
|
+
// Keep waiting - old cache file may exist
|
|
845
|
+
}
|
|
846
|
+
else {
|
|
847
|
+
throw err;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
logger_1.clientLogger.log(`[Client] Server not available after ${WAIT_FOR_SERVER_CONFIG.maxAttempts} attempts`);
|
|
852
|
+
return false;
|
|
853
|
+
}
|
|
854
|
+
async sendMessageToDaemon(message, force) {
|
|
855
|
+
await this.startDaemonIfNecessary();
|
|
856
|
+
// An open promise isn't enough to keep the event loop
|
|
857
|
+
// alive, so we set a timeout here and clear it when we hear
|
|
858
|
+
// back
|
|
859
|
+
const keepAlive = setTimeout(() => { }, 10 * 60 * 1000);
|
|
860
|
+
return new Promise((resolve, reject) => {
|
|
861
|
+
perf_hooks_1.performance.mark('sendMessageToDaemon-start');
|
|
862
|
+
this.currentMessage = message;
|
|
863
|
+
this.currentResolve = resolve;
|
|
864
|
+
this.currentReject = reject;
|
|
865
|
+
this.socketMessenger.sendMessage(message, force);
|
|
866
|
+
}).finally(() => {
|
|
867
|
+
clearTimeout(keepAlive);
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
async registerDaemonProcessWithMetricsService(daemonPid) {
|
|
871
|
+
if (!daemonPid) {
|
|
872
|
+
return;
|
|
873
|
+
}
|
|
874
|
+
try {
|
|
875
|
+
const { getProcessMetricsService } = await Promise.resolve().then(() => require('../../tasks-runner/process-metrics-service'));
|
|
876
|
+
getProcessMetricsService().registerDaemonProcess(daemonPid);
|
|
877
|
+
}
|
|
878
|
+
catch {
|
|
879
|
+
// don't error, this is a secondary concern that should not break task execution
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
handleMessage(serializedResult) {
|
|
883
|
+
try {
|
|
884
|
+
perf_hooks_1.performance.mark('result-parse-start-' + this.currentMessage.type);
|
|
885
|
+
const parsedResult = (0, consume_messages_from_socket_1.isJsonMessage)(serializedResult)
|
|
886
|
+
? JSON.parse(serializedResult)
|
|
887
|
+
: (0, node_v8_1.deserialize)(Buffer.from(serializedResult, 'binary'));
|
|
888
|
+
perf_hooks_1.performance.mark('result-parse-end-' + this.currentMessage.type);
|
|
889
|
+
perf_hooks_1.performance.measure('deserialize daemon response - ' + this.currentMessage.type, 'result-parse-start-' + this.currentMessage.type, 'result-parse-end-' + this.currentMessage.type);
|
|
890
|
+
if (parsedResult.error) {
|
|
891
|
+
this.currentReject(parsedResult.error);
|
|
892
|
+
}
|
|
893
|
+
else {
|
|
894
|
+
perf_hooks_1.performance.measure(`${this.currentMessage.type} round trip`, 'sendMessageToDaemon-start', 'result-parse-end-' + this.currentMessage.type);
|
|
895
|
+
return this.currentResolve(parsedResult);
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
catch (e) {
|
|
899
|
+
const endOfResponse = serializedResult.length > 300
|
|
900
|
+
? serializedResult.substring(serializedResult.length - 300)
|
|
901
|
+
: serializedResult;
|
|
902
|
+
this.currentReject(daemonProcessException([
|
|
903
|
+
'Could not deserialize response from Nx daemon.',
|
|
904
|
+
`Message: ${e.message}`,
|
|
905
|
+
'\n',
|
|
906
|
+
`Received:`,
|
|
907
|
+
endOfResponse,
|
|
908
|
+
'\n',
|
|
909
|
+
].join('\n')));
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
async startInBackground() {
|
|
913
|
+
if (global.NX_PLUGIN_WORKER) {
|
|
914
|
+
throw new Error('Fatal Error: Something unexpected has occurred. Plugin Workers should not start a new daemon process. Please report this issue.');
|
|
915
|
+
}
|
|
916
|
+
(0, node_fs_1.mkdirSync)(tmp_dir_1.DAEMON_DIR_FOR_CURRENT_WORKSPACE, { recursive: true });
|
|
917
|
+
if (!(0, node_fs_1.existsSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE)) {
|
|
918
|
+
(0, node_fs_1.writeFileSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, '');
|
|
919
|
+
}
|
|
920
|
+
this._out = await (0, promises_1.open)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, 'a');
|
|
921
|
+
this._err = await (0, promises_1.open)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE, 'a');
|
|
922
|
+
logger_1.clientLogger.log(`[Client] Starting new daemon server in background`);
|
|
923
|
+
const backgroundProcess = (0, child_process_1.spawn)(process.execPath, [(0, path_1.join)(__dirname, `../server/start.js`)], {
|
|
924
|
+
cwd: workspace_root_1.workspaceRoot,
|
|
925
|
+
stdio: ['ignore', this._out.fd, this._err.fd],
|
|
926
|
+
detached: true,
|
|
927
|
+
windowsHide: false,
|
|
928
|
+
shell: false,
|
|
929
|
+
env: {
|
|
930
|
+
...DAEMON_ENV_OVERRIDABLE_SETTINGS,
|
|
931
|
+
...process.env,
|
|
932
|
+
...DAEMON_ENV_REQUIRED_SETTINGS,
|
|
933
|
+
},
|
|
934
|
+
});
|
|
935
|
+
backgroundProcess.unref();
|
|
936
|
+
/**
|
|
937
|
+
* Ensure the server is actually available to connect to via IPC before resolving
|
|
938
|
+
*/
|
|
939
|
+
const serverAvailable = await this.waitForServerToBeAvailable({
|
|
940
|
+
ignoreVersionMismatch: true,
|
|
941
|
+
});
|
|
942
|
+
if (serverAvailable) {
|
|
943
|
+
logger_1.clientLogger.log(`[Client] Daemon server started, pid=${backgroundProcess.pid}`);
|
|
944
|
+
return backgroundProcess.pid;
|
|
945
|
+
}
|
|
946
|
+
else {
|
|
947
|
+
throw daemonProcessException('Failed to start or connect to the Nx Daemon process.');
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
async stop() {
|
|
951
|
+
try {
|
|
952
|
+
const pid = (0, cache_1.getDaemonProcessIdSync)();
|
|
953
|
+
if (pid) {
|
|
954
|
+
process.kill(pid, 'SIGTERM');
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
catch (err) {
|
|
958
|
+
if (err.code !== 'ESRCH') {
|
|
959
|
+
output_1.output.error({
|
|
960
|
+
title: err?.message ||
|
|
961
|
+
'Something unexpected went wrong when stopping the daemon server',
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
(0, tmp_dir_1.removeSocketDir)();
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
exports.DaemonClient = DaemonClient;
|
|
969
|
+
exports.daemonClient = new DaemonClient();
|
|
970
|
+
function isDaemonEnabled() {
|
|
971
|
+
return exports.daemonClient.enabled();
|
|
972
|
+
}
|
|
973
|
+
function isDocker() {
|
|
974
|
+
try {
|
|
975
|
+
(0, node_fs_1.statSync)('/.dockerenv');
|
|
976
|
+
return true;
|
|
977
|
+
}
|
|
978
|
+
catch {
|
|
979
|
+
try {
|
|
980
|
+
return (0, node_fs_1.readFileSync)('/proc/self/cgroup', 'utf8')?.includes('docker');
|
|
981
|
+
}
|
|
982
|
+
catch { }
|
|
983
|
+
return false;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
function nxJsonIsNotPresent() {
|
|
987
|
+
return !(0, nx_json_1.hasNxJson)(workspace_root_1.workspaceRoot);
|
|
988
|
+
}
|
|
989
|
+
function daemonProcessException(message) {
|
|
990
|
+
try {
|
|
991
|
+
let log = (0, node_fs_1.readFileSync)(tmp_dir_1.DAEMON_OUTPUT_LOG_FILE).toString().split('\n');
|
|
992
|
+
if (log.length > 20) {
|
|
993
|
+
log = log.slice(log.length - 20);
|
|
994
|
+
}
|
|
995
|
+
const error = new Error([
|
|
996
|
+
message,
|
|
997
|
+
'',
|
|
998
|
+
'Messages from the log:',
|
|
999
|
+
...log,
|
|
1000
|
+
'\n',
|
|
1001
|
+
`More information: ${tmp_dir_1.DAEMON_OUTPUT_LOG_FILE}`,
|
|
1002
|
+
].join('\n'));
|
|
1003
|
+
error.internalDaemonError = true;
|
|
1004
|
+
return error;
|
|
1005
|
+
}
|
|
1006
|
+
catch (e) {
|
|
1007
|
+
return new Error(message);
|
|
1008
|
+
}
|
|
1009
|
+
}
|