@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,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isPluginWorkerMessage = isPluginWorkerMessage;
|
|
4
|
+
exports.isPluginWorkerResult = isPluginWorkerResult;
|
|
5
|
+
exports.consumeMessage = consumeMessage;
|
|
6
|
+
exports.sendMessageOverSocket = sendMessageOverSocket;
|
|
7
|
+
const consume_messages_from_socket_1 = require("../../../utils/consume-messages-from-socket");
|
|
8
|
+
// =============================================================================
|
|
9
|
+
// TYPE GUARDS
|
|
10
|
+
// =============================================================================
|
|
11
|
+
const MESSAGE_TYPES = [
|
|
12
|
+
'load',
|
|
13
|
+
'createNodes',
|
|
14
|
+
'createDependencies',
|
|
15
|
+
'createMetadata',
|
|
16
|
+
'preTasksExecution',
|
|
17
|
+
'postTasksExecution',
|
|
18
|
+
];
|
|
19
|
+
const RESULT_TYPES = [
|
|
20
|
+
'loadResult',
|
|
21
|
+
'createNodesResult',
|
|
22
|
+
'createDependenciesResult',
|
|
23
|
+
'createMetadataResult',
|
|
24
|
+
'preTasksExecutionResult',
|
|
25
|
+
'postTasksExecutionResult',
|
|
26
|
+
];
|
|
27
|
+
function isPluginWorkerMessage(message) {
|
|
28
|
+
return (typeof message === 'object' &&
|
|
29
|
+
message !== null &&
|
|
30
|
+
'type' in message &&
|
|
31
|
+
typeof message.type === 'string' &&
|
|
32
|
+
MESSAGE_TYPES.includes(message.type));
|
|
33
|
+
}
|
|
34
|
+
function isPluginWorkerResult(message) {
|
|
35
|
+
return (typeof message === 'object' &&
|
|
36
|
+
message !== null &&
|
|
37
|
+
'type' in message &&
|
|
38
|
+
typeof message.type === 'string' &&
|
|
39
|
+
RESULT_TYPES.includes(message.type));
|
|
40
|
+
}
|
|
41
|
+
// =============================================================================
|
|
42
|
+
// MESSAGE HANDLING
|
|
43
|
+
// =============================================================================
|
|
44
|
+
/**
|
|
45
|
+
* Consumes a message and dispatches to the appropriate handler.
|
|
46
|
+
* If the handler returns a value, it's automatically wrapped in a result message
|
|
47
|
+
* with the correct type and transaction ID.
|
|
48
|
+
*
|
|
49
|
+
* Handlers return just the result payload - the infrastructure handles wrapping.
|
|
50
|
+
*/
|
|
51
|
+
async function consumeMessage(socket, raw, handlers) {
|
|
52
|
+
const message = raw;
|
|
53
|
+
const type = message.type;
|
|
54
|
+
const handler = handlers[type];
|
|
55
|
+
// Type widening for dynamic dispatch - safe because types guarantee
|
|
56
|
+
// message.type always indexes into the matching handler
|
|
57
|
+
const resultPayload = await handler(message.payload);
|
|
58
|
+
if (resultPayload !== undefined && resultPayload !== null) {
|
|
59
|
+
sendMessageOverSocket(socket, {
|
|
60
|
+
type: `${type}Result`,
|
|
61
|
+
payload: resultPayload,
|
|
62
|
+
tx: message.tx,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Sends a message over the socket with proper formatting.
|
|
68
|
+
*/
|
|
69
|
+
function sendMessageOverSocket(socket, message) {
|
|
70
|
+
socket.write(JSON.stringify(message) + consume_messages_from_socket_1.MESSAGE_END_SEQ);
|
|
71
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Phase configuration - single source of truth.
|
|
3
|
+
* Key order defines phase execution order.
|
|
4
|
+
* Hooks within each phase can execute in any order.
|
|
5
|
+
*/
|
|
6
|
+
declare const HOOKS_BY_PHASE: {
|
|
7
|
+
readonly graph: readonly ["createNodes", "createDependencies", "createMetadata"];
|
|
8
|
+
readonly 'pre-task': readonly ["preTasksExecution"];
|
|
9
|
+
readonly 'post-task': readonly ["postTasksExecution"];
|
|
10
|
+
};
|
|
11
|
+
export type Phase = keyof typeof HOOKS_BY_PHASE;
|
|
12
|
+
export type Hook = (typeof HOOKS_BY_PHASE)[Phase][number];
|
|
13
|
+
/**
|
|
14
|
+
* Manages the lifecycle of an isolated plugin worker.
|
|
15
|
+
*
|
|
16
|
+
* Tracks phase entry/exit to determine when a worker can safely shut down.
|
|
17
|
+
* A "phase session" starts when a caller enters the first registered hook
|
|
18
|
+
* of a phase and ends when they exit the last registered hook.
|
|
19
|
+
*
|
|
20
|
+
* Shutdown occurs when:
|
|
21
|
+
* 1. All phase sessions complete (ref count reaches 0)
|
|
22
|
+
* 2. No later phases have registered hooks
|
|
23
|
+
*/
|
|
24
|
+
export declare class PluginLifecycleManager {
|
|
25
|
+
/** Phases where this plugin has at least one registered hook */
|
|
26
|
+
private readonly registeredPhases;
|
|
27
|
+
/** Number of active "phase sessions" (callers between first and last hook) */
|
|
28
|
+
private readonly phaseSessionCount;
|
|
29
|
+
/** Ordered list of registered phases (derived from HOOKS_BY_PHASE key order, narrowed to registered phases) */
|
|
30
|
+
private readonly registeredPhaseOrder;
|
|
31
|
+
constructor(registeredHooks: Iterable<Hook>);
|
|
32
|
+
wrapHook<TArgs extends unknown[], TReturn>(hook: Hook, fn: (...args: TArgs) => Promise<TReturn>, shutdown: () => Promise<void> | void): (...args: TArgs) => Promise<TReturn>;
|
|
33
|
+
/**
|
|
34
|
+
* Called when entering a hook. Increments phase session count if this
|
|
35
|
+
* is the first registered hook in the phase.
|
|
36
|
+
*/
|
|
37
|
+
enterHook(hook: Hook): void;
|
|
38
|
+
/**
|
|
39
|
+
* Called when exiting a hook. Decrements phase session count if this
|
|
40
|
+
* is the last registered hook in the phase.
|
|
41
|
+
*
|
|
42
|
+
* @returns true if the worker should shut down, false otherwise
|
|
43
|
+
*/
|
|
44
|
+
exitHook(hook: Hook): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Returns true if the worker should shut down immediately after construction.
|
|
47
|
+
* This happens when the plugin has no graph-phase hooks, meaning it won't
|
|
48
|
+
* be needed until task execution time (pre-task or post-task).
|
|
49
|
+
*/
|
|
50
|
+
shouldShutdownImmediately(): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Returns true if the plugin has any hooks in the given phase.
|
|
53
|
+
*/
|
|
54
|
+
hasHooksInPhase(phase: Phase): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Returns true if this is the last phase with registered hooks.
|
|
57
|
+
*/
|
|
58
|
+
isLastRegisteredPhase(phase: Phase): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the current session count for a phase. Useful for testing.
|
|
61
|
+
*/
|
|
62
|
+
getPhaseRefCount(phase: Phase): number;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
65
|
+
//# sourceMappingURL=plugin-lifecycle-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-lifecycle-manager.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/project-graph/plugins/isolation/plugin-lifecycle-manager.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,QAAA,MAAM,cAAc;;;;CAIV,CAAC;AAEX,MAAM,MAAM,KAAK,GAAG,MAAM,OAAO,cAAc,CAAC;AAChD,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAgB1D;;;;;;;;;;GAUG;AACH,qBAAa,sBAAsB;IACjC,gEAAgE;IAChE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAsC;IAEvE,8EAA8E;IAC9E,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAsC;IAExE,+GAA+G;IAC/G,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAe;gBAExC,eAAe,EAAE,QAAQ,CAAC,IAAI,CAAC;IAqB3C,QAAQ,CAAC,KAAK,SAAS,OAAO,EAAE,EAAE,OAAO,EACvC,IAAI,EAAE,IAAI,EACV,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC,EACxC,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,GACnC,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,CAAC,OAAO,CAAC;IAcvC;;;OAGG;IACH,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAmB3B;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO;IAgC7B;;;;OAIG;IACH,yBAAyB,IAAI,OAAO;IAIpC;;OAEG;IACH,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IAItC;;OAEG;IACH,qBAAqB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IAQ5C;;OAEG;IACH,gBAAgB,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM;CAGvC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PluginLifecycleManager = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Phase configuration - single source of truth.
|
|
6
|
+
* Key order defines phase execution order.
|
|
7
|
+
* Hooks within each phase can execute in any order.
|
|
8
|
+
*/
|
|
9
|
+
const HOOKS_BY_PHASE = {
|
|
10
|
+
graph: ['createNodes', 'createDependencies', 'createMetadata'],
|
|
11
|
+
'pre-task': ['preTasksExecution'],
|
|
12
|
+
'post-task': ['postTasksExecution'],
|
|
13
|
+
};
|
|
14
|
+
const PHASE_BY_HOOK = Object.entries(HOOKS_BY_PHASE).reduce((acc, [phase, hooks]) => {
|
|
15
|
+
for (const hook of hooks) {
|
|
16
|
+
acc[hook] = phase;
|
|
17
|
+
}
|
|
18
|
+
return acc;
|
|
19
|
+
}, {});
|
|
20
|
+
const PHASE_ORDER = keys(HOOKS_BY_PHASE);
|
|
21
|
+
/**
|
|
22
|
+
* Manages the lifecycle of an isolated plugin worker.
|
|
23
|
+
*
|
|
24
|
+
* Tracks phase entry/exit to determine when a worker can safely shut down.
|
|
25
|
+
* A "phase session" starts when a caller enters the first registered hook
|
|
26
|
+
* of a phase and ends when they exit the last registered hook.
|
|
27
|
+
*
|
|
28
|
+
* Shutdown occurs when:
|
|
29
|
+
* 1. All phase sessions complete (ref count reaches 0)
|
|
30
|
+
* 2. No later phases have registered hooks
|
|
31
|
+
*/
|
|
32
|
+
class PluginLifecycleManager {
|
|
33
|
+
constructor(registeredHooks) {
|
|
34
|
+
/** Phases where this plugin has at least one registered hook */
|
|
35
|
+
this.registeredPhases = {};
|
|
36
|
+
/** Number of active "phase sessions" (callers between first and last hook) */
|
|
37
|
+
this.phaseSessionCount = {};
|
|
38
|
+
/** Ordered list of registered phases (derived from HOOKS_BY_PHASE key order, narrowed to registered phases) */
|
|
39
|
+
this.registeredPhaseOrder = [];
|
|
40
|
+
const registered = new Set(registeredHooks);
|
|
41
|
+
// Determine which phases are registered and find first/last hooks per phase
|
|
42
|
+
this.registeredPhases = {};
|
|
43
|
+
for (const phase of PHASE_ORDER) {
|
|
44
|
+
const hooksInPhase = HOOKS_BY_PHASE[phase].filter((hook) => registered.has(hook));
|
|
45
|
+
if (hooksInPhase.length > 0) {
|
|
46
|
+
this.registeredPhases[phase] = hooksInPhase;
|
|
47
|
+
this.registeredPhaseOrder.push(phase);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
// Initialize session counts to 0
|
|
51
|
+
for (const phase of this.registeredPhaseOrder) {
|
|
52
|
+
this.phaseSessionCount[phase] = 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
wrapHook(hook, fn, shutdown) {
|
|
56
|
+
return async (...args) => {
|
|
57
|
+
this.enterHook(hook);
|
|
58
|
+
try {
|
|
59
|
+
return await fn(...args);
|
|
60
|
+
}
|
|
61
|
+
finally {
|
|
62
|
+
const shouldShutdown = this.exitHook(hook);
|
|
63
|
+
if (shouldShutdown) {
|
|
64
|
+
await shutdown();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Called when entering a hook. Increments phase session count if this
|
|
71
|
+
* is the first registered hook in the phase.
|
|
72
|
+
*/
|
|
73
|
+
enterHook(hook) {
|
|
74
|
+
const phase = PHASE_BY_HOOK[hook];
|
|
75
|
+
const phaseHooks = this.registeredPhases[phase];
|
|
76
|
+
if (!phaseHooks || !phaseHooks.includes(hook)) {
|
|
77
|
+
throw new Error(`Hook "${hook}" is not registered for this plugin. Registered phases: ${this.registeredPhaseOrder.join(', ')}`);
|
|
78
|
+
}
|
|
79
|
+
// If this is the first hook registered by this plugin in the phase, increment session count
|
|
80
|
+
const firstHook = phaseHooks[0];
|
|
81
|
+
if (hook === firstHook) {
|
|
82
|
+
this.phaseSessionCount[phase] ??= 0;
|
|
83
|
+
this.phaseSessionCount[phase]++;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Called when exiting a hook. Decrements phase session count if this
|
|
88
|
+
* is the last registered hook in the phase.
|
|
89
|
+
*
|
|
90
|
+
* @returns true if the worker should shut down, false otherwise
|
|
91
|
+
*/
|
|
92
|
+
exitHook(hook) {
|
|
93
|
+
const phase = PHASE_BY_HOOK[hook];
|
|
94
|
+
const phaseHooks = this.registeredPhases[phase];
|
|
95
|
+
if (!phaseHooks) {
|
|
96
|
+
throw new Error(`Hook "${hook}" is not registered for this plugin. Registered phases: ${this.registeredPhaseOrder.join(', ')}`);
|
|
97
|
+
}
|
|
98
|
+
// Only process shutdown logic on last hook (exiting the phase)
|
|
99
|
+
if (hook !== phaseHooks[phaseHooks.length - 1]) {
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
// Decrement session count
|
|
103
|
+
const count = this.phaseSessionCount[phase] ?? 0;
|
|
104
|
+
if (count === 0) {
|
|
105
|
+
throw new Error(`Mismatched exitHook call for phase "${phase}". No active sessions.`);
|
|
106
|
+
}
|
|
107
|
+
const newCount = count - 1;
|
|
108
|
+
this.phaseSessionCount[phase] = newCount;
|
|
109
|
+
// Can only shut down if no more active sessions in this phase
|
|
110
|
+
if (newCount > 0)
|
|
111
|
+
return false;
|
|
112
|
+
// Can only shut down if this is the last registered phase
|
|
113
|
+
return this.isLastRegisteredPhase(phase);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Returns true if the worker should shut down immediately after construction.
|
|
117
|
+
* This happens when the plugin has no graph-phase hooks, meaning it won't
|
|
118
|
+
* be needed until task execution time (pre-task or post-task).
|
|
119
|
+
*/
|
|
120
|
+
shouldShutdownImmediately() {
|
|
121
|
+
return !this.registeredPhases['graph'];
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Returns true if the plugin has any hooks in the given phase.
|
|
125
|
+
*/
|
|
126
|
+
hasHooksInPhase(phase) {
|
|
127
|
+
return !!this.registeredPhases[phase];
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Returns true if this is the last phase with registered hooks.
|
|
131
|
+
*/
|
|
132
|
+
isLastRegisteredPhase(phase) {
|
|
133
|
+
const phaseIndex = this.registeredPhaseOrder.indexOf(phase);
|
|
134
|
+
if (phaseIndex === -1) {
|
|
135
|
+
throw new Error(`Phase "${phase}" is not registered for this plugin.`);
|
|
136
|
+
}
|
|
137
|
+
return phaseIndex === this.registeredPhaseOrder.length - 1;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Returns the current session count for a phase. Useful for testing.
|
|
141
|
+
*/
|
|
142
|
+
getPhaseRefCount(phase) {
|
|
143
|
+
return this.phaseSessionCount[phase] ?? 0;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.PluginLifecycleManager = PluginLifecycleManager;
|
|
147
|
+
function keys(obj) {
|
|
148
|
+
return Object.keys(obj);
|
|
149
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-worker.d.ts","sourceRoot":"","sources":["../../../../../../../packages/nx/src/project-graph/plugins/isolation/plugin-worker.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const node_perf_hooks_1 = require("node:perf_hooks");
|
|
4
|
+
node_perf_hooks_1.performance.mark(`plugin worker ${process.pid} code loading -- start`);
|
|
5
|
+
const consume_messages_from_socket_1 = require("../../../utils/consume-messages-from-socket");
|
|
6
|
+
const logger_1 = require("../../../utils/logger");
|
|
7
|
+
const serializable_error_1 = require("../../../utils/serializable-error");
|
|
8
|
+
const messaging_1 = require("./messaging");
|
|
9
|
+
const fs_1 = require("fs");
|
|
10
|
+
const net_1 = require("net");
|
|
11
|
+
const environment = process.env;
|
|
12
|
+
if (environment.NX_PERF_LOGGING === 'true') {
|
|
13
|
+
require('../../../utils/perf-logging');
|
|
14
|
+
}
|
|
15
|
+
node_perf_hooks_1.performance.mark(`plugin worker ${process.pid} code loading -- end`);
|
|
16
|
+
node_perf_hooks_1.performance.measure(`plugin worker ${process.pid} code loading`, `plugin worker ${process.pid} code loading -- start`, `plugin worker ${process.pid} code loading -- end`);
|
|
17
|
+
global.NX_GRAPH_CREATION = true;
|
|
18
|
+
global.NX_PLUGIN_WORKER = true;
|
|
19
|
+
let plugin;
|
|
20
|
+
const socketPath = process.argv[2];
|
|
21
|
+
const expectedPluginName = process.argv[3];
|
|
22
|
+
let connectErrorTimeout = setErrorTimeout(5000, `The plugin worker for ${expectedPluginName} is exiting as it was not connected to within 5 seconds. ` +
|
|
23
|
+
'Plugin workers expect to receive a socket connection from the parent process shortly after being started. ' +
|
|
24
|
+
'If you are seeing this issue, please report it to the Nx team at https://github.com/nrwl/nx/issues.');
|
|
25
|
+
const server = (0, net_1.createServer)((socket) => {
|
|
26
|
+
connectErrorTimeout?.clear();
|
|
27
|
+
logger_1.logger.verbose(`[plugin-worker] "${expectedPluginName}" (pid: ${process.pid}) connected`);
|
|
28
|
+
// This handles cases where the host process was killed
|
|
29
|
+
// after the worker connected but before the worker was
|
|
30
|
+
// instructed to load the plugin.
|
|
31
|
+
let loadErrorTimeout = setErrorTimeout(10_000, `Plugin Worker for ${expectedPluginName} is exiting as it did not receive a load message within 10 seconds of connecting. ` +
|
|
32
|
+
'This likely indicates that the host process was terminated before the worker could be instructed to load the plugin. ' +
|
|
33
|
+
'If you are seeing this issue, please report it to the Nx team at https://github.com/nrwl/nx/issues.');
|
|
34
|
+
socket.on('data', (0, consume_messages_from_socket_1.consumeMessagesFromSocket)((raw) => {
|
|
35
|
+
const message = JSON.parse(raw.toString());
|
|
36
|
+
if (!(0, messaging_1.isPluginWorkerMessage)(message)) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
return (0, messaging_1.consumeMessage)(socket, message, {
|
|
40
|
+
load: async ({ plugin: pluginConfiguration, root, name, pluginPath, shouldRegisterTSTranspiler, }) => {
|
|
41
|
+
loadErrorTimeout?.clear();
|
|
42
|
+
process.chdir(root);
|
|
43
|
+
try {
|
|
44
|
+
const { loadResolvedNxPluginAsync } = await Promise.resolve().then(() => require('../load-resolved-plugin'));
|
|
45
|
+
// Register the ts-transpiler if we are pointing to a
|
|
46
|
+
// plain ts file that's not part of a plugin project
|
|
47
|
+
if (shouldRegisterTSTranspiler) {
|
|
48
|
+
require('../transpiler').registerPluginTSTranspiler();
|
|
49
|
+
}
|
|
50
|
+
plugin = await loadResolvedNxPluginAsync(pluginConfiguration, pluginPath, name);
|
|
51
|
+
logger_1.logger.verbose(`[plugin-worker] "${name}" (pid: ${process.pid}) loaded successfully`);
|
|
52
|
+
return {
|
|
53
|
+
name: plugin.name,
|
|
54
|
+
include: plugin.include,
|
|
55
|
+
exclude: plugin.exclude,
|
|
56
|
+
createNodesPattern: plugin.createNodes?.[0],
|
|
57
|
+
hasCreateDependencies: 'createDependencies' in plugin && !!plugin.createDependencies,
|
|
58
|
+
hasProcessProjectGraph: 'processProjectGraph' in plugin && !!plugin.processProjectGraph,
|
|
59
|
+
hasCreateMetadata: 'createMetadata' in plugin && !!plugin.createMetadata,
|
|
60
|
+
hasPreTasksExecution: 'preTasksExecution' in plugin && !!plugin.preTasksExecution,
|
|
61
|
+
hasPostTasksExecution: 'postTasksExecution' in plugin && !!plugin.postTasksExecution,
|
|
62
|
+
success: true,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
catch (e) {
|
|
66
|
+
return {
|
|
67
|
+
success: false,
|
|
68
|
+
error: (0, serializable_error_1.createSerializableError)(e),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
createNodes: async function createNodes({ configFiles, context }) {
|
|
73
|
+
try {
|
|
74
|
+
const result = await plugin.createNodes[1](configFiles, context);
|
|
75
|
+
return { result, success: true };
|
|
76
|
+
}
|
|
77
|
+
catch (e) {
|
|
78
|
+
return {
|
|
79
|
+
success: false,
|
|
80
|
+
error: (0, serializable_error_1.createSerializableError)(e),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
createDependencies: async function createDependencies({ context }) {
|
|
85
|
+
try {
|
|
86
|
+
const result = await plugin.createDependencies(context);
|
|
87
|
+
return { dependencies: result, success: true };
|
|
88
|
+
}
|
|
89
|
+
catch (e) {
|
|
90
|
+
return {
|
|
91
|
+
success: false,
|
|
92
|
+
error: (0, serializable_error_1.createSerializableError)(e),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
createMetadata: async function createMetadata({ graph, context }) {
|
|
97
|
+
try {
|
|
98
|
+
const result = await plugin.createMetadata(graph, context);
|
|
99
|
+
return { metadata: result, success: true };
|
|
100
|
+
}
|
|
101
|
+
catch (e) {
|
|
102
|
+
return {
|
|
103
|
+
success: false,
|
|
104
|
+
error: (0, serializable_error_1.createSerializableError)(e),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
preTasksExecution: async ({ context }) => {
|
|
109
|
+
try {
|
|
110
|
+
const mutations = await plugin.preTasksExecution?.(context);
|
|
111
|
+
return { success: true, mutations };
|
|
112
|
+
}
|
|
113
|
+
catch (e) {
|
|
114
|
+
return {
|
|
115
|
+
success: false,
|
|
116
|
+
error: (0, serializable_error_1.createSerializableError)(e),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
postTasksExecution: async ({ context }) => {
|
|
121
|
+
try {
|
|
122
|
+
await plugin.postTasksExecution?.(context);
|
|
123
|
+
return { success: true };
|
|
124
|
+
}
|
|
125
|
+
catch (e) {
|
|
126
|
+
return {
|
|
127
|
+
success: false,
|
|
128
|
+
error: (0, serializable_error_1.createSerializableError)(e),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
}));
|
|
134
|
+
// There should only ever be one host -> worker connection
|
|
135
|
+
// since the worker is spawned per host process. As such,
|
|
136
|
+
// we can safely close the worker when the host disconnects.
|
|
137
|
+
socket.on('end', () => {
|
|
138
|
+
// Destroys the socket once it's fully closed.
|
|
139
|
+
socket.destroySoon();
|
|
140
|
+
// Stops accepting new connections, but existing connections are
|
|
141
|
+
// not closed immediately.
|
|
142
|
+
server.close(() => {
|
|
143
|
+
try {
|
|
144
|
+
(0, fs_1.unlinkSync)(socketPath);
|
|
145
|
+
}
|
|
146
|
+
catch (e) { }
|
|
147
|
+
process.exit(0);
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
server.listen(socketPath);
|
|
152
|
+
logger_1.logger.verbose(`[plugin-worker] "${expectedPluginName}" (pid: ${process.pid}) listening on ${socketPath}`);
|
|
153
|
+
function setErrorTimeout(timeoutMs, errorMessage) {
|
|
154
|
+
if (environment.NX_PLUGIN_NO_TIMEOUTS === 'true') {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
let cleared = false;
|
|
158
|
+
const timeout = setTimeout(() => {
|
|
159
|
+
if (!cleared) {
|
|
160
|
+
console.error(errorMessage);
|
|
161
|
+
process.exit(1);
|
|
162
|
+
}
|
|
163
|
+
}, timeoutMs).unref();
|
|
164
|
+
return {
|
|
165
|
+
clear: () => {
|
|
166
|
+
cleared = true;
|
|
167
|
+
clearTimeout(timeout);
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
const exitHandler = (exitCode) => () => {
|
|
172
|
+
server.close();
|
|
173
|
+
try {
|
|
174
|
+
(0, fs_1.unlinkSync)(socketPath);
|
|
175
|
+
}
|
|
176
|
+
catch (e) { }
|
|
177
|
+
process.exit(exitCode);
|
|
178
|
+
};
|
|
179
|
+
const events = ['SIGINT', 'SIGTERM', 'SIGQUIT', 'exit'];
|
|
180
|
+
events.forEach((event) => process.once(event, exitHandler(0)));
|
|
181
|
+
process.once('uncaughtException', exitHandler(1));
|
|
182
|
+
process.once('unhandledRejection', exitHandler(1));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PluginConfiguration } from '../../config/nx-json';
|
|
2
|
+
import { LoadedNxPlugin } from './loaded-nx-plugin';
|
|
3
|
+
export declare function loadResolvedNxPluginAsync(pluginConfiguration: PluginConfiguration, pluginPath: string, name: string, index?: number): Promise<LoadedNxPlugin>;
|
|
4
|
+
//# sourceMappingURL=load-resolved-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-resolved-plugin.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/project-graph/plugins/load-resolved-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,wBAAsB,yBAAyB,CAC7C,mBAAmB,EAAE,mBAAmB,EACxC,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,MAAM,2BAKf"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadResolvedNxPluginAsync = loadResolvedNxPluginAsync;
|
|
4
|
+
const loaded_nx_plugin_1 = require("./loaded-nx-plugin");
|
|
5
|
+
async function loadResolvedNxPluginAsync(pluginConfiguration, pluginPath, name, index) {
|
|
6
|
+
const plugin = await importPluginModule(pluginPath);
|
|
7
|
+
plugin.name ??= name;
|
|
8
|
+
return new loaded_nx_plugin_1.LoadedNxPlugin(plugin, pluginConfiguration, index);
|
|
9
|
+
}
|
|
10
|
+
async function importPluginModule(pluginPath) {
|
|
11
|
+
const m = await Promise.resolve(`${pluginPath}`).then(s => require(s));
|
|
12
|
+
if (m.default &&
|
|
13
|
+
('createNodes' in m.default ||
|
|
14
|
+
'createNodesV2' in m.default ||
|
|
15
|
+
'createDependencies' in m.default ||
|
|
16
|
+
'createMetadata' in m.default ||
|
|
17
|
+
'preTasksExecution' in m.default ||
|
|
18
|
+
'postTasksExecution' in m.default)) {
|
|
19
|
+
return m.default;
|
|
20
|
+
}
|
|
21
|
+
return m;
|
|
22
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ProjectGraph } from '../../config/project-graph';
|
|
2
|
+
import { type PluginConfiguration } from '../../config/nx-json';
|
|
3
|
+
import type { RawProjectGraphDependency } from '../project-graph-builder';
|
|
4
|
+
import type { CreateDependenciesContext, CreateMetadataContext, CreateNodesContextV2, CreateNodesResult, NxPluginV2, PostTasksExecutionContext, PreTasksExecutionContext, ProjectsMetadata } from './public-api';
|
|
5
|
+
/**
|
|
6
|
+
* NOTE: Avoid using `import type` with this class. It causes issues with
|
|
7
|
+
* jest's module resolution when running tests in projects that import
|
|
8
|
+
* the devkit-internals
|
|
9
|
+
*/
|
|
10
|
+
export declare class LoadedNxPlugin {
|
|
11
|
+
readonly index?: number;
|
|
12
|
+
readonly name: string;
|
|
13
|
+
readonly createNodes?: [
|
|
14
|
+
filePattern: string,
|
|
15
|
+
fn: (matchedFiles: string[], context: CreateNodesContextV2) => Promise<Array<readonly [plugin: string, file: string, result: CreateNodesResult]>>
|
|
16
|
+
];
|
|
17
|
+
readonly createDependencies?: (context: CreateDependenciesContext) => Promise<RawProjectGraphDependency[]>;
|
|
18
|
+
readonly createMetadata?: (graph: ProjectGraph, context: CreateMetadataContext) => Promise<ProjectsMetadata>;
|
|
19
|
+
readonly preTasksExecution?: (context: PreTasksExecutionContext) => Promise<NodeJS.ProcessEnv>;
|
|
20
|
+
readonly postTasksExecution?: (context: PostTasksExecutionContext) => Promise<void>;
|
|
21
|
+
readonly options?: unknown;
|
|
22
|
+
readonly include?: string[];
|
|
23
|
+
readonly exclude?: string[];
|
|
24
|
+
constructor(plugin: NxPluginV2, pluginDefinition: PluginConfiguration, index?: number);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=loaded-nx-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loaded-nx-plugin.d.ts","sourceRoot":"","sources":["../../../../../../packages/nx/src/project-graph/plugins/loaded-nx-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAKhE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,yBAAyB,EACzB,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAItB;;;;GAIG;AACH,qBAAa,cAAc;aAkCP,KAAK,CAAC,EAAE,MAAM;IAjChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,CAAC,EAAE;QACrB,WAAW,EAAE,MAAM;QAGnB,EAAE,EAAE,CACF,YAAY,EAAE,MAAM,EAAE,EACtB,OAAO,EAAE,oBAAoB,KAC1B,OAAO,CACV,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAC1E;KACF,CAAC;IACF,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAC5B,OAAO,EAAE,yBAAyB,KAC/B,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAAC;IAC1C,QAAQ,CAAC,cAAc,CAAC,EAAE,CACxB,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,qBAAqB,KAC3B,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC/B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAC3B,OAAO,EAAE,wBAAwB,KAC9B,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAChC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAC5B,OAAO,EAAE,yBAAyB,KAC/B,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;gBAG1B,MAAM,EAAE,UAAU,EAClB,gBAAgB,EAAE,mBAAmB,EACrB,KAAK,CAAC,EAAE,MAAM;CAwFjC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LoadedNxPlugin = void 0;
|
|
4
|
+
const error_types_1 = require("../error-types");
|
|
5
|
+
const enabled_1 = require("./isolation/enabled");
|
|
6
|
+
const client_1 = require("../../daemon/client/client");
|
|
7
|
+
/**
|
|
8
|
+
* NOTE: Avoid using `import type` with this class. It causes issues with
|
|
9
|
+
* jest's module resolution when running tests in projects that import
|
|
10
|
+
* the devkit-internals
|
|
11
|
+
*/
|
|
12
|
+
class LoadedNxPlugin {
|
|
13
|
+
constructor(plugin, pluginDefinition, index) {
|
|
14
|
+
this.index = index;
|
|
15
|
+
this.name = plugin.name;
|
|
16
|
+
if (typeof pluginDefinition !== 'string') {
|
|
17
|
+
this.options = pluginDefinition.options;
|
|
18
|
+
this.include = pluginDefinition.include;
|
|
19
|
+
this.exclude = pluginDefinition.exclude;
|
|
20
|
+
}
|
|
21
|
+
const createNodesV2Impl = plugin.createNodesV2 ?? plugin.createNodes;
|
|
22
|
+
if (createNodesV2Impl) {
|
|
23
|
+
this.createNodes = [
|
|
24
|
+
createNodesV2Impl[0],
|
|
25
|
+
async (configFiles, context) => {
|
|
26
|
+
const result = await createNodesV2Impl[1](configFiles, this.options, context);
|
|
27
|
+
return result.map((r) => [this.name, r[0], r[1]]);
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Wraps the plugin-provided createNodes function to provide performance
|
|
33
|
+
* measurement and error handling.
|
|
34
|
+
*/
|
|
35
|
+
if (this.createNodes) {
|
|
36
|
+
const inner = this.createNodes[1];
|
|
37
|
+
this.createNodes[1] = async (...args) => {
|
|
38
|
+
performance.mark(`${plugin.name}:createNodes - start`);
|
|
39
|
+
try {
|
|
40
|
+
return await inner(...args);
|
|
41
|
+
}
|
|
42
|
+
catch (e) {
|
|
43
|
+
if ((0, error_types_1.isAggregateCreateNodesError)(e)) {
|
|
44
|
+
throw e;
|
|
45
|
+
}
|
|
46
|
+
// The underlying plugin errored out. We can't know any partial results.
|
|
47
|
+
throw new error_types_1.AggregateCreateNodesError([[null, e]], []);
|
|
48
|
+
}
|
|
49
|
+
finally {
|
|
50
|
+
performance.mark(`${plugin.name}:createNodes - end`);
|
|
51
|
+
performance.measure(`${plugin.name}:createNodes`, `${plugin.name}:createNodes - start`, `${plugin.name}:createNodes - end`);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
if (plugin.createDependencies) {
|
|
56
|
+
this.createDependencies = async (context) => plugin.createDependencies(this.options, context);
|
|
57
|
+
}
|
|
58
|
+
if (plugin.createMetadata) {
|
|
59
|
+
this.createMetadata = async (graph, context) => plugin.createMetadata(graph, this.options, context);
|
|
60
|
+
}
|
|
61
|
+
if (plugin.preTasksExecution) {
|
|
62
|
+
this.preTasksExecution = async (context) => {
|
|
63
|
+
const updates = {};
|
|
64
|
+
let originalEnv = process.env;
|
|
65
|
+
if ((0, enabled_1.isIsolationEnabled)() || (0, client_1.isDaemonEnabled)()) {
|
|
66
|
+
process.env = new Proxy(originalEnv, {
|
|
67
|
+
set: (target, key, value) => {
|
|
68
|
+
target[key] = value;
|
|
69
|
+
updates[key] = value;
|
|
70
|
+
return true;
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
await plugin.preTasksExecution(this.options, context);
|
|
75
|
+
// This doesn't revert env changes, as the proxy still updates
|
|
76
|
+
// originalEnv, rather it removes the proxy.
|
|
77
|
+
process.env = originalEnv;
|
|
78
|
+
return updates;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
if (plugin.postTasksExecution) {
|
|
82
|
+
this.postTasksExecution = async (context) => plugin.postTasksExecution(this.options, context);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.LoadedNxPlugin = LoadedNxPlugin;
|