@depup/nx 22.5.4-depup.1 → 22.6.1-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 +0 -2
- package/README.md +2 -2
- package/bin/init-local.d.ts.map +1 -1
- package/bin/init-local.js +2 -0
- package/bin/nx.d.ts +1 -1
- package/bin/nx.d.ts.map +1 -1
- package/bin/nx.js +20 -4
- package/changes.json +1 -1
- package/migrations.json +18 -0
- package/package.json +23 -25
- package/plugins/package-json.d.ts +2 -3
- package/plugins/package-json.d.ts.map +1 -1
- package/plugins/package-json.js +9 -9
- package/schemas/nx-schema.json +9 -0
- package/schemas/project-schema.json +5 -0
- package/src/adapter/compat.d.ts +1 -1
- package/src/adapter/compat.d.ts.map +1 -1
- package/src/adapter/compat.js +1 -0
- package/src/adapter/ngcli-adapter.d.ts +8 -5
- package/src/adapter/ngcli-adapter.d.ts.map +1 -1
- package/src/adapter/ngcli-adapter.js +29 -15
- package/src/ai/clone-ai-config-repo.d.ts.map +1 -1
- package/src/ai/clone-ai-config-repo.js +2 -0
- package/src/ai/constants.d.ts +1 -1
- package/src/ai/constants.d.ts.map +1 -1
- package/src/ai/constants.js +5 -3
- package/src/ai/detect-ai-agent.d.ts +3 -0
- package/src/ai/detect-ai-agent.d.ts.map +1 -0
- package/src/ai/detect-ai-agent.js +12 -0
- package/src/ai/set-up-ai-agents/set-up-ai-agents.d.ts.map +1 -1
- package/src/ai/set-up-ai-agents/set-up-ai-agents.js +155 -47
- package/src/ai/utils.d.ts.map +1 -1
- package/src/ai/utils.js +10 -9
- package/src/analytics/analytics.d.ts +11 -0
- package/src/analytics/analytics.d.ts.map +1 -0
- package/src/analytics/analytics.js +226 -0
- package/src/analytics/index.d.ts +2 -0
- package/src/analytics/index.d.ts.map +1 -0
- package/src/analytics/index.js +11 -0
- package/src/command-line/add/add.d.ts.map +1 -1
- package/src/command-line/add/add.js +3 -1
- package/src/command-line/ai/ai-output.d.ts +47 -0
- package/src/command-line/ai/ai-output.d.ts.map +1 -0
- package/src/command-line/ai/ai-output.js +86 -0
- package/src/command-line/configure-ai-agents/configure-ai-agents.d.ts.map +1 -1
- package/src/command-line/configure-ai-agents/configure-ai-agents.js +111 -9
- package/src/command-line/examples.d.ts +7 -0
- package/src/command-line/examples.d.ts.map +1 -1
- package/src/command-line/examples.js +29 -1
- package/src/command-line/exec/exec.js +3 -3
- package/src/command-line/format/format.js +3 -3
- package/src/command-line/generate/generate.d.ts.map +1 -1
- package/src/command-line/generate/generate.js +3 -1
- package/src/command-line/graph/graph.js +1 -1
- package/src/command-line/import/command-object.d.ts.map +1 -1
- package/src/command-line/import/command-object.js +20 -2
- package/src/command-line/import/import.d.ts +1 -0
- package/src/command-line/import/import.d.ts.map +1 -1
- package/src/command-line/import/import.js +264 -40
- package/src/command-line/import/utils/ai-output.d.ts +94 -0
- package/src/command-line/import/utils/ai-output.d.ts.map +1 -0
- package/src/command-line/import/utils/ai-output.js +209 -0
- package/src/command-line/init/ai-agent-prompts.d.ts.map +1 -1
- package/src/command-line/init/ai-agent-prompts.js +6 -1
- package/src/command-line/init/command-object.d.ts.map +1 -1
- package/src/command-line/init/command-object.js +35 -25
- package/src/command-line/init/configure-plugins.js +1 -1
- package/src/command-line/init/implementation/angular/integrated-workspace.js +1 -1
- package/src/command-line/init/implementation/angular/legacy-angular-versions.js +2 -2
- package/src/command-line/init/implementation/deduce-default-base.js +5 -5
- package/src/command-line/init/implementation/dot-nx/add-nx-scripts.js +2 -2
- package/src/command-line/init/implementation/dot-nx/nxw.js +9 -3
- package/src/command-line/init/implementation/utils.d.ts +1 -2
- package/src/command-line/init/implementation/utils.d.ts.map +1 -1
- package/src/command-line/init/implementation/utils.js +1 -15
- package/src/command-line/init/init-v1.d.ts +0 -3
- package/src/command-line/init/init-v1.d.ts.map +1 -1
- package/src/command-line/init/init-v1.js +1 -27
- package/src/command-line/init/init-v2.d.ts +7 -1
- package/src/command-line/init/init-v2.d.ts.map +1 -1
- package/src/command-line/init/init-v2.js +178 -38
- package/src/command-line/init/utils/ai-output.d.ts +73 -0
- package/src/command-line/init/utils/ai-output.d.ts.map +1 -0
- package/src/command-line/init/utils/ai-output.js +180 -0
- package/src/command-line/mcp/mcp.d.ts.map +1 -1
- package/src/command-line/mcp/mcp.js +2 -0
- package/src/command-line/migrate/migrate-ui-api.d.ts.map +1 -1
- package/src/command-line/migrate/migrate-ui-api.js +13 -0
- package/src/command-line/migrate/migrate.d.ts.map +1 -1
- package/src/command-line/migrate/migrate.js +20 -28
- package/src/command-line/migrate/run-migration-process.js +2 -0
- package/src/command-line/nx-cloud/connect/view-logs.js +1 -1
- package/src/command-line/nx-cloud/download-cloud-client/download-cloud-client.d.ts.map +1 -1
- package/src/command-line/nx-cloud/download-cloud-client/download-cloud-client.js +12 -6
- package/src/command-line/nx-cloud/login/login.d.ts.map +1 -1
- package/src/command-line/nx-cloud/login/login.js +0 -6
- package/src/command-line/nx-cloud/logout/logout.d.ts.map +1 -1
- package/src/command-line/nx-cloud/logout/logout.js +0 -6
- package/src/command-line/nx-cloud/polygraph/command-object.d.ts +3 -0
- package/src/command-line/nx-cloud/polygraph/command-object.d.ts.map +1 -0
- package/src/command-line/nx-cloud/polygraph/command-object.js +15 -0
- package/src/command-line/nx-cloud/polygraph/polygraph.d.ts +5 -0
- package/src/command-line/nx-cloud/polygraph/polygraph.d.ts.map +1 -0
- package/src/command-line/nx-cloud/polygraph/polygraph.js +7 -0
- package/src/command-line/nx-cloud/utils.d.ts.map +1 -1
- package/src/command-line/nx-cloud/utils.js +9 -2
- package/src/command-line/nx-commands.d.ts.map +1 -1
- package/src/command-line/nx-commands.js +76 -65
- package/src/command-line/release/changelog.d.ts.map +1 -1
- package/src/command-line/release/changelog.js +2 -2
- package/src/command-line/release/command-object.d.ts +1 -0
- package/src/command-line/release/command-object.d.ts.map +1 -1
- package/src/command-line/release/command-object.js +4 -0
- package/src/command-line/release/config/version-plans.js +1 -1
- package/src/command-line/release/publish.d.ts.map +1 -1
- package/src/command-line/release/publish.js +56 -0
- package/src/command-line/release/utils/exec-command.js +1 -1
- package/src/command-line/release/utils/launch-editor.js +2 -2
- package/src/command-line/release/utils/remote-release-clients/github.d.ts.map +1 -1
- package/src/command-line/release/utils/remote-release-clients/github.js +2 -1
- package/src/command-line/release/utils/remote-release-clients/gitlab.d.ts.map +1 -1
- package/src/command-line/release/utils/remote-release-clients/gitlab.js +1 -0
- package/src/command-line/release/utils/semver.d.ts.map +1 -1
- package/src/command-line/release/utils/semver.js +6 -0
- package/src/command-line/release/utils/shared.d.ts.map +1 -1
- package/src/command-line/release/utils/shared.js +14 -4
- package/src/command-line/release/version/release-group-processor.d.ts.map +1 -1
- package/src/command-line/release/version/release-group-processor.js +2 -4
- package/src/command-line/release/version.js +1 -1
- package/src/command-line/run/executor-utils.d.ts.map +1 -1
- package/src/command-line/run/executor-utils.js +1 -0
- package/src/command-line/run/run.d.ts.map +1 -1
- package/src/command-line/run/run.js +2 -2
- package/src/command-line/show/command-object.d.ts +15 -1
- package/src/command-line/show/command-object.d.ts.map +1 -1
- package/src/command-line/show/command-object.js +122 -2
- package/src/command-line/show/target.d.ts +5 -0
- package/src/command-line/show/target.d.ts.map +1 -0
- package/src/command-line/show/target.js +726 -0
- package/src/command-line/watch/watch.js +1 -1
- package/src/command-line/yargs-utils/shared-options.d.ts +3 -0
- package/src/command-line/yargs-utils/shared-options.d.ts.map +1 -1
- package/src/command-line/yargs-utils/shared-options.js +36 -3
- package/src/config/misc-interfaces.d.ts +2 -0
- package/src/config/misc-interfaces.d.ts.map +1 -1
- package/src/config/nx-json.d.ts +4 -0
- package/src/config/nx-json.d.ts.map +1 -1
- package/src/config/workspace-json-project-json.d.ts +3 -0
- package/src/config/workspace-json-project-json.d.ts.map +1 -1
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.css +1 -1
- package/src/daemon/client/client.d.ts +6 -1
- package/src/daemon/client/client.d.ts.map +1 -1
- package/src/daemon/client/client.js +16 -2
- package/src/daemon/client/generate-help-output.js +1 -1
- package/src/daemon/message-types/configure-ai-agents.d.ts +21 -0
- package/src/daemon/message-types/configure-ai-agents.d.ts.map +1 -0
- package/src/daemon/message-types/configure-ai-agents.js +19 -0
- package/src/daemon/server/handle-configure-ai-agents.d.ts +4 -0
- package/src/daemon/server/handle-configure-ai-agents.d.ts.map +1 -0
- package/src/daemon/server/handle-configure-ai-agents.js +101 -0
- package/src/daemon/server/handle-hash-tasks.d.ts +1 -0
- package/src/daemon/server/handle-hash-tasks.d.ts.map +1 -1
- package/src/daemon/server/handle-hash-tasks.js +1 -1
- package/src/daemon/server/latest-nx.d.ts +11 -0
- package/src/daemon/server/latest-nx.d.ts.map +1 -0
- package/src/daemon/server/latest-nx.js +49 -0
- package/src/daemon/server/nx-console-operations.d.ts +0 -4
- package/src/daemon/server/nx-console-operations.d.ts.map +1 -1
- package/src/daemon/server/nx-console-operations.js +9 -48
- package/src/daemon/server/project-graph-incremental-recomputation.d.ts +1 -0
- package/src/daemon/server/project-graph-incremental-recomputation.d.ts.map +1 -1
- package/src/daemon/server/project-graph-incremental-recomputation.js +13 -1
- package/src/daemon/server/server.d.ts +1 -0
- package/src/daemon/server/server.d.ts.map +1 -1
- package/src/daemon/server/server.js +16 -9
- package/src/daemon/server/shutdown-utils.d.ts.map +1 -1
- package/src/daemon/server/shutdown-utils.js +7 -4
- package/src/devkit-internals.d.ts +1 -0
- package/src/devkit-internals.d.ts.map +1 -1
- package/src/devkit-internals.js +4 -1
- package/src/executors/run-commands/run-commands.impl.d.ts.map +1 -1
- package/src/executors/run-commands/run-commands.impl.js +60 -7
- package/src/executors/run-commands/running-tasks.d.ts.map +1 -1
- package/src/executors/run-commands/running-tasks.js +8 -6
- package/src/executors/run-script/run-script.impl.js +1 -1
- package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.d.ts +5 -0
- package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.d.ts.map +1 -1
- package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.js +12 -0
- package/src/hasher/hash-plan-inspector.d.ts +11 -3
- package/src/hasher/hash-plan-inspector.d.ts.map +1 -1
- package/src/hasher/hash-plan-inspector.js +19 -3
- package/src/hasher/hash-task.d.ts +1 -1
- package/src/hasher/hash-task.d.ts.map +1 -1
- package/src/hasher/hash-task.js +10 -7
- package/src/hasher/native-task-hasher-impl.d.ts +2 -2
- package/src/hasher/native-task-hasher-impl.d.ts.map +1 -1
- package/src/hasher/native-task-hasher-impl.js +7 -4
- package/src/hasher/task-hasher.d.ts +26 -4
- package/src/hasher/task-hasher.d.ts.map +1 -1
- package/src/hasher/task-hasher.js +44 -16
- package/src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore.d.ts +3 -0
- package/src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore.d.ts.map +1 -0
- package/src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore.js +16 -0
- package/src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore.d.ts +3 -0
- package/src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore.d.ts.map +1 -0
- package/src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore.js +16 -0
- package/src/migrations/update-22-6-0/enable-analytics-prompt.d.ts +3 -0
- package/src/migrations/update-22-6-0/enable-analytics-prompt.d.ts.map +1 -0
- package/src/migrations/update-22-6-0/enable-analytics-prompt.js +23 -0
- package/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.d.ts +1 -1
- package/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.d.ts.map +1 -1
- package/src/migrations/update-22-7-0/add-polygraph-to-git-ignore.js +3 -1
- package/src/native/index.d.ts +619 -0
- package/src/native/native-bindings.js +338 -116
- package/src/native/nx.wasi.cjs +45 -55
- package/src/native/nx.wasm32-wasi.debug.wasm +0 -0
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +1 -1
- package/src/nx-cloud/update-manager.d.ts +4 -1
- package/src/nx-cloud/update-manager.d.ts.map +1 -1
- package/src/nx-cloud/update-manager.js +19 -6
- package/src/nx-cloud/utilities/axios.d.ts +4 -2
- package/src/nx-cloud/utilities/axios.d.ts.map +1 -1
- package/src/nx-cloud/utilities/axios.js +2 -9
- package/src/plugins/js/index.d.ts.map +1 -1
- package/src/plugins/js/index.js +42 -6
- package/src/plugins/js/lock-file/bun-parser.js +1 -1
- package/src/plugins/js/lock-file/lock-file.d.ts.map +1 -1
- package/src/plugins/js/lock-file/lock-file.js +3 -1
- package/src/plugins/js/lock-file/utils/pnpm-normalizer.js +1 -0
- package/src/plugins/package-json/create-nodes.js +2 -2
- package/src/project-graph/build-project-graph.js +5 -1
- package/src/project-graph/file-utils.d.ts.map +1 -1
- package/src/project-graph/file-utils.js +4 -2
- package/src/project-graph/nx-deps-cache.d.ts +1 -1
- package/src/project-graph/nx-deps-cache.d.ts.map +1 -1
- package/src/project-graph/nx-deps-cache.js +17 -3
- package/src/project-graph/plugins/isolation/isolated-plugin.d.ts +2 -0
- package/src/project-graph/plugins/isolation/isolated-plugin.d.ts.map +1 -1
- package/src/project-graph/plugins/isolation/isolated-plugin.js +5 -0
- package/src/project-graph/plugins/isolation/plugin-lifecycle-manager.d.ts +18 -0
- package/src/project-graph/plugins/isolation/plugin-lifecycle-manager.d.ts.map +1 -1
- package/src/project-graph/plugins/isolation/plugin-lifecycle-manager.js +39 -0
- package/src/project-graph/plugins/isolation/plugin-worker.d.ts +1 -1
- package/src/project-graph/plugins/isolation/plugin-worker.d.ts.map +1 -1
- package/src/project-graph/plugins/isolation/plugin-worker.js +3 -3
- package/src/project-graph/plugins/loaded-nx-plugin.d.ts +10 -0
- package/src/project-graph/plugins/loaded-nx-plugin.d.ts.map +1 -1
- package/src/project-graph/plugins/loaded-nx-plugin.js +17 -2
- package/src/project-graph/project-graph.d.ts.map +1 -1
- package/src/project-graph/project-graph.js +58 -15
- package/src/project-graph/utils/project-configuration/name-substitution-manager.d.ts +70 -0
- package/src/project-graph/utils/project-configuration/name-substitution-manager.d.ts.map +1 -0
- package/src/project-graph/utils/project-configuration/name-substitution-manager.js +427 -0
- package/src/project-graph/utils/project-configuration/source-maps.d.ts +70 -0
- package/src/project-graph/utils/project-configuration/source-maps.d.ts.map +1 -0
- package/src/project-graph/utils/project-configuration/source-maps.js +94 -0
- package/src/project-graph/utils/project-configuration-utils.d.ts +5 -3
- package/src/project-graph/utils/project-configuration-utils.d.ts.map +1 -1
- package/src/project-graph/utils/project-configuration-utils.js +55 -38
- package/src/tasks-runner/cache.d.ts +0 -2
- package/src/tasks-runner/cache.d.ts.map +1 -1
- package/src/tasks-runner/cache.js +4 -19
- package/src/tasks-runner/forked-process-task-runner.d.ts.map +1 -1
- package/src/tasks-runner/forked-process-task-runner.js +1 -19
- package/src/tasks-runner/life-cycle.d.ts +2 -0
- package/src/tasks-runner/life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycle.js +7 -0
- package/src/tasks-runner/life-cycles/task-history-life-cycle-old.d.ts +1 -2
- package/src/tasks-runner/life-cycles/task-history-life-cycle-old.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/task-history-life-cycle-old.js +13 -12
- package/src/tasks-runner/life-cycles/task-history-life-cycle.d.ts +1 -0
- package/src/tasks-runner/life-cycles/task-history-life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/task-history-life-cycle.js +10 -5
- package/src/tasks-runner/life-cycles/task-telemetry-life-cycle.d.ts +10 -0
- package/src/tasks-runner/life-cycles/task-telemetry-life-cycle.d.ts.map +1 -0
- package/src/tasks-runner/life-cycles/task-telemetry-life-cycle.js +42 -0
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.d.ts.map +1 -1
- package/src/tasks-runner/life-cycles/tui-summary-life-cycle.js +32 -23
- package/src/tasks-runner/pseudo-terminal.js +1 -22
- package/src/tasks-runner/run-command.d.ts.map +1 -1
- package/src/tasks-runner/run-command.js +24 -18
- package/src/tasks-runner/running-tasks/node-child-process.d.ts.map +1 -1
- package/src/tasks-runner/running-tasks/node-child-process.js +6 -37
- package/src/tasks-runner/running-tasks/output-prefix.d.ts +14 -0
- package/src/tasks-runner/running-tasks/output-prefix.d.ts.map +1 -0
- package/src/tasks-runner/running-tasks/output-prefix.js +62 -0
- package/src/tasks-runner/task-graph-utils.d.ts +5 -0
- package/src/tasks-runner/task-graph-utils.d.ts.map +1 -1
- package/src/tasks-runner/task-graph-utils.js +28 -0
- package/src/tasks-runner/task-io-service.d.ts +10 -10
- package/src/tasks-runner/task-io-service.d.ts.map +1 -1
- package/src/tasks-runner/task-io-service.js +14 -38
- package/src/tasks-runner/task-orchestrator.d.ts +29 -4
- package/src/tasks-runner/task-orchestrator.d.ts.map +1 -1
- package/src/tasks-runner/task-orchestrator.js +403 -172
- package/src/tasks-runner/tasks-runner.d.ts +1 -1
- package/src/tasks-runner/tasks-runner.d.ts.map +1 -1
- package/src/tasks-runner/tasks-schedule.d.ts.map +1 -1
- package/src/tasks-runner/tasks-schedule.js +13 -2
- package/src/tasks-runner/utils.d.ts.map +1 -1
- package/src/tasks-runner/utils.js +1 -2
- package/src/utils/ab-testing.js +1 -1
- package/src/utils/analytics-prompt.d.ts +13 -0
- package/src/utils/analytics-prompt.d.ts.map +1 -0
- package/src/utils/analytics-prompt.js +137 -0
- package/src/utils/catalog/manager-factory.d.ts.map +1 -1
- package/src/utils/catalog/manager-factory.js +3 -0
- package/src/utils/catalog/manager.d.ts +4 -4
- package/src/utils/catalog/manager.d.ts.map +1 -1
- package/src/utils/catalog/manager.js +11 -0
- package/src/utils/catalog/pnpm-manager.d.ts +3 -4
- package/src/utils/catalog/pnpm-manager.d.ts.map +1 -1
- package/src/utils/catalog/pnpm-manager.js +57 -68
- package/src/utils/catalog/types.d.ts +7 -0
- package/src/utils/catalog/types.d.ts.map +1 -1
- package/src/utils/catalog/yarn-manager.d.ts +22 -0
- package/src/utils/catalog/yarn-manager.d.ts.map +1 -0
- package/src/utils/catalog/yarn-manager.js +249 -0
- package/src/utils/child-process.d.ts.map +1 -1
- package/src/utils/child-process.js +3 -24
- package/src/utils/command-line-utils.js +3 -3
- package/src/utils/default-base.js +1 -1
- package/src/utils/exit-codes.d.ts +6 -0
- package/src/utils/exit-codes.d.ts.map +1 -1
- package/src/utils/exit-codes.js +40 -0
- package/src/utils/git-utils.d.ts.map +1 -1
- package/src/utils/git-utils.index-filter.js +2 -2
- package/src/utils/git-utils.js +6 -5
- package/src/utils/git-utils.tree-filter.js +1 -1
- package/src/utils/machine-id-cache.d.ts +6 -0
- package/src/utils/machine-id-cache.d.ts.map +1 -0
- package/src/utils/machine-id-cache.js +93 -0
- package/src/utils/nx-console-prompt.js +2 -2
- package/src/utils/output.d.ts +1 -0
- package/src/utils/output.d.ts.map +1 -1
- package/src/utils/output.js +4 -0
- package/src/utils/package-manager.d.ts.map +1 -1
- package/src/utils/package-manager.js +11 -14
- package/src/utils/params.d.ts +4 -1
- package/src/utils/params.d.ts.map +1 -1
- package/src/utils/params.js +30 -3
- package/src/utils/perf-hooks.d.ts +19 -0
- package/src/utils/perf-logging.js +34 -2
- package/src/utils/plugin-cache-utils.d.ts +74 -0
- package/src/utils/plugin-cache-utils.d.ts.map +1 -0
- package/src/utils/plugin-cache-utils.js +202 -0
- package/src/utils/require-nx-key.js +1 -1
- package/src/utils/serialize-overrides-into-command-line.d.ts.map +1 -1
- package/src/utils/serialize-overrides-into-command-line.js +3 -4
- package/src/utils/shell-quoting.d.ts +11 -0
- package/src/utils/shell-quoting.d.ts.map +1 -0
- package/src/utils/shell-quoting.js +41 -0
- package/src/utils/split-target.d.ts +2 -1
- package/src/utils/split-target.d.ts.map +1 -1
- package/src/utils/split-target.js +11 -9
- package/src/utils/write-formatted-json-file.d.ts +7 -0
- package/src/utils/write-formatted-json-file.d.ts.map +1 -0
- package/src/utils/write-formatted-json-file.js +23 -0
- package/src/command-line/init/implementation/react/add-craco-commands-to-package-scripts.d.ts +0 -2
- package/src/command-line/init/implementation/react/add-craco-commands-to-package-scripts.d.ts.map +0 -1
- package/src/command-line/init/implementation/react/add-craco-commands-to-package-scripts.js +0 -21
- package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.d.ts +0 -2
- package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.d.ts.map +0 -1
- package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.js +0 -20
- package/src/command-line/init/implementation/react/check-for-custom-webpack-setup.d.ts +0 -2
- package/src/command-line/init/implementation/react/check-for-custom-webpack-setup.d.ts.map +0 -1
- package/src/command-line/init/implementation/react/check-for-custom-webpack-setup.js +0 -17
- package/src/command-line/init/implementation/react/check-for-uncommitted-changes.d.ts +0 -2
- package/src/command-line/init/implementation/react/check-for-uncommitted-changes.d.ts.map +0 -1
- package/src/command-line/init/implementation/react/check-for-uncommitted-changes.js +0 -20
- package/src/command-line/init/implementation/react/clean-up-files.d.ts +0 -2
- package/src/command-line/init/implementation/react/clean-up-files.d.ts.map +0 -1
- package/src/command-line/init/implementation/react/clean-up-files.js +0 -30
- package/src/command-line/init/implementation/react/index.d.ts +0 -5
- package/src/command-line/init/implementation/react/index.d.ts.map +0 -1
- package/src/command-line/init/implementation/react/index.js +0 -77
- package/src/command-line/init/implementation/react/read-name-from-package-json.d.ts +0 -2
- package/src/command-line/init/implementation/react/read-name-from-package-json.d.ts.map +0 -1
- package/src/command-line/init/implementation/react/read-name-from-package-json.js +0 -16
- package/src/command-line/init/implementation/react/rename-js-to-jsx.d.ts +0 -2
- package/src/command-line/init/implementation/react/rename-js-to-jsx.d.ts.map +0 -1
- package/src/command-line/init/implementation/react/rename-js-to-jsx.js +0 -22
- package/src/command-line/init/implementation/react/tsconfig-setup.d.ts +0 -2
- package/src/command-line/init/implementation/react/tsconfig-setup.d.ts.map +0 -1
- package/src/command-line/init/implementation/react/tsconfig-setup.js +0 -108
- package/src/command-line/init/implementation/react/write-vite-config.d.ts +0 -2
- package/src/command-line/init/implementation/react/write-vite-config.d.ts.map +0 -1
- package/src/command-line/init/implementation/react/write-vite-config.js +0 -53
- package/src/command-line/init/implementation/react/write-vite-index-html.d.ts +0 -2
- package/src/command-line/init/implementation/react/write-vite-index-html.d.ts.map +0 -1
- package/src/command-line/init/implementation/react/write-vite-index-html.js +0 -24
package/.eslintrc.json
CHANGED
|
@@ -144,8 +144,6 @@
|
|
|
144
144
|
"@nx/conformance",
|
|
145
145
|
// Nx Docker plugin conditionally available dynamically at runtime
|
|
146
146
|
"@nx/docker",
|
|
147
|
-
// Only used in test-utils at the time of writing
|
|
148
|
-
"@ltd/j-toml",
|
|
149
147
|
// Used in WASI browser implementation (nx.wasi-browser.js)
|
|
150
148
|
"@napi-rs/wasm-runtime"
|
|
151
149
|
]
|
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/nx
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [nx](https://www.npmjs.com/package/nx) @ 22.
|
|
17
|
-
| Processed | 2026-03-
|
|
16
|
+
| Original | [nx](https://www.npmjs.com/package/nx) @ 22.6.1 |
|
|
17
|
+
| Processed | 2026-03-20 |
|
|
18
18
|
| Smoke test | failed |
|
|
19
19
|
| Deps updated | 29 |
|
|
20
20
|
|
package/bin/init-local.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-local.d.ts","sourceRoot":"","sources":["../../../../packages/nx/bin/init-local.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"init-local.d.ts","sourceRoot":"","sources":["../../../../packages/nx/bin/init-local.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAOxE;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,SAAS,EAAE,oBAAoB,iBA+C9D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,YA6BvD"}
|
package/bin/init-local.js
CHANGED
|
@@ -8,6 +8,7 @@ const strip_indents_1 = require("../src/utils/strip-indents");
|
|
|
8
8
|
const client_1 = require("../src/daemon/client/client");
|
|
9
9
|
const enquirer_1 = require("enquirer");
|
|
10
10
|
const output_1 = require("../src/utils/output");
|
|
11
|
+
const analytics_1 = require("../src/analytics");
|
|
11
12
|
/**
|
|
12
13
|
* Nx is being run inside a workspace.
|
|
13
14
|
*
|
|
@@ -56,6 +57,7 @@ async function initLocal(workspace) {
|
|
|
56
57
|
}
|
|
57
58
|
catch (e) {
|
|
58
59
|
console.error(e.message);
|
|
60
|
+
(0, analytics_1.flushAnalytics)();
|
|
59
61
|
process.exit(1);
|
|
60
62
|
}
|
|
61
63
|
}
|
package/bin/nx.d.ts
CHANGED
package/bin/nx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nx.d.ts","sourceRoot":"","sources":["../../../../packages/nx/bin/nx.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"nx.d.ts","sourceRoot":"","sources":["../../../../packages/nx/bin/nx.ts"],"names":[],"mappings":";AAiCA,OAAO,2BAA2B,CAAC"}
|
package/bin/nx.js
CHANGED
|
@@ -23,6 +23,9 @@ const perf_hooks_1 = require("perf_hooks");
|
|
|
23
23
|
const workspace_context_1 = require("../src/utils/workspace-context");
|
|
24
24
|
const client_1 = require("../src/daemon/client/client");
|
|
25
25
|
const db_connection_1 = require("../src/utils/db-connection");
|
|
26
|
+
const analytics_prompt_1 = require("../src/utils/analytics-prompt");
|
|
27
|
+
const analytics_1 = require("../src/analytics");
|
|
28
|
+
require("../src/utils/perf-logging");
|
|
26
29
|
async function main() {
|
|
27
30
|
if (process.argv[2] !== 'report' &&
|
|
28
31
|
process.argv[2] !== '--version' &&
|
|
@@ -30,7 +33,6 @@ async function main() {
|
|
|
30
33
|
process.argv[2] !== 'reset') {
|
|
31
34
|
(0, assert_supported_platform_1.assertSupportedPlatform)();
|
|
32
35
|
}
|
|
33
|
-
require('nx/src/utils/perf-logging');
|
|
34
36
|
const workspace = (0, find_workspace_root_1.findWorkspaceRoot)(process.cwd());
|
|
35
37
|
if (workspace) {
|
|
36
38
|
perf_hooks_1.performance.mark('loading dotenv files:start');
|
|
@@ -68,7 +70,7 @@ async function main() {
|
|
|
68
70
|
if (process.argv[2] === '--version') {
|
|
69
71
|
handleNxVersionCommand(LOCAL_NX_VERSION, GLOBAL_NX_VERSION);
|
|
70
72
|
}
|
|
71
|
-
if (!workspace) {
|
|
73
|
+
if (!workspace && !isNxCloudCommand(process.argv[2])) {
|
|
72
74
|
handleNoWorkspace(GLOBAL_NX_VERSION);
|
|
73
75
|
}
|
|
74
76
|
if (!localNx && !isNxCloudCommand(process.argv[2])) {
|
|
@@ -76,15 +78,19 @@ async function main() {
|
|
|
76
78
|
}
|
|
77
79
|
// this file is already in the local workspace
|
|
78
80
|
if (isNxCloudCommand(process.argv[2])) {
|
|
81
|
+
await initAnalytics();
|
|
79
82
|
// nx-cloud commands can run without local Nx installation
|
|
80
83
|
process.env.NX_DAEMON = 'false';
|
|
81
84
|
require('nx/src/command-line/nx-commands').commandsObject.argv;
|
|
82
85
|
}
|
|
83
86
|
else if (isLocalInstall) {
|
|
87
|
+
await initAnalytics();
|
|
84
88
|
await (0, init_local_1.initLocal)(workspace);
|
|
85
89
|
}
|
|
86
90
|
else if (localNx) {
|
|
87
91
|
// Nx is being run from globally installed CLI - hand off to the local
|
|
92
|
+
// Don't start analytics or connect to the DB here — the local Nx
|
|
93
|
+
// will handle it when it runs its own bin/nx.ts
|
|
88
94
|
warnIfUsingOutdatedGlobalInstall(GLOBAL_NX_VERSION, LOCAL_NX_VERSION);
|
|
89
95
|
if (localNx.includes('.nx')) {
|
|
90
96
|
const nxWrapperPath = localNx.replace(/\.nx.*/, '.nx/') + 'nxw.js';
|
|
@@ -156,9 +162,18 @@ function isNxCloudCommand(command) {
|
|
|
156
162
|
'view-logs',
|
|
157
163
|
'fix-ci',
|
|
158
164
|
'record',
|
|
165
|
+
'polygraph',
|
|
166
|
+
'download-cloud-client',
|
|
159
167
|
];
|
|
160
168
|
return nxCloudCommands.includes(command);
|
|
161
169
|
}
|
|
170
|
+
async function initAnalytics() {
|
|
171
|
+
try {
|
|
172
|
+
await (0, analytics_prompt_1.ensureAnalyticsPreferenceSet)();
|
|
173
|
+
}
|
|
174
|
+
catch { }
|
|
175
|
+
await (0, analytics_1.startAnalytics)();
|
|
176
|
+
}
|
|
162
177
|
function handleMissingLocalInstallation(detectedWorkspaceRoot) {
|
|
163
178
|
output_1.output.error({
|
|
164
179
|
title: detectedWorkspaceRoot
|
|
@@ -221,7 +236,7 @@ function getLocalNxVersion(workspace) {
|
|
|
221
236
|
function _getLatestVersionOfNx() {
|
|
222
237
|
try {
|
|
223
238
|
return (0, child_process_1.execSync)('npm view nx@latest version', {
|
|
224
|
-
windowsHide:
|
|
239
|
+
windowsHide: true,
|
|
225
240
|
})
|
|
226
241
|
.toString()
|
|
227
242
|
.trim();
|
|
@@ -229,7 +244,7 @@ function _getLatestVersionOfNx() {
|
|
|
229
244
|
catch {
|
|
230
245
|
try {
|
|
231
246
|
return (0, child_process_1.execSync)('pnpm view nx@latest version', {
|
|
232
|
-
windowsHide:
|
|
247
|
+
windowsHide: true,
|
|
233
248
|
})
|
|
234
249
|
.toString()
|
|
235
250
|
.trim();
|
|
@@ -248,5 +263,6 @@ process.on('exit', () => {
|
|
|
248
263
|
});
|
|
249
264
|
main().catch((error) => {
|
|
250
265
|
console.error(error);
|
|
266
|
+
(0, analytics_1.flushAnalytics)();
|
|
251
267
|
process.exit(1);
|
|
252
268
|
});
|
package/changes.json
CHANGED
package/migrations.json
CHANGED
|
@@ -137,11 +137,29 @@
|
|
|
137
137
|
"description": "Updates the nx wrapper.",
|
|
138
138
|
"implementation": "./src/migrations/update-22-1-0/update-nx-wrapper"
|
|
139
139
|
},
|
|
140
|
+
"22-6-1-add-claude-worktrees-to-git-ignore": {
|
|
141
|
+
"cli": "nx",
|
|
142
|
+
"version": "22.6.0-beta.10",
|
|
143
|
+
"description": "Adds .claude/worktrees to .gitignore",
|
|
144
|
+
"implementation": "./src/migrations/update-22-6-0/add-claude-worktrees-to-git-ignore"
|
|
145
|
+
},
|
|
140
146
|
"22-7-0-add-polygraph-to-git-ignore": {
|
|
141
147
|
"cli": "nx",
|
|
142
148
|
"version": "22.7.0-beta.0",
|
|
143
149
|
"description": "Adds .nx/polygraph to .gitignore",
|
|
144
150
|
"implementation": "./src/migrations/update-22-7-0/add-polygraph-to-git-ignore"
|
|
151
|
+
},
|
|
152
|
+
"22-6-0-add-claude-settings-local-to-git-ignore": {
|
|
153
|
+
"cli": "nx",
|
|
154
|
+
"version": "22.6.0-rc.0",
|
|
155
|
+
"description": "Adds .claude/settings.local.json to .gitignore",
|
|
156
|
+
"implementation": "./src/migrations/update-22-6-0/add-claude-settings-local-to-git-ignore"
|
|
157
|
+
},
|
|
158
|
+
"22-6-0-enable-analytics-prompt": {
|
|
159
|
+
"cli": "nx",
|
|
160
|
+
"version": "22.6.0-beta.11",
|
|
161
|
+
"description": "Prompts to enable usage analytics",
|
|
162
|
+
"implementation": "./src/migrations/update-22-6-0/enable-analytics-prompt"
|
|
145
163
|
}
|
|
146
164
|
}
|
|
147
165
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/nx",
|
|
3
|
-
"version": "22.
|
|
4
|
-
"
|
|
5
|
-
"description": "[DepUp] The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
|
|
3
|
+
"version": "22.6.1-depup.0",
|
|
4
|
+
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration. (with updated dependencies)",
|
|
6
5
|
"repository": {
|
|
7
6
|
"type": "git",
|
|
8
7
|
"url": "https://github.com/nrwl/nx.git",
|
|
9
8
|
"directory": "packages/nx"
|
|
10
9
|
},
|
|
11
10
|
"keywords": [
|
|
12
|
-
"depup",
|
|
13
|
-
"dependency-bumped",
|
|
14
|
-
"updated-deps",
|
|
15
11
|
"nx",
|
|
12
|
+
"depup",
|
|
13
|
+
"updated-dependencies",
|
|
14
|
+
"security",
|
|
15
|
+
"latest",
|
|
16
|
+
"patched",
|
|
16
17
|
"Monorepo",
|
|
17
18
|
"Angular",
|
|
18
19
|
"React",
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
},
|
|
39
40
|
"homepage": "https://nx.dev",
|
|
40
41
|
"dependencies": {
|
|
42
|
+
"@ltd/j-toml": "^1.38.0",
|
|
41
43
|
"@napi-rs/wasm-runtime": "^1.1.1",
|
|
42
44
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
43
45
|
"@yarnpkg/parsers": "^3.0.3",
|
|
@@ -59,7 +61,6 @@
|
|
|
59
61
|
"jsonc-parser": "^3.3.1",
|
|
60
62
|
"lines-and-columns": "^2.0.4",
|
|
61
63
|
"minimatch": "10.2.4",
|
|
62
|
-
"node-machine-id": "1.1.12",
|
|
63
64
|
"npm-run-path": "^6.0.0",
|
|
64
65
|
"open": "^11.0.0",
|
|
65
66
|
"ora": "^9.3.0",
|
|
@@ -88,16 +89,16 @@
|
|
|
88
89
|
}
|
|
89
90
|
},
|
|
90
91
|
"optionalDependencies": {
|
|
91
|
-
"@nx/nx-darwin-arm64": "22.
|
|
92
|
-
"@nx/nx-darwin-x64": "22.
|
|
93
|
-
"@nx/nx-freebsd-x64": "22.
|
|
94
|
-
"@nx/nx-linux-arm-gnueabihf": "22.
|
|
95
|
-
"@nx/nx-linux-arm64-gnu": "22.
|
|
96
|
-
"@nx/nx-linux-arm64-musl": "22.
|
|
97
|
-
"@nx/nx-linux-x64-gnu": "22.
|
|
98
|
-
"@nx/nx-linux-x64-musl": "22.
|
|
99
|
-
"@nx/nx-win32-arm64-msvc": "22.
|
|
100
|
-
"@nx/nx-win32-x64-msvc": "22.
|
|
92
|
+
"@nx/nx-darwin-arm64": "22.6.1",
|
|
93
|
+
"@nx/nx-darwin-x64": "22.6.1",
|
|
94
|
+
"@nx/nx-freebsd-x64": "22.6.1",
|
|
95
|
+
"@nx/nx-linux-arm-gnueabihf": "22.6.1",
|
|
96
|
+
"@nx/nx-linux-arm64-gnu": "22.6.1",
|
|
97
|
+
"@nx/nx-linux-arm64-musl": "22.6.1",
|
|
98
|
+
"@nx/nx-linux-x64-gnu": "22.6.1",
|
|
99
|
+
"@nx/nx-linux-x64-musl": "22.6.1",
|
|
100
|
+
"@nx/nx-win32-arm64-msvc": "22.6.1",
|
|
101
|
+
"@nx/nx-win32-x64-msvc": "22.6.1"
|
|
101
102
|
},
|
|
102
103
|
"nx-migrations": {
|
|
103
104
|
"migrations": "./migrations.json",
|
|
@@ -107,6 +108,8 @@
|
|
|
107
108
|
"@nx/eslint",
|
|
108
109
|
"@nx/workspace",
|
|
109
110
|
"@nx/angular",
|
|
111
|
+
"@nx/angular-rspack",
|
|
112
|
+
"@nx/angular-rspack-compiler",
|
|
110
113
|
"@nx/jest",
|
|
111
114
|
"@nx/cypress",
|
|
112
115
|
"@nx/detox",
|
|
@@ -152,9 +155,6 @@
|
|
|
152
155
|
"generators": "./generators.json",
|
|
153
156
|
"executors": "./executors.json",
|
|
154
157
|
"builders": "./executors.json",
|
|
155
|
-
"publishConfig": {
|
|
156
|
-
"access": "public"
|
|
157
|
-
},
|
|
158
158
|
"napi": {
|
|
159
159
|
"binaryName": "nx",
|
|
160
160
|
"packageName": "@nx/nx",
|
|
@@ -178,9 +178,7 @@
|
|
|
178
178
|
"main": "./bin/nx.js",
|
|
179
179
|
"types": "./bin/nx.d.ts",
|
|
180
180
|
"type": "commonjs",
|
|
181
|
-
"scripts": {
|
|
182
|
-
"postinstall": "node ./bin/post-install || exit 0"
|
|
183
|
-
},
|
|
181
|
+
"scripts": {},
|
|
184
182
|
"depup": {
|
|
185
183
|
"changes": {
|
|
186
184
|
"@napi-rs/wasm-runtime": {
|
|
@@ -302,8 +300,8 @@
|
|
|
302
300
|
},
|
|
303
301
|
"depsUpdated": 29,
|
|
304
302
|
"originalPackage": "nx",
|
|
305
|
-
"originalVersion": "22.
|
|
306
|
-
"processedAt": "2026-03-
|
|
303
|
+
"originalVersion": "22.6.1",
|
|
304
|
+
"processedAt": "2026-03-20T20:15:05.888Z",
|
|
307
305
|
"smokeTest": "failed"
|
|
308
306
|
}
|
|
309
307
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ProjectConfiguration } from '../src/config/workspace-json-project-json';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
2
|
+
import { PluginCache } from '../src/utils/plugin-cache-utils';
|
|
3
|
+
export type PackageJsonConfigurationCache = PluginCache<ProjectConfiguration>;
|
|
5
4
|
export declare function readPackageJsonConfigurationCache(): PackageJsonConfigurationCache;
|
|
6
5
|
//# sourceMappingURL=package-json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../../../packages/nx/plugins/package-json.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../../../packages/nx/plugins/package-json.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,MAAM,MAAM,6BAA6B,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC;AAM9E,wBAAgB,iCAAiC,IAAI,6BAA6B,CAGjF"}
|
package/plugins/package-json.js
CHANGED
|
@@ -7,17 +7,17 @@ const package_json_1 = require("../src/plugins/package-json");
|
|
|
7
7
|
const cache_directory_1 = require("../src/utils/cache-directory");
|
|
8
8
|
const path_1 = require("path");
|
|
9
9
|
const fileutils_1 = require("../src/utils/fileutils");
|
|
10
|
+
const plugin_cache_utils_1 = require("../src/utils/plugin-cache-utils");
|
|
10
11
|
const cachePath = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, 'package-json.hash');
|
|
12
|
+
let packageJsonPluginCache = null;
|
|
11
13
|
function readPackageJsonConfigurationCache() {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
catch (e) {
|
|
16
|
-
return {};
|
|
17
|
-
}
|
|
14
|
+
packageJsonPluginCache = new plugin_cache_utils_1.PluginCache(cachePath);
|
|
15
|
+
return packageJsonPluginCache;
|
|
18
16
|
}
|
|
19
|
-
function writeCache(
|
|
20
|
-
(
|
|
17
|
+
function writeCache() {
|
|
18
|
+
if (packageJsonPluginCache) {
|
|
19
|
+
packageJsonPluginCache.writeToDisk(cachePath);
|
|
20
|
+
}
|
|
21
21
|
}
|
|
22
22
|
const plugin = {
|
|
23
23
|
name: 'nx-all-package-jsons-plugin',
|
|
@@ -28,7 +28,7 @@ const plugin = {
|
|
|
28
28
|
const patterns = (0, package_json_1.buildPackageJsonPatterns)(context.workspaceRoot, (f) => (0, fileutils_1.readJsonFile)((0, path_1.join)(context.workspaceRoot, f)));
|
|
29
29
|
const isInPackageJsonWorkspaces = (0, package_json_1.buildPackageJsonWorkspacesMatcher)(patterns);
|
|
30
30
|
const result = (0, plugins_1.createNodesFromFiles)((packageJsonPath) => (0, package_json_1.createNodeFromPackageJson)(packageJsonPath, workspace_root_1.workspaceRoot, cache, isInPackageJsonWorkspaces(packageJsonPath)), configFiles, options, context);
|
|
31
|
-
writeCache(
|
|
31
|
+
writeCache();
|
|
32
32
|
return result;
|
|
33
33
|
},
|
|
34
34
|
],
|
package/schemas/nx-schema.json
CHANGED
|
@@ -142,6 +142,10 @@
|
|
|
142
142
|
"type": "boolean",
|
|
143
143
|
"description": "Specifies whether to add inference plugins when generating new projects."
|
|
144
144
|
},
|
|
145
|
+
"analytics": {
|
|
146
|
+
"type": "boolean",
|
|
147
|
+
"description": "Set this to true to allow Nx to collect usage analytics."
|
|
148
|
+
},
|
|
145
149
|
"release": {
|
|
146
150
|
"type": "object",
|
|
147
151
|
"description": "Configuration for the nx release commands.",
|
|
@@ -560,8 +564,13 @@
|
|
|
560
564
|
"fileset": {
|
|
561
565
|
"type": "string",
|
|
562
566
|
"description": "A glob"
|
|
567
|
+
},
|
|
568
|
+
"dependencies": {
|
|
569
|
+
"type": "boolean",
|
|
570
|
+
"description": "Include files matching the fileset for all the project dependencies of this target."
|
|
563
571
|
}
|
|
564
572
|
},
|
|
573
|
+
"required": ["fileset"],
|
|
565
574
|
"additionalProperties": false
|
|
566
575
|
},
|
|
567
576
|
{
|
|
@@ -216,8 +216,13 @@
|
|
|
216
216
|
"fileset": {
|
|
217
217
|
"type": "string",
|
|
218
218
|
"description": "A glob used to determine a fileset."
|
|
219
|
+
},
|
|
220
|
+
"dependencies": {
|
|
221
|
+
"type": "boolean",
|
|
222
|
+
"description": "Include files matching the fileset for all the project dependencies of this target."
|
|
219
223
|
}
|
|
220
224
|
},
|
|
225
|
+
"required": ["fileset"],
|
|
221
226
|
"additionalProperties": false
|
|
222
227
|
},
|
|
223
228
|
{
|
package/src/adapter/compat.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const allowedProjectExtensions: readonly ["tags", "implicitDependencies", "configFilePath", "$schema", "generators", "namedInputs", "name", "files", "root", "sourceRoot", "projectType", "release", "includedScripts", "metadata", "owners", "nxCloudImplicitDependencies"];
|
|
2
|
-
export declare const allowedWorkspaceExtensions: readonly ["$schema", "implicitDependencies", "affected", "defaultBase", "tasksRunnerOptions", "workspaceLayout", "plugins", "targetDefaults", "files", "generators", "namedInputs", "extends", "cli", "pluginsConfig", "defaultProject", "installation", "release", "nxCloudAccessToken", "nxCloudId", "nxCloudUrl", "nxCloudEncryptionKey", "parallel", "cacheDirectory", "useDaemonProcess", "useInferencePlugins", "neverConnectToCloud", "sync", "useLegacyCache", "maxCacheSize", "tui", "owners"];
|
|
2
|
+
export declare const allowedWorkspaceExtensions: readonly ["$schema", "implicitDependencies", "affected", "defaultBase", "tasksRunnerOptions", "workspaceLayout", "plugins", "targetDefaults", "files", "generators", "namedInputs", "extends", "cli", "pluginsConfig", "defaultProject", "installation", "release", "nxCloudAccessToken", "nxCloudId", "nxCloudUrl", "nxCloudEncryptionKey", "parallel", "cacheDirectory", "useDaemonProcess", "useInferencePlugins", "neverConnectToCloud", "analytics", "sync", "useLegacyCache", "maxCacheSize", "tui", "owners"];
|
|
3
3
|
//# sourceMappingURL=compat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/adapter/compat.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,wBAAwB,8OAiB3B,CAAC;AAQX,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/adapter/compat.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,wBAAwB,8OAiB3B,CAAC;AAQX,eAAO,MAAM,0BAA0B,sfAiC7B,CAAC"}
|
package/src/adapter/compat.js
CHANGED
|
@@ -4,6 +4,7 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
import type { GenerateOptions } from '../command-line/generate/generate';
|
|
5
5
|
import { ProjectConfiguration } from '../config/workspace-json-project-json';
|
|
6
6
|
import { Tree } from '../generators/tree';
|
|
7
|
+
import type { ProjectGraph } from '../config/project-graph';
|
|
7
8
|
import { ExecutorContext, GeneratorCallback } from '../config/misc-interfaces';
|
|
8
9
|
export declare function createBuilderContext(builderInfo: {
|
|
9
10
|
builderName: string;
|
|
@@ -16,13 +17,14 @@ export declare function scheduleTarget(root: string, opts: {
|
|
|
16
17
|
configuration: string;
|
|
17
18
|
runOptions: any;
|
|
18
19
|
projects: Record<string, ProjectConfiguration>;
|
|
19
|
-
}, verbose: boolean): Promise<Observable<import('@angular-devkit/architect').BuilderOutput>>;
|
|
20
|
+
}, verbose: boolean, projectGraph: ProjectGraph): Promise<Observable<import('@angular-devkit/architect').BuilderOutput>>;
|
|
20
21
|
type AngularProjectConfiguration = ProjectConfiguration & {
|
|
21
22
|
prefix?: string;
|
|
22
23
|
};
|
|
23
24
|
export declare class NxScopedHost extends virtualFs.ScopedHost<any> {
|
|
24
25
|
private root;
|
|
25
|
-
|
|
26
|
+
protected _projectGraph?: ProjectGraph;
|
|
27
|
+
constructor(root: string, _projectGraph?: ProjectGraph);
|
|
26
28
|
read(path: Path): Observable<FileBuffer>;
|
|
27
29
|
protected readMergedWorkspaceConfiguration(): Observable<any>;
|
|
28
30
|
write(path: Path, content: FileBuffer): Observable<void>;
|
|
@@ -37,6 +39,7 @@ export declare class NxScopedHost extends virtualFs.ScopedHost<any> {
|
|
|
37
39
|
* the project graph to access the expanded targets.
|
|
38
40
|
*/
|
|
39
41
|
export declare class NxScopedHostForBuilders extends NxScopedHost {
|
|
42
|
+
constructor(root: string, projectGraph: ProjectGraph);
|
|
40
43
|
protected readMergedWorkspaceConfiguration(): Observable<any>;
|
|
41
44
|
}
|
|
42
45
|
export declare function arrayBufferToString(buffer: any): string;
|
|
@@ -46,15 +49,15 @@ export declare function arrayBufferToString(buffer: any): string;
|
|
|
46
49
|
*/
|
|
47
50
|
export declare class NxScopeHostUsedForWrappedSchematics extends NxScopedHost {
|
|
48
51
|
private readonly host;
|
|
49
|
-
constructor(root: string, host: Tree);
|
|
52
|
+
constructor(root: string, host: Tree, projectGraph: ProjectGraph);
|
|
50
53
|
read(path: Path): Observable<FileBuffer>;
|
|
51
54
|
exists(path: Path): Observable<boolean>;
|
|
52
55
|
isDirectory(path: Path): Observable<boolean>;
|
|
53
56
|
isFile(path: Path): Observable<boolean>;
|
|
54
57
|
list(path: Path): Observable<PathFragment[]>;
|
|
55
58
|
}
|
|
56
|
-
export declare function generate(root: string, opts: GenerateOptions, projects: Record<string, ProjectConfiguration>, verbose: boolean): Promise<number>;
|
|
57
|
-
export declare function runMigration(root: string, packageName: string, migrationName: string, projects: Record<string, ProjectConfiguration>, isVerbose: boolean): Promise<{
|
|
59
|
+
export declare function generate(root: string, opts: GenerateOptions, projects: Record<string, ProjectConfiguration>, verbose: boolean, projectGraph: ProjectGraph): Promise<number>;
|
|
60
|
+
export declare function runMigration(root: string, packageName: string, migrationName: string, projects: Record<string, ProjectConfiguration>, isVerbose: boolean, projectGraph: ProjectGraph): Promise<{
|
|
58
61
|
loggingQueue: string[];
|
|
59
62
|
madeChanges: boolean;
|
|
60
63
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngcli-adapter.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/adapter/ngcli-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,OAAO,EAEP,IAAI,EACJ,YAAY,EAGZ,SAAS,EAEV,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAWhF,OAAO,EAAgB,UAAU,EAAW,MAAM,MAAM,CAAC;AAUzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAU,IAAI,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ngcli-adapter.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/adapter/ngcli-adapter.ts"],"names":[],"mappings":"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"}
|
|
@@ -30,9 +30,17 @@ const executor_utils_1 = require("../command-line/run/executor-utils");
|
|
|
30
30
|
const plugins_1 = require("../project-graph/plugins");
|
|
31
31
|
const schema_utils_1 = require("../config/schema-utils");
|
|
32
32
|
const project_configuration_utils_1 = require("../project-graph/utils/project-configuration-utils");
|
|
33
|
+
function getProjectGraph() {
|
|
34
|
+
try {
|
|
35
|
+
return Promise.resolve((0, project_graph_1.readCachedProjectGraph)());
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
return (0, project_graph_1.createProjectGraphAsync)();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
33
41
|
async function createBuilderContext(builderInfo, context) {
|
|
34
42
|
require('./compat');
|
|
35
|
-
const fsHost = new NxScopedHostForBuilders(context.root);
|
|
43
|
+
const fsHost = new NxScopedHostForBuilders(context.root, context.projectGraph);
|
|
36
44
|
// the top level import is not patched because it is imported before the
|
|
37
45
|
// patching happens so we require it here to use the patched version below
|
|
38
46
|
const { workspaces } = require('@angular-devkit/core');
|
|
@@ -120,10 +128,10 @@ async function createBuilderContext(builderInfo, context) {
|
|
|
120
128
|
};
|
|
121
129
|
return builderContext;
|
|
122
130
|
}
|
|
123
|
-
async function scheduleTarget(root, opts, verbose) {
|
|
131
|
+
async function scheduleTarget(root, opts, verbose, projectGraph) {
|
|
124
132
|
const { Architect } = require('@angular-devkit/architect');
|
|
125
133
|
const logger = (0, exports.getLogger)(verbose);
|
|
126
|
-
const fsHost = new NxScopedHostForBuilders(root);
|
|
134
|
+
const fsHost = new NxScopedHostForBuilders(root, projectGraph);
|
|
127
135
|
const { workspace } = await core_1.workspaces.readWorkspace('angular.json', core_1.workspaces.createWorkspaceHost(fsHost));
|
|
128
136
|
const architectHost = await getWrappedWorkspaceNodeModulesArchitectHost(workspace, root, opts.projects);
|
|
129
137
|
const project = workspace.projects.get(opts.project);
|
|
@@ -269,21 +277,24 @@ async function runSchematic(host, root, workflow, logger, opts, schematic, print
|
|
|
269
277
|
return { status: 0, loggingQueue: record.loggingQueue };
|
|
270
278
|
}
|
|
271
279
|
class NxScopedHost extends core_1.virtualFs.ScopedHost {
|
|
272
|
-
constructor(root) {
|
|
280
|
+
constructor(root, _projectGraph) {
|
|
273
281
|
super(new node_1.NodeJsSyncHost(), (0, core_1.normalize)(root));
|
|
274
282
|
this.root = root;
|
|
283
|
+
this._projectGraph = _projectGraph;
|
|
275
284
|
}
|
|
276
285
|
read(path) {
|
|
277
286
|
if ((path === 'angular.json' || path === '/angular.json') &&
|
|
278
287
|
(0, angular_json_1.isAngularPluginInstalled)()) {
|
|
279
|
-
return this.readMergedWorkspaceConfiguration().pipe(
|
|
288
|
+
return this.readMergedWorkspaceConfiguration().pipe(
|
|
289
|
+
// structuredClone to avoid toOldFormat mutating shared graph objects
|
|
290
|
+
(0, operators_1.map)((r) => stringToArrayBuffer(JSON.stringify((0, angular_json_1.toOldFormat)(structuredClone(r))))));
|
|
280
291
|
}
|
|
281
292
|
else {
|
|
282
293
|
return super.read(path);
|
|
283
294
|
}
|
|
284
295
|
}
|
|
285
296
|
readMergedWorkspaceConfiguration() {
|
|
286
|
-
return (0, rxjs_1.zip)((0, rxjs_1.
|
|
297
|
+
return (0, rxjs_1.zip)(this._projectGraph ? (0, rxjs_1.of)(this._projectGraph) : (0, rxjs_1.from)(getProjectGraph()), this.readExistingAngularJson(), this.readJson('nx.json')).pipe((0, operators_1.concatMap)(([graph, angularJson, nxJson]) => {
|
|
287
298
|
const workspaceConfig = (angularJson || { projects: {} });
|
|
288
299
|
workspaceConfig.cli ??= nxJson.cli;
|
|
289
300
|
workspaceConfig.schematics ??= nxJson.generators;
|
|
@@ -437,8 +448,11 @@ exports.NxScopedHost = NxScopedHost;
|
|
|
437
448
|
* the project graph to access the expanded targets.
|
|
438
449
|
*/
|
|
439
450
|
class NxScopedHostForBuilders extends NxScopedHost {
|
|
451
|
+
constructor(root, projectGraph) {
|
|
452
|
+
super(root, projectGraph);
|
|
453
|
+
}
|
|
440
454
|
readMergedWorkspaceConfiguration() {
|
|
441
|
-
return (0, rxjs_1.zip)((0, rxjs_1.
|
|
455
|
+
return (0, rxjs_1.zip)((0, rxjs_1.of)(this._projectGraph), this.readExistingAngularJson(), this.readJson('nx.json')).pipe((0, operators_1.map)(([graph, angularJson, nxJson]) => {
|
|
442
456
|
const workspaceConfig = (angularJson || { projects: {} });
|
|
443
457
|
workspaceConfig.cli ??= nxJson.cli;
|
|
444
458
|
workspaceConfig.schematics ??= nxJson.generators;
|
|
@@ -472,8 +486,8 @@ function arrayBufferToString(buffer) {
|
|
|
472
486
|
* the project configuration files.
|
|
473
487
|
*/
|
|
474
488
|
class NxScopeHostUsedForWrappedSchematics extends NxScopedHost {
|
|
475
|
-
constructor(root, host) {
|
|
476
|
-
super(root);
|
|
489
|
+
constructor(root, host, projectGraph) {
|
|
490
|
+
super(root, projectGraph);
|
|
477
491
|
this.host = host;
|
|
478
492
|
}
|
|
479
493
|
read(path) {
|
|
@@ -566,9 +580,9 @@ function findMatchingFileChange(host, path) {
|
|
|
566
580
|
.listChanges()
|
|
567
581
|
.find((f) => f.type !== 'DELETE' && (0, core_1.normalize)(f.path) === targetPath);
|
|
568
582
|
}
|
|
569
|
-
async function generate(root, opts, projects, verbose) {
|
|
583
|
+
async function generate(root, opts, projects, verbose, projectGraph) {
|
|
570
584
|
const logger = (0, exports.getLogger)(verbose);
|
|
571
|
-
const fsHost = new NxScopeHostUsedForWrappedSchematics(root, new tree_1.FsTree(root, verbose, `ng-cli generator: ${opts.collectionName}:${opts.generatorName}`));
|
|
585
|
+
const fsHost = new NxScopeHostUsedForWrappedSchematics(root, new tree_1.FsTree(root, verbose, `ng-cli generator: ${opts.collectionName}:${opts.generatorName}`), projectGraph);
|
|
572
586
|
const workflow = createWorkflow(fsHost, root, opts, projects);
|
|
573
587
|
const collection = getCollection(workflow, opts.collectionName);
|
|
574
588
|
const schematic = collection.createSchematic(opts.generatorName, true);
|
|
@@ -623,9 +637,9 @@ function createPromptProvider() {
|
|
|
623
637
|
return require('enquirer').prompt(questions);
|
|
624
638
|
};
|
|
625
639
|
}
|
|
626
|
-
async function runMigration(root, packageName, migrationName, projects, isVerbose) {
|
|
640
|
+
async function runMigration(root, packageName, migrationName, projects, isVerbose, projectGraph) {
|
|
627
641
|
const logger = (0, exports.getLogger)(isVerbose);
|
|
628
|
-
const fsHost = new NxScopeHostUsedForWrappedSchematics(root, new tree_1.FsTree(root, isVerbose, `ng-cli migration: ${packageName}:${migrationName}`));
|
|
642
|
+
const fsHost = new NxScopeHostUsedForWrappedSchematics(root, new tree_1.FsTree(root, isVerbose, `ng-cli migration: ${packageName}:${migrationName}`), projectGraph);
|
|
629
643
|
const workflow = createWorkflow(fsHost, root, {}, projects);
|
|
630
644
|
const collection = resolveMigrationsCollection(packageName);
|
|
631
645
|
const record = { loggingQueue: [], error: false };
|
|
@@ -713,7 +727,7 @@ function wrapAngularDevkitSchematic(collectionName, generatorName) {
|
|
|
713
727
|
// were written with Nx in mind, and may care about tags.
|
|
714
728
|
require('./compat');
|
|
715
729
|
return async (host, generatorOptions) => {
|
|
716
|
-
const graph = await (
|
|
730
|
+
const graph = await getProjectGraph();
|
|
717
731
|
const { projects } = (0, project_graph_1.readProjectsConfigurationFromProjectGraph)(graph);
|
|
718
732
|
if (mockedSchematics &&
|
|
719
733
|
mockedSchematics[`${collectionName}:${generatorName}`]) {
|
|
@@ -744,7 +758,7 @@ function wrapAngularDevkitSchematic(collectionName, generatorName) {
|
|
|
744
758
|
host.rename(eventPath, event.to);
|
|
745
759
|
}
|
|
746
760
|
};
|
|
747
|
-
const fsHost = new NxScopeHostUsedForWrappedSchematics(host.root, host);
|
|
761
|
+
const fsHost = new NxScopeHostUsedForWrappedSchematics(host.root, host, graph);
|
|
748
762
|
const logger = (0, exports.getLogger)(generatorOptions.verbose);
|
|
749
763
|
const options = {
|
|
750
764
|
generatorOptions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clone-ai-config-repo.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/ai/clone-ai-config-repo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clone-ai-config-repo.d.ts","sourceRoot":"","sources":["../../../../../packages/nx/src/ai/clone-ai-config-repo.ts"],"names":[],"mappings":"AAyHA;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAiB5C"}
|
|
@@ -17,6 +17,7 @@ function getLatestCommitHash() {
|
|
|
17
17
|
encoding: 'utf-8',
|
|
18
18
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
19
19
|
timeout: 30000, // 30 second timeout
|
|
20
|
+
windowsHide: true,
|
|
20
21
|
});
|
|
21
22
|
const hash = output.split('\t')[0];
|
|
22
23
|
if (!hash || hash.length < 10) {
|
|
@@ -46,6 +47,7 @@ function cloneRepo(targetPath) {
|
|
|
46
47
|
encoding: 'utf-8',
|
|
47
48
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
48
49
|
timeout: 120000, // 2 minute timeout for clone
|
|
50
|
+
windowsHide: true,
|
|
49
51
|
});
|
|
50
52
|
// Remove .git directory after clone
|
|
51
53
|
const gitDir = (0, path_1.join)(tempPath, '.git');
|
package/src/ai/constants.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare function geminiSettingsPath(root: string): string;
|
|
|
7
7
|
export declare function claudeMdPath(root: string): string;
|
|
8
8
|
export declare function claudeMcpJsonPath(root: string): string;
|
|
9
9
|
export declare function opencodeMcpPath(root: string): string;
|
|
10
|
-
export declare
|
|
10
|
+
export declare function codexConfigTomlPath(root: string): string;
|
|
11
11
|
export declare const nxRulesMarkerCommentStart = "<!-- nx configuration start-->";
|
|
12
12
|
export declare const nxRulesMarkerCommentDescription = "<!-- Leave the start & end comments to automatically receive updates. -->";
|
|
13
13
|
export declare const nxRulesMarkerCommentEnd = "<!-- nx configuration end-->";
|