nx 16.4.0-beta.0 → 16.4.0-beta.1
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/bin/compute-project-graph.js +0 -1
- package/bin/init-local.js +0 -1
- package/bin/nx.js +45 -8
- package/bin/run-executor.js +0 -1
- package/package.json +13 -13
- package/plugins/package-json.js +0 -1
- package/src/adapter/angular-json.js +0 -1
- package/src/adapter/compat.js +0 -1
- package/src/adapter/decorate-cli.js +0 -1
- package/src/adapter/ngcli-adapter.js +0 -1
- package/src/adapter/rxjs-for-await.js +0 -1
- package/src/command-line/affected/affected.js +3 -1
- package/src/command-line/affected/command-object.d.ts +8 -0
- package/src/command-line/affected/command-object.js +11 -2
- package/src/command-line/affected/print-affected.d.ts +3 -0
- package/src/command-line/affected/print-affected.js +8 -3
- package/src/command-line/connect/command-object.js +0 -1
- package/src/command-line/connect/connect-to-nx-cloud.js +0 -1
- package/src/command-line/connect/view-logs.js +0 -1
- package/src/command-line/daemon/command-object.js +0 -1
- package/src/command-line/daemon/daemon.js +0 -1
- package/src/command-line/examples.js +0 -1
- package/src/command-line/exec/command-object.js +0 -1
- package/src/command-line/exec/exec.js +0 -1
- package/src/command-line/format/command-object.js +0 -1
- package/src/command-line/format/format.js +0 -1
- package/src/command-line/generate/command-object.js +0 -1
- package/src/command-line/generate/generate.js +0 -1
- package/src/command-line/graph/command-object.js +0 -1
- package/src/command-line/graph/graph.js +2 -3
- package/src/command-line/init/command-object.js +0 -1
- package/src/command-line/init/implementation/add-nx-to-monorepo.js +0 -1
- package/src/command-line/init/implementation/add-nx-to-nest.js +0 -1
- package/src/command-line/init/implementation/add-nx-to-npm-repo.js +0 -1
- package/src/command-line/init/implementation/angular/index.js +0 -1
- package/src/command-line/init/implementation/angular/integrated-workspace.js +0 -1
- package/src/command-line/init/implementation/angular/legacy-angular-versions.js +0 -1
- package/src/command-line/init/implementation/angular/standalone-workspace.js +0 -1
- package/src/command-line/init/implementation/angular/types.js +0 -1
- package/src/command-line/init/implementation/dot-nx/add-nx-scripts.js +0 -1
- package/src/command-line/init/implementation/dot-nx/nxw.js +0 -1
- package/src/command-line/init/implementation/react/add-craco-commands-to-package-scripts.js +0 -1
- package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.js +0 -1
- package/src/command-line/init/implementation/react/check-for-custom-webpack-setup.js +0 -1
- package/src/command-line/init/implementation/react/check-for-uncommitted-changes.js +0 -1
- package/src/command-line/init/implementation/react/clean-up-files.js +0 -1
- package/src/command-line/init/implementation/react/index.js +0 -1
- package/src/command-line/init/implementation/react/read-name-from-package-json.js +0 -1
- package/src/command-line/init/implementation/react/rename-js-to-jsx.js +0 -1
- package/src/command-line/init/implementation/react/setup-e2e-project.js +0 -1
- package/src/command-line/init/implementation/react/tsconfig-setup.js +0 -1
- package/src/command-line/init/implementation/react/write-craco-config.js +0 -1
- package/src/command-line/init/implementation/react/write-vite-config.js +0 -1
- package/src/command-line/init/implementation/react/write-vite-index-html.js +0 -1
- package/src/command-line/init/implementation/utils.js +0 -1
- package/src/command-line/init/init.js +0 -1
- package/src/command-line/list/command-object.js +0 -1
- package/src/command-line/list/list.js +0 -1
- package/src/command-line/migrate/command-object.js +0 -1
- package/src/command-line/migrate/migrate.js +0 -1
- package/src/command-line/new/command-object.js +0 -1
- package/src/command-line/new/new.js +0 -1
- package/src/command-line/nx-commands.js +0 -1
- package/src/command-line/repair/command-object.js +0 -1
- package/src/command-line/repair/repair.js +0 -1
- package/src/command-line/repair.js +0 -1
- package/src/command-line/report/command-object.js +0 -1
- package/src/command-line/report/report.d.ts +0 -2
- package/src/command-line/report/report.js +2 -7
- package/src/command-line/reset/command-object.js +0 -1
- package/src/command-line/reset/reset.js +0 -1
- package/src/command-line/run/command-object.js +0 -1
- package/src/command-line/run/run-one.js +0 -1
- package/src/command-line/run/run.js +0 -1
- package/src/command-line/run-many/command-object.js +0 -1
- package/src/command-line/run-many/run-many.js +0 -1
- package/src/command-line/run-many.js +0 -1
- package/src/command-line/run-one.js +0 -1
- package/src/command-line/run.js +0 -1
- package/src/command-line/show/command-object.js +0 -1
- package/src/command-line/show/show.js +0 -1
- package/src/command-line/watch/command-object.js +0 -1
- package/src/command-line/watch/watch.js +0 -1
- package/src/command-line/watch.js +0 -1
- package/src/command-line/workspace-lint/command-object.js +0 -1
- package/src/command-line/workspace-lint/workspace-lint.js +1 -2
- package/src/command-line/yargs-utils/documentation.js +0 -1
- package/src/command-line/yargs-utils/shared-options.js +0 -1
- package/src/config/configuration.js +0 -1
- package/src/config/misc-interfaces.js +0 -1
- package/src/config/nx-json.js +0 -1
- package/src/config/project-graph.js +0 -1
- package/src/config/task-graph.js +0 -1
- package/src/config/workspace-json-project-json.js +0 -1
- package/src/config/workspaces.js +0 -1
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/polyfills.js +1 -1
- package/src/daemon/cache.js +0 -1
- package/src/daemon/client/client.js +0 -1
- package/src/daemon/client/exec-is-server-available.js +0 -1
- package/src/daemon/client/generate-help-output.js +0 -1
- package/src/daemon/client/socket-messenger.js +0 -1
- package/src/daemon/server/file-watching/changed-projects.js +0 -1
- package/src/daemon/server/file-watching/file-watcher-sockets.js +0 -1
- package/src/daemon/server/handle-hash-tasks.js +2 -3
- package/src/daemon/server/handle-outputs-tracking.js +0 -1
- package/src/daemon/server/handle-process-in-background.js +0 -1
- package/src/daemon/server/handle-request-file-data.js +2 -3
- package/src/daemon/server/handle-request-project-graph.js +0 -1
- package/src/daemon/server/handle-request-shutdown.js +0 -1
- package/src/daemon/server/logger.js +0 -1
- package/src/daemon/server/outputs-tracking.js +0 -1
- package/src/daemon/server/project-graph-incremental-recomputation.js +8 -9
- package/src/daemon/server/server.js +4 -5
- package/src/daemon/server/shutdown-utils.js +0 -1
- package/src/daemon/server/start.js +0 -1
- package/src/daemon/server/watcher.js +0 -1
- package/src/daemon/socket-utils.js +0 -1
- package/src/daemon/tmp-dir.js +0 -1
- package/src/devkit-exports.d.ts +1 -1
- package/src/devkit-exports.js +2 -3
- package/src/devkit-internals.js +0 -1
- package/src/devkit-testing-exports.js +0 -1
- package/src/executors/noop/noop.impl.js +0 -1
- package/src/executors/run-commands/compat.js +0 -1
- package/src/executors/run-commands/run-commands.impl.js +0 -1
- package/src/executors/run-script/compat.js +0 -1
- package/src/executors/run-script/run-script.impl.js +0 -1
- package/src/executors/utils/convert-nx-executor.js +0 -1
- package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.js +0 -1
- package/src/generators/testing-utils/create-tree-with-empty-workspace.js +0 -1
- package/src/generators/testing-utils/create-tree.js +0 -1
- package/src/generators/tree.js +0 -1
- package/src/generators/utils/deprecated.js +0 -1
- package/src/generators/utils/json.js +0 -1
- package/src/generators/utils/nx-json.js +0 -1
- package/src/generators/utils/project-configuration.js +0 -1
- package/src/hasher/file-hasher.d.ts +14 -0
- package/src/hasher/{impl/file-hasher-base.js → file-hasher.js} +28 -4
- package/src/hasher/hash-task.js +0 -1
- package/src/hasher/task-hasher.d.ts +1 -1
- package/src/hasher/task-hasher.js +11 -12
- package/src/index.js +0 -1
- package/src/migrations/update-14-0-6/remove-roots.js +0 -1
- package/src/migrations/update-14-2-0/add-json-schema.js +0 -1
- package/src/migrations/update-14-2-0/remove-default-collection.js +0 -1
- package/src/migrations/update-14-2-0/replace-all-relative-outputs-with-absolute.js +0 -1
- package/src/migrations/update-14-3-4/create-target-defaults.js +0 -1
- package/src/migrations/update-15-0-0/migrate-to-inputs.js +0 -1
- package/src/migrations/update-15-0-0/prefix-outputs.js +0 -1
- package/src/migrations/update-15-1-0/set-project-names.js +0 -1
- package/src/migrations/update-15-8-2/update-nxw.js +0 -1
- package/src/migrations/update-16-0-0/remove-nrwl-cli.js +0 -1
- package/src/migrations/update-16-0-0/update-depends-on-to-tokens.js +0 -1
- package/src/migrations/update-16-0-0/update-nx-cloud-runner.js +0 -1
- package/src/migrations/update-16-2-0/remove-run-commands-output-path.js +0 -1
- package/src/plugins/js/hasher/hasher.js +0 -1
- package/src/plugins/js/index.js +0 -1
- package/src/plugins/js/lock-file/lock-file.js +2 -3
- package/src/plugins/js/lock-file/npm-parser.js +2 -3
- package/src/plugins/js/lock-file/pnpm-parser.js +2 -3
- package/src/plugins/js/lock-file/project-graph-pruning.js +0 -1
- package/src/plugins/js/lock-file/utils/package-json.js +0 -1
- package/src/plugins/js/lock-file/utils/pnpm-normalizer.js +0 -1
- package/src/plugins/js/lock-file/yarn-parser.js +2 -3
- package/src/plugins/js/package-json/create-package-json.js +0 -1
- package/src/plugins/js/project-graph/affected/lock-file-changes.js +0 -1
- package/src/plugins/js/project-graph/affected/npm-packages.js +0 -1
- package/src/plugins/js/project-graph/affected/touched-projects.js +0 -1
- package/src/plugins/js/project-graph/affected/tsconfig-json-changes.js +0 -1
- package/src/plugins/js/project-graph/build-dependencies/build-dependencies.js +0 -1
- package/src/plugins/js/project-graph/build-dependencies/build-explicit-typescript-and-package-json-dependencies.js +0 -1
- package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.js +0 -1
- package/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.js +0 -1
- package/src/plugins/js/project-graph/build-dependencies/project-graph-worker.js +0 -1
- package/src/plugins/js/project-graph/build-dependencies/strip-source-code.js +0 -1
- package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +0 -1
- package/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.js +0 -1
- package/src/plugins/js/project-graph/build-nodes/build-npm-package-nodes.js +2 -3
- package/src/plugins/js/utils/register.js +0 -1
- package/src/plugins/js/utils/typescript.js +0 -1
- package/src/plugins/js/versions.js +0 -1
- package/src/project-graph/affected/affected-project-graph-models.js +0 -1
- package/src/project-graph/affected/affected-project-graph.js +0 -1
- package/src/project-graph/affected/locators/project-glob-changes.js +0 -1
- package/src/project-graph/affected/locators/workspace-json-changes.js +0 -1
- package/src/project-graph/affected/locators/workspace-projects.js +0 -1
- package/src/project-graph/build-dependencies/implicit-project-dependencies.js +0 -1
- package/src/project-graph/build-dependencies/index.js +0 -1
- package/src/project-graph/build-nodes/index.js +0 -1
- package/src/project-graph/build-nodes/workspace-projects.js +0 -1
- package/src/project-graph/build-project-graph.js +0 -1
- package/src/project-graph/file-map-utils.js +2 -3
- package/src/project-graph/file-utils.js +0 -1
- package/src/project-graph/nx-deps-cache.js +0 -1
- package/src/project-graph/operators.js +0 -1
- package/src/project-graph/project-graph-builder.js +0 -1
- package/src/project-graph/project-graph.js +3 -4
- package/src/project-graph/utils/find-project-for-path.js +0 -1
- package/src/tasks-runner/batch/batch-messages.js +0 -1
- package/src/tasks-runner/batch/run-batch.js +0 -1
- package/src/tasks-runner/cache.js +0 -1
- package/src/tasks-runner/create-task-graph.js +0 -1
- package/src/tasks-runner/default-tasks-runner.js +0 -1
- package/src/tasks-runner/forked-process-task-runner.js +0 -1
- package/src/tasks-runner/init-tasks-runner.js +0 -1
- package/src/tasks-runner/life-cycle.js +0 -1
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +0 -1
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +0 -1
- package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.js +0 -1
- package/src/tasks-runner/life-cycles/formatting-utils.js +0 -1
- package/src/tasks-runner/life-cycles/invoke-runner-terminal-output-life-cycle.js +0 -1
- package/src/tasks-runner/life-cycles/pretty-time.js +0 -1
- package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +0 -1
- package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js +0 -1
- package/src/tasks-runner/life-cycles/store-run-information-life-cycle.js +0 -1
- package/src/tasks-runner/life-cycles/task-profiling-life-cycle.js +0 -1
- package/src/tasks-runner/life-cycles/task-timings-life-cycle.js +0 -1
- package/src/tasks-runner/life-cycles/view-logs-utils.js +0 -1
- package/src/tasks-runner/remove-old-cache-records.js +0 -1
- package/src/tasks-runner/run-command.js +2 -3
- package/src/tasks-runner/task-graph-utils.js +0 -1
- package/src/tasks-runner/task-orchestrator.js +0 -1
- package/src/tasks-runner/tasks-runner.js +0 -1
- package/src/tasks-runner/tasks-schedule.js +0 -1
- package/src/tasks-runner/utils.js +0 -1
- package/src/utils/ab-testing.js +0 -1
- package/src/utils/all-file-data.js +3 -4
- package/src/utils/app-root.js +0 -1
- package/src/utils/assert-workspace-validity.js +0 -1
- package/src/utils/cache-directory.js +0 -1
- package/src/utils/child-process.js +0 -1
- package/src/utils/chunkify.js +0 -1
- package/src/utils/code-frames.js +0 -1
- package/src/utils/collapse-expanded-outputs.js +0 -1
- package/src/utils/command-line-utils.js +0 -1
- package/src/utils/consume-messages-from-socket.js +0 -1
- package/src/utils/default-base.js +0 -1
- package/src/utils/fileutils.js +0 -1
- package/src/utils/find-matching-projects.js +0 -1
- package/src/utils/find-workspace-root.js +0 -1
- package/src/utils/ignore.js +0 -1
- package/src/utils/installation-directory.js +0 -1
- package/src/utils/is-ci.js +0 -1
- package/src/utils/json-diff.js +0 -1
- package/src/utils/json.js +0 -1
- package/src/utils/logger.js +0 -1
- package/src/utils/nx-cloud-utils.js +0 -1
- package/src/utils/nx-plugin.js +0 -1
- package/src/utils/object-sort.js +0 -1
- package/src/utils/output.js +0 -1
- package/src/utils/package-json.js +0 -1
- package/src/utils/package-manager.js +0 -1
- package/src/utils/params.js +0 -1
- package/src/utils/path.js +0 -1
- package/src/utils/perf-logging.js +0 -1
- package/src/utils/plugins/community-plugins.js +0 -1
- package/src/utils/plugins/core-plugins.js +0 -1
- package/src/utils/plugins/index.js +0 -1
- package/src/utils/plugins/installed-plugins.js +0 -1
- package/src/utils/plugins/local-plugins.js +0 -1
- package/src/utils/plugins/models.js +0 -1
- package/src/utils/plugins/plugin-capabilities.js +0 -1
- package/src/utils/plugins/shared.js +0 -1
- package/src/utils/print-help.js +0 -1
- package/src/utils/project-graph-utils.js +0 -1
- package/src/utils/promised-based-queue.js +0 -1
- package/src/utils/register.js +0 -1
- package/src/utils/serialize-overrides-into-command-line.js +0 -1
- package/src/utils/split-target.js +0 -1
- package/src/utils/strip-indents.js +0 -1
- package/src/utils/testing/mock-fs.js +0 -1
- package/src/utils/testing/temp-fs.js +0 -1
- package/src/utils/typescript.js +0 -1
- package/src/utils/versions.js +0 -1
- package/src/utils/workspace-configuration-check.js +0 -1
- package/src/utils/workspace-root.js +0 -1
- package/tasks-runners/default.js +0 -1
- package/bin/compute-project-graph.js.map +0 -1
- package/bin/init-local.js.map +0 -1
- package/bin/nx.js.map +0 -1
- package/bin/run-executor.js.map +0 -1
- package/plugins/package-json.js.map +0 -1
- package/src/adapter/angular-json.js.map +0 -1
- package/src/adapter/compat.js.map +0 -1
- package/src/adapter/decorate-cli.js.map +0 -1
- package/src/adapter/ngcli-adapter.js.map +0 -1
- package/src/adapter/rxjs-for-await.js.map +0 -1
- package/src/command-line/affected/affected.js.map +0 -1
- package/src/command-line/affected/command-object.js.map +0 -1
- package/src/command-line/affected/print-affected.js.map +0 -1
- package/src/command-line/connect/command-object.js.map +0 -1
- package/src/command-line/connect/connect-to-nx-cloud.js.map +0 -1
- package/src/command-line/connect/view-logs.js.map +0 -1
- package/src/command-line/daemon/command-object.js.map +0 -1
- package/src/command-line/daemon/daemon.js.map +0 -1
- package/src/command-line/examples.js.map +0 -1
- package/src/command-line/exec/command-object.js.map +0 -1
- package/src/command-line/exec/exec.js.map +0 -1
- package/src/command-line/format/command-object.js.map +0 -1
- package/src/command-line/format/format.js.map +0 -1
- package/src/command-line/generate/command-object.js.map +0 -1
- package/src/command-line/generate/generate.js.map +0 -1
- package/src/command-line/graph/command-object.js.map +0 -1
- package/src/command-line/graph/graph.js.map +0 -1
- package/src/command-line/init/command-object.js.map +0 -1
- package/src/command-line/init/implementation/add-nx-to-monorepo.js.map +0 -1
- package/src/command-line/init/implementation/add-nx-to-nest.js.map +0 -1
- package/src/command-line/init/implementation/add-nx-to-npm-repo.js.map +0 -1
- package/src/command-line/init/implementation/angular/index.js.map +0 -1
- package/src/command-line/init/implementation/angular/integrated-workspace.js.map +0 -1
- package/src/command-line/init/implementation/angular/legacy-angular-versions.js.map +0 -1
- package/src/command-line/init/implementation/angular/standalone-workspace.js.map +0 -1
- package/src/command-line/init/implementation/angular/types.js.map +0 -1
- package/src/command-line/init/implementation/dot-nx/add-nx-scripts.js.map +0 -1
- package/src/command-line/init/implementation/dot-nx/nxw.js.map +0 -1
- package/src/command-line/init/implementation/react/add-craco-commands-to-package-scripts.js.map +0 -1
- package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.js.map +0 -1
- package/src/command-line/init/implementation/react/check-for-custom-webpack-setup.js.map +0 -1
- package/src/command-line/init/implementation/react/check-for-uncommitted-changes.js.map +0 -1
- package/src/command-line/init/implementation/react/clean-up-files.js.map +0 -1
- package/src/command-line/init/implementation/react/index.js.map +0 -1
- package/src/command-line/init/implementation/react/read-name-from-package-json.js.map +0 -1
- package/src/command-line/init/implementation/react/rename-js-to-jsx.js.map +0 -1
- package/src/command-line/init/implementation/react/setup-e2e-project.js.map +0 -1
- package/src/command-line/init/implementation/react/tsconfig-setup.js.map +0 -1
- package/src/command-line/init/implementation/react/write-craco-config.js.map +0 -1
- package/src/command-line/init/implementation/react/write-vite-config.js.map +0 -1
- package/src/command-line/init/implementation/react/write-vite-index-html.js.map +0 -1
- package/src/command-line/init/implementation/utils.js.map +0 -1
- package/src/command-line/init/init.js.map +0 -1
- package/src/command-line/list/command-object.js.map +0 -1
- package/src/command-line/list/list.js.map +0 -1
- package/src/command-line/migrate/command-object.js.map +0 -1
- package/src/command-line/migrate/migrate.js.map +0 -1
- package/src/command-line/new/command-object.js.map +0 -1
- package/src/command-line/new/new.js.map +0 -1
- package/src/command-line/nx-commands.js.map +0 -1
- package/src/command-line/repair/command-object.js.map +0 -1
- package/src/command-line/repair/repair.js.map +0 -1
- package/src/command-line/repair.js.map +0 -1
- package/src/command-line/report/command-object.js.map +0 -1
- package/src/command-line/report/report.js.map +0 -1
- package/src/command-line/reset/command-object.js.map +0 -1
- package/src/command-line/reset/reset.js.map +0 -1
- package/src/command-line/run/command-object.js.map +0 -1
- package/src/command-line/run/run-one.js.map +0 -1
- package/src/command-line/run/run.js.map +0 -1
- package/src/command-line/run-many/command-object.js.map +0 -1
- package/src/command-line/run-many/run-many.js.map +0 -1
- package/src/command-line/run-many.js.map +0 -1
- package/src/command-line/run-one.js.map +0 -1
- package/src/command-line/run.js.map +0 -1
- package/src/command-line/show/command-object.js.map +0 -1
- package/src/command-line/show/show.js.map +0 -1
- package/src/command-line/watch/command-object.js.map +0 -1
- package/src/command-line/watch/watch.js.map +0 -1
- package/src/command-line/watch.js.map +0 -1
- package/src/command-line/workspace-lint/command-object.js.map +0 -1
- package/src/command-line/workspace-lint/workspace-lint.js.map +0 -1
- package/src/command-line/yargs-utils/documentation.js.map +0 -1
- package/src/command-line/yargs-utils/shared-options.js.map +0 -1
- package/src/config/configuration.js.map +0 -1
- package/src/config/misc-interfaces.js.map +0 -1
- package/src/config/nx-json.js.map +0 -1
- package/src/config/project-graph.js.map +0 -1
- package/src/config/task-graph.js.map +0 -1
- package/src/config/workspace-json-project-json.js.map +0 -1
- package/src/config/workspaces.js.map +0 -1
- package/src/daemon/cache.js.map +0 -1
- package/src/daemon/client/client.js.map +0 -1
- package/src/daemon/client/exec-is-server-available.js.map +0 -1
- package/src/daemon/client/generate-help-output.js.map +0 -1
- package/src/daemon/client/socket-messenger.js.map +0 -1
- package/src/daemon/server/file-watching/changed-projects.js.map +0 -1
- package/src/daemon/server/file-watching/file-watcher-sockets.js.map +0 -1
- package/src/daemon/server/handle-hash-tasks.js.map +0 -1
- package/src/daemon/server/handle-outputs-tracking.js.map +0 -1
- package/src/daemon/server/handle-process-in-background.js.map +0 -1
- package/src/daemon/server/handle-request-file-data.js.map +0 -1
- package/src/daemon/server/handle-request-project-graph.js.map +0 -1
- package/src/daemon/server/handle-request-shutdown.js.map +0 -1
- package/src/daemon/server/logger.js.map +0 -1
- package/src/daemon/server/outputs-tracking.js.map +0 -1
- package/src/daemon/server/project-graph-incremental-recomputation.js.map +0 -1
- package/src/daemon/server/server.js.map +0 -1
- package/src/daemon/server/shutdown-utils.js.map +0 -1
- package/src/daemon/server/start.js.map +0 -1
- package/src/daemon/server/watcher.js.map +0 -1
- package/src/daemon/socket-utils.js.map +0 -1
- package/src/daemon/tmp-dir.js.map +0 -1
- package/src/devkit-exports.js.map +0 -1
- package/src/devkit-internals.js.map +0 -1
- package/src/devkit-testing-exports.js.map +0 -1
- package/src/executors/noop/noop.impl.js.map +0 -1
- package/src/executors/run-commands/compat.js.map +0 -1
- package/src/executors/run-commands/run-commands.impl.js.map +0 -1
- package/src/executors/run-script/compat.js.map +0 -1
- package/src/executors/run-script/run-script.impl.js.map +0 -1
- package/src/executors/utils/convert-nx-executor.js.map +0 -1
- package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.js.map +0 -1
- package/src/generators/testing-utils/create-tree-with-empty-workspace.js.map +0 -1
- package/src/generators/testing-utils/create-tree.js.map +0 -1
- package/src/generators/tree.js.map +0 -1
- package/src/generators/utils/deprecated.js.map +0 -1
- package/src/generators/utils/json.js.map +0 -1
- package/src/generators/utils/nx-json.js.map +0 -1
- package/src/generators/utils/project-configuration.js.map +0 -1
- package/src/hasher/hash-task.js.map +0 -1
- package/src/hasher/impl/file-hasher-base.d.ts +0 -21
- package/src/hasher/impl/file-hasher-base.js.map +0 -1
- package/src/hasher/impl/index.d.ts +0 -8
- package/src/hasher/impl/index.js +0 -43
- package/src/hasher/impl/index.js.map +0 -1
- package/src/hasher/impl/native-file-hasher.d.ts +0 -7
- package/src/hasher/impl/native-file-hasher.js +0 -43
- package/src/hasher/impl/native-file-hasher.js.map +0 -1
- package/src/hasher/impl/node-file-hasher.d.ts +0 -10
- package/src/hasher/impl/node-file-hasher.js +0 -98
- package/src/hasher/impl/node-file-hasher.js.map +0 -1
- package/src/hasher/task-hasher.js.map +0 -1
- package/src/index.js.map +0 -1
- package/src/migrations/update-14-0-6/remove-roots.js.map +0 -1
- package/src/migrations/update-14-2-0/add-json-schema.js.map +0 -1
- package/src/migrations/update-14-2-0/remove-default-collection.js.map +0 -1
- package/src/migrations/update-14-2-0/replace-all-relative-outputs-with-absolute.js.map +0 -1
- package/src/migrations/update-14-3-4/create-target-defaults.js.map +0 -1
- package/src/migrations/update-15-0-0/migrate-to-inputs.js.map +0 -1
- package/src/migrations/update-15-0-0/prefix-outputs.js.map +0 -1
- package/src/migrations/update-15-1-0/set-project-names.js.map +0 -1
- package/src/migrations/update-15-8-2/update-nxw.js.map +0 -1
- package/src/migrations/update-16-0-0/remove-nrwl-cli.js.map +0 -1
- package/src/migrations/update-16-0-0/update-depends-on-to-tokens.js.map +0 -1
- package/src/migrations/update-16-0-0/update-nx-cloud-runner.js.map +0 -1
- package/src/migrations/update-16-2-0/remove-run-commands-output-path.js.map +0 -1
- package/src/plugins/js/hasher/hasher.js.map +0 -1
- package/src/plugins/js/index.js.map +0 -1
- package/src/plugins/js/lock-file/lock-file.js.map +0 -1
- package/src/plugins/js/lock-file/npm-parser.js.map +0 -1
- package/src/plugins/js/lock-file/pnpm-parser.js.map +0 -1
- package/src/plugins/js/lock-file/project-graph-pruning.js.map +0 -1
- package/src/plugins/js/lock-file/utils/package-json.js.map +0 -1
- package/src/plugins/js/lock-file/utils/pnpm-normalizer.js.map +0 -1
- package/src/plugins/js/lock-file/yarn-parser.js.map +0 -1
- package/src/plugins/js/package-json/create-package-json.js.map +0 -1
- package/src/plugins/js/project-graph/affected/lock-file-changes.js.map +0 -1
- package/src/plugins/js/project-graph/affected/npm-packages.js.map +0 -1
- package/src/plugins/js/project-graph/affected/touched-projects.js.map +0 -1
- package/src/plugins/js/project-graph/affected/tsconfig-json-changes.js.map +0 -1
- package/src/plugins/js/project-graph/build-dependencies/build-dependencies.js.map +0 -1
- package/src/plugins/js/project-graph/build-dependencies/build-explicit-typescript-and-package-json-dependencies.js.map +0 -1
- package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.js.map +0 -1
- package/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.js.map +0 -1
- package/src/plugins/js/project-graph/build-dependencies/project-graph-worker.js.map +0 -1
- package/src/plugins/js/project-graph/build-dependencies/strip-source-code.js.map +0 -1
- package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js.map +0 -1
- package/src/plugins/js/project-graph/build-dependencies/typescript-import-locator.js.map +0 -1
- package/src/plugins/js/project-graph/build-nodes/build-npm-package-nodes.js.map +0 -1
- package/src/plugins/js/utils/register.js.map +0 -1
- package/src/plugins/js/utils/typescript.js.map +0 -1
- package/src/plugins/js/versions.js.map +0 -1
- package/src/project-graph/affected/affected-project-graph-models.js.map +0 -1
- package/src/project-graph/affected/affected-project-graph.js.map +0 -1
- package/src/project-graph/affected/locators/project-glob-changes.js.map +0 -1
- package/src/project-graph/affected/locators/workspace-json-changes.js.map +0 -1
- package/src/project-graph/affected/locators/workspace-projects.js.map +0 -1
- package/src/project-graph/build-dependencies/implicit-project-dependencies.js.map +0 -1
- package/src/project-graph/build-dependencies/index.js.map +0 -1
- package/src/project-graph/build-nodes/index.js.map +0 -1
- package/src/project-graph/build-nodes/workspace-projects.js.map +0 -1
- package/src/project-graph/build-project-graph.js.map +0 -1
- package/src/project-graph/file-map-utils.js.map +0 -1
- package/src/project-graph/file-utils.js.map +0 -1
- package/src/project-graph/nx-deps-cache.js.map +0 -1
- package/src/project-graph/operators.js.map +0 -1
- package/src/project-graph/project-graph-builder.js.map +0 -1
- package/src/project-graph/project-graph.js.map +0 -1
- package/src/project-graph/utils/find-project-for-path.js.map +0 -1
- package/src/tasks-runner/batch/batch-messages.js.map +0 -1
- package/src/tasks-runner/batch/run-batch.js.map +0 -1
- package/src/tasks-runner/cache.js.map +0 -1
- package/src/tasks-runner/create-task-graph.js.map +0 -1
- package/src/tasks-runner/default-tasks-runner.js.map +0 -1
- package/src/tasks-runner/forked-process-task-runner.js.map +0 -1
- package/src/tasks-runner/init-tasks-runner.js.map +0 -1
- package/src/tasks-runner/life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/empty-terminal-output-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/formatting-utils.js.map +0 -1
- package/src/tasks-runner/life-cycles/invoke-runner-terminal-output-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/pretty-time.js.map +0 -1
- package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/static-run-one-terminal-output-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/store-run-information-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/task-profiling-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/task-timings-life-cycle.js.map +0 -1
- package/src/tasks-runner/life-cycles/view-logs-utils.js.map +0 -1
- package/src/tasks-runner/remove-old-cache-records.js.map +0 -1
- package/src/tasks-runner/run-command.js.map +0 -1
- package/src/tasks-runner/task-graph-utils.js.map +0 -1
- package/src/tasks-runner/task-orchestrator.js.map +0 -1
- package/src/tasks-runner/tasks-runner.js.map +0 -1
- package/src/tasks-runner/tasks-schedule.js.map +0 -1
- package/src/tasks-runner/utils.js.map +0 -1
- package/src/utils/ab-testing.js.map +0 -1
- package/src/utils/all-file-data.js.map +0 -1
- package/src/utils/app-root.js.map +0 -1
- package/src/utils/assert-workspace-validity.js.map +0 -1
- package/src/utils/cache-directory.js.map +0 -1
- package/src/utils/child-process.js.map +0 -1
- package/src/utils/chunkify.js.map +0 -1
- package/src/utils/code-frames.js.map +0 -1
- package/src/utils/collapse-expanded-outputs.js.map +0 -1
- package/src/utils/command-line-utils.js.map +0 -1
- package/src/utils/consume-messages-from-socket.js.map +0 -1
- package/src/utils/default-base.js.map +0 -1
- package/src/utils/fileutils.js.map +0 -1
- package/src/utils/find-matching-projects.js.map +0 -1
- package/src/utils/find-workspace-root.js.map +0 -1
- package/src/utils/ignore.js.map +0 -1
- package/src/utils/installation-directory.js.map +0 -1
- package/src/utils/is-ci.js.map +0 -1
- package/src/utils/json-diff.js.map +0 -1
- package/src/utils/json.js.map +0 -1
- package/src/utils/logger.js.map +0 -1
- package/src/utils/nx-cloud-utils.js.map +0 -1
- package/src/utils/nx-plugin.js.map +0 -1
- package/src/utils/object-sort.js.map +0 -1
- package/src/utils/output.js.map +0 -1
- package/src/utils/package-json.js.map +0 -1
- package/src/utils/package-manager.js.map +0 -1
- package/src/utils/params.js.map +0 -1
- package/src/utils/path.js.map +0 -1
- package/src/utils/perf-logging.js.map +0 -1
- package/src/utils/plugins/community-plugins.js.map +0 -1
- package/src/utils/plugins/core-plugins.js.map +0 -1
- package/src/utils/plugins/index.js.map +0 -1
- package/src/utils/plugins/installed-plugins.js.map +0 -1
- package/src/utils/plugins/local-plugins.js.map +0 -1
- package/src/utils/plugins/models.js.map +0 -1
- package/src/utils/plugins/plugin-capabilities.js.map +0 -1
- package/src/utils/plugins/shared.js.map +0 -1
- package/src/utils/print-help.js.map +0 -1
- package/src/utils/project-graph-utils.js.map +0 -1
- package/src/utils/promised-based-queue.js.map +0 -1
- package/src/utils/register.js.map +0 -1
- package/src/utils/serialize-overrides-into-command-line.js.map +0 -1
- package/src/utils/split-target.js.map +0 -1
- package/src/utils/strip-indents.js.map +0 -1
- package/src/utils/testing/mock-fs.js.map +0 -1
- package/src/utils/testing/temp-fs.js.map +0 -1
- package/src/utils/typescript.js.map +0 -1
- package/src/utils/versions.js.map +0 -1
- package/src/utils/workspace-configuration-check.js.map +0 -1
- package/src/utils/workspace-root.js.map +0 -1
- package/tasks-runners/default.js.map +0 -1
package/bin/init-local.js
CHANGED
package/bin/nx.js
CHANGED
|
@@ -12,6 +12,19 @@ const package_json_1 = require("../src/utils/package-json");
|
|
|
12
12
|
const child_process_1 = require("child_process");
|
|
13
13
|
const path_1 = require("path");
|
|
14
14
|
function main() {
|
|
15
|
+
if (process.argv[2] !== 'report' &&
|
|
16
|
+
process.argv[2] !== '--version' &&
|
|
17
|
+
process.argv[2] !== '--help' &&
|
|
18
|
+
!_supportedPlatform()) {
|
|
19
|
+
output_1.output.error({
|
|
20
|
+
title: 'Platform not supported',
|
|
21
|
+
bodyLines: [
|
|
22
|
+
`This platform (${process.platform}-${process.arch}) is currently not supported by Nx.`,
|
|
23
|
+
'For a list of supported platforms, please see https://nx.dev/recipes/ci/troubleshoot-nx-install-issues#supported-native-module-platform',
|
|
24
|
+
],
|
|
25
|
+
});
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
15
28
|
const workspace = (0, find_workspace_root_1.findWorkspaceRoot)(process.cwd());
|
|
16
29
|
// new is a special case because there is no local workspace to load
|
|
17
30
|
if (process.argv[2] === 'new' ||
|
|
@@ -43,7 +56,7 @@ function main() {
|
|
|
43
56
|
handleNxVersionCommand(LOCAL_NX_VERSION, GLOBAL_NX_VERSION);
|
|
44
57
|
}
|
|
45
58
|
if (!workspace) {
|
|
46
|
-
handleNoWorkspace();
|
|
59
|
+
handleNoWorkspace(GLOBAL_NX_VERSION);
|
|
47
60
|
}
|
|
48
61
|
if (!localNx) {
|
|
49
62
|
handleMissingLocalInstallation();
|
|
@@ -65,7 +78,7 @@ function main() {
|
|
|
65
78
|
}
|
|
66
79
|
}
|
|
67
80
|
}
|
|
68
|
-
function handleNoWorkspace() {
|
|
81
|
+
function handleNoWorkspace(globalNxVersion) {
|
|
69
82
|
output_1.output.log({
|
|
70
83
|
title: `The current directory isn't part of an Nx workspace.`,
|
|
71
84
|
bodyLines: [
|
|
@@ -79,6 +92,7 @@ function handleNoWorkspace() {
|
|
|
79
92
|
output_1.output.note({
|
|
80
93
|
title: `For more information please visit https://nx.dev/`,
|
|
81
94
|
});
|
|
95
|
+
warnIfUsingOutdatedGlobalInstall(globalNxVersion);
|
|
82
96
|
process.exit(1);
|
|
83
97
|
}
|
|
84
98
|
function handleNxVersionCommand(LOCAL_NX_VERSION, GLOBAL_NX_VERSION) {
|
|
@@ -138,11 +152,7 @@ function warnIfUsingOutdatedGlobalInstall(globalNxVersion, localNxVersion) {
|
|
|
138
152
|
if (process.env.NX_CLI_SET) {
|
|
139
153
|
return;
|
|
140
154
|
}
|
|
141
|
-
const isOutdatedGlobalInstall = globalNxVersion
|
|
142
|
-
((localNxVersion && (0, semver_1.major)(globalNxVersion) < (0, semver_1.major)(localNxVersion)) ||
|
|
143
|
-
(!localNxVersion &&
|
|
144
|
-
getLatestVersionOfNx() &&
|
|
145
|
-
(0, semver_1.major)(globalNxVersion) < (0, semver_1.major)(getLatestVersionOfNx())));
|
|
155
|
+
const isOutdatedGlobalInstall = checkOutdatedGlobalInstallation(globalNxVersion, localNxVersion);
|
|
146
156
|
// Using a global Nx Install
|
|
147
157
|
if (isOutdatedGlobalInstall) {
|
|
148
158
|
const bodyLines = localNxVersion
|
|
@@ -157,6 +167,25 @@ function warnIfUsingOutdatedGlobalInstall(globalNxVersion, localNxVersion) {
|
|
|
157
167
|
});
|
|
158
168
|
}
|
|
159
169
|
}
|
|
170
|
+
function checkOutdatedGlobalInstallation(globalNxVersion, localNxVersion) {
|
|
171
|
+
// We aren't running a global install, so we can't know if its outdated.
|
|
172
|
+
if (!globalNxVersion) {
|
|
173
|
+
return false;
|
|
174
|
+
}
|
|
175
|
+
if (localNxVersion) {
|
|
176
|
+
// If the global Nx install is at least a major version behind the local install, warn.
|
|
177
|
+
return (0, semver_1.major)(globalNxVersion) < (0, semver_1.major)(localNxVersion);
|
|
178
|
+
}
|
|
179
|
+
// No local installation was detected. This can happen if the user is running a global install
|
|
180
|
+
// that contains an older version of Nx, which is unable to detect the local installation. The most
|
|
181
|
+
// recent case where this would have happened would be when we stopped generating workspace.json by default,
|
|
182
|
+
// as older global installations used it to determine the workspace root. This only be hit in rare cases,
|
|
183
|
+
// but can provide valuable insights for troubleshooting.
|
|
184
|
+
const latestVersionOfNx = getLatestVersionOfNx();
|
|
185
|
+
if (latestVersionOfNx && (0, semver_1.major)(globalNxVersion) < (0, semver_1.major)(latestVersionOfNx)) {
|
|
186
|
+
return true;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
160
189
|
function getLocalNxVersion(workspace) {
|
|
161
190
|
try {
|
|
162
191
|
const { packageJson } = (0, package_json_1.readModulePackageJson)('nx', (0, installation_directory_1.getNxRequirePaths)(workspace.dir));
|
|
@@ -177,9 +206,17 @@ function _getLatestVersionOfNx() {
|
|
|
177
206
|
}
|
|
178
207
|
}
|
|
179
208
|
}
|
|
209
|
+
function _supportedPlatform() {
|
|
210
|
+
try {
|
|
211
|
+
require('../src/native');
|
|
212
|
+
return true;
|
|
213
|
+
}
|
|
214
|
+
catch (_a) {
|
|
215
|
+
return false;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
180
218
|
const getLatestVersionOfNx = ((fn) => {
|
|
181
219
|
let cache = null;
|
|
182
220
|
return () => cache || (cache = fn());
|
|
183
221
|
})(_getLatestVersionOfNx);
|
|
184
222
|
main();
|
|
185
|
-
//# sourceMappingURL=nx.js.map
|
package/bin/run-executor.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "16.4.0-beta.
|
|
3
|
+
"version": "16.4.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
|
|
6
6
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://nx.dev",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nrwl/tao": "16.4.0-beta.
|
|
35
|
+
"@nrwl/tao": "16.4.0-beta.1",
|
|
36
36
|
"@parcel/watcher": "2.0.4",
|
|
37
37
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
38
38
|
"@yarnpkg/parsers": "^3.0.0-rc.18",
|
|
@@ -80,16 +80,16 @@
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"optionalDependencies": {
|
|
83
|
-
"@nx/nx-darwin-arm64": "16.4.0-beta.
|
|
84
|
-
"@nx/nx-darwin-x64": "16.4.0-beta.
|
|
85
|
-
"@nx/nx-freebsd-x64": "16.4.0-beta.
|
|
86
|
-
"@nx/nx-linux-arm-gnueabihf": "16.4.0-beta.
|
|
87
|
-
"@nx/nx-linux-arm64-gnu": "16.4.0-beta.
|
|
88
|
-
"@nx/nx-linux-arm64-musl": "16.4.0-beta.
|
|
89
|
-
"@nx/nx-linux-x64-gnu": "16.4.0-beta.
|
|
90
|
-
"@nx/nx-linux-x64-musl": "16.4.0-beta.
|
|
91
|
-
"@nx/nx-win32-arm64-msvc": "16.4.0-beta.
|
|
92
|
-
"@nx/nx-win32-x64-msvc": "16.4.0-beta.
|
|
83
|
+
"@nx/nx-darwin-arm64": "16.4.0-beta.1",
|
|
84
|
+
"@nx/nx-darwin-x64": "16.4.0-beta.1",
|
|
85
|
+
"@nx/nx-freebsd-x64": "16.4.0-beta.1",
|
|
86
|
+
"@nx/nx-linux-arm-gnueabihf": "16.4.0-beta.1",
|
|
87
|
+
"@nx/nx-linux-arm64-gnu": "16.4.0-beta.1",
|
|
88
|
+
"@nx/nx-linux-arm64-musl": "16.4.0-beta.1",
|
|
89
|
+
"@nx/nx-linux-x64-gnu": "16.4.0-beta.1",
|
|
90
|
+
"@nx/nx-linux-x64-musl": "16.4.0-beta.1",
|
|
91
|
+
"@nx/nx-win32-arm64-msvc": "16.4.0-beta.1",
|
|
92
|
+
"@nx/nx-win32-x64-msvc": "16.4.0-beta.1"
|
|
93
93
|
},
|
|
94
94
|
"nx-migrations": {
|
|
95
95
|
"migrations": "./migrations.json",
|
|
@@ -175,5 +175,5 @@
|
|
|
175
175
|
},
|
|
176
176
|
"main": "./bin/nx.js",
|
|
177
177
|
"types": "./bin/nx.d.ts",
|
|
178
|
-
"gitHead": "
|
|
178
|
+
"gitHead": "1c4fb934b607f0d93bb23bff2cf0f39b31a8fa43"
|
|
179
179
|
}
|
package/plugins/package-json.js
CHANGED
package/src/adapter/compat.js
CHANGED
|
@@ -17,6 +17,8 @@ const workspace_configuration_check_1 = require("../../utils/workspace-configura
|
|
|
17
17
|
const find_matching_projects_1 = require("../../utils/find-matching-projects");
|
|
18
18
|
const graph_1 = require("../graph/graph");
|
|
19
19
|
const all_file_data_1 = require("../../utils/all-file-data");
|
|
20
|
+
const logger_1 = require("../../utils/logger");
|
|
21
|
+
const command_object_1 = require("./command-object");
|
|
20
22
|
function affected(command, args, extraTargetDependencies = {}) {
|
|
21
23
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22
24
|
perf_hooks_1.performance.mark('code-loading:end');
|
|
@@ -35,6 +37,7 @@ function affected(command, args, extraTargetDependencies = {}) {
|
|
|
35
37
|
try {
|
|
36
38
|
switch (command) {
|
|
37
39
|
case 'graph':
|
|
40
|
+
logger_1.logger.warn([logger_1.NX_PREFIX, command_object_1.affectedGraphDeprecationMessage].join(' '));
|
|
38
41
|
const projectNames = projects.map((p) => p.name);
|
|
39
42
|
yield (0, graph_1.generateGraph)(args, projectNames);
|
|
40
43
|
break;
|
|
@@ -104,4 +107,3 @@ function printError(e, verbose) {
|
|
|
104
107
|
bodyLines,
|
|
105
108
|
});
|
|
106
109
|
}
|
|
107
|
-
//# sourceMappingURL=affected.js.map
|
|
@@ -4,5 +4,13 @@ export declare const yargsAffectedTestCommand: CommandModule;
|
|
|
4
4
|
export declare const yargsAffectedBuildCommand: CommandModule;
|
|
5
5
|
export declare const yargsAffectedLintCommand: CommandModule;
|
|
6
6
|
export declare const yargsAffectedE2ECommand: CommandModule;
|
|
7
|
+
export declare const affectedGraphDeprecationMessage = "Use `nx graph --affected`, or` nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx 18.";
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated 'Use `nx graph --affected`, or` nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx 18.'
|
|
10
|
+
*/
|
|
7
11
|
export declare const yargsAffectedGraphCommand: CommandModule;
|
|
12
|
+
export declare const printAffectedDeprecationMessage = "Use `nx show --affected`, `nx affected --graph` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx 18.";
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated 'Use `nx show --affected`, `nx affected --graph` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx 18.'
|
|
15
|
+
*/
|
|
8
16
|
export declare const yargsPrintAffectedCommand: CommandModule;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.yargsPrintAffectedCommand = exports.yargsAffectedGraphCommand = exports.yargsAffectedE2ECommand = exports.yargsAffectedLintCommand = exports.yargsAffectedBuildCommand = exports.yargsAffectedTestCommand = exports.yargsAffectedCommand = void 0;
|
|
3
|
+
exports.yargsPrintAffectedCommand = exports.printAffectedDeprecationMessage = exports.yargsAffectedGraphCommand = exports.affectedGraphDeprecationMessage = exports.yargsAffectedE2ECommand = exports.yargsAffectedLintCommand = exports.yargsAffectedBuildCommand = exports.yargsAffectedTestCommand = exports.yargsAffectedCommand = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const documentation_1 = require("../yargs-utils/documentation");
|
|
6
6
|
const shared_options_1 = require("../yargs-utils/shared-options");
|
|
@@ -51,6 +51,10 @@ exports.yargsAffectedE2ECommand = {
|
|
|
51
51
|
return (yield Promise.resolve().then(() => require('./affected'))).affected('affected', Object.assign(Object.assign({}, (0, shared_options_1.withOverrides)(args)), { target: 'e2e' }));
|
|
52
52
|
}),
|
|
53
53
|
};
|
|
54
|
+
exports.affectedGraphDeprecationMessage = 'Use `nx graph --affected`, or` nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx 18.';
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated 'Use `nx graph --affected`, or` nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx 18.'
|
|
57
|
+
*/
|
|
54
58
|
exports.yargsAffectedGraphCommand = {
|
|
55
59
|
command: 'affected:graph',
|
|
56
60
|
describe: 'Graph dependencies affected by changes',
|
|
@@ -59,7 +63,12 @@ exports.yargsAffectedGraphCommand = {
|
|
|
59
63
|
handler: (args) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
60
64
|
return yield (yield Promise.resolve().then(() => require('./affected'))).affected('graph', Object.assign({}, args));
|
|
61
65
|
}),
|
|
66
|
+
deprecated: exports.affectedGraphDeprecationMessage,
|
|
62
67
|
};
|
|
68
|
+
exports.printAffectedDeprecationMessage = 'Use `nx show --affected`, `nx affected --graph` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx 18.';
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated 'Use `nx show --affected`, `nx affected --graph` or `nx graph --affected` depending on which best suits your use case. The `print-affected` command will be removed in Nx 18.'
|
|
71
|
+
*/
|
|
63
72
|
exports.yargsPrintAffectedCommand = {
|
|
64
73
|
command: 'print-affected',
|
|
65
74
|
describe: 'Prints information about the projects and targets affected by changes',
|
|
@@ -77,5 +86,5 @@ exports.yargsPrintAffectedCommand = {
|
|
|
77
86
|
yield (yield Promise.resolve().then(() => require('./affected'))).affected('print-affected', (0, shared_options_1.withOverrides)(args));
|
|
78
87
|
process.exit(0);
|
|
79
88
|
}),
|
|
89
|
+
deprecated: exports.printAffectedDeprecationMessage,
|
|
80
90
|
};
|
|
81
|
-
//# sourceMappingURL=command-object.js.map
|
|
@@ -2,6 +2,9 @@ import * as yargs from 'yargs';
|
|
|
2
2
|
import type { NxArgs } from '../../utils/command-line-utils';
|
|
3
3
|
import { ProjectGraph, ProjectGraphProjectNode } from '../../config/project-graph';
|
|
4
4
|
import { NxJsonConfiguration } from '../../config/nx-json';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use showProjectsHandler, generateGraph, or affected (without the print-affected mode) instead.
|
|
7
|
+
*/
|
|
5
8
|
export declare function printAffected(affectedProjects: ProjectGraphProjectNode[], projectGraph: ProjectGraph, { nxJson }: {
|
|
6
9
|
nxJson: NxJsonConfiguration;
|
|
7
10
|
}, nxArgs: NxArgs, overrides: yargs.Arguments): Promise<void>;
|
|
@@ -9,9 +9,15 @@ const task_hasher_1 = require("../../hasher/task-hasher");
|
|
|
9
9
|
const hash_task_1 = require("../../hasher/hash-task");
|
|
10
10
|
const workspace_root_1 = require("../../utils/workspace-root");
|
|
11
11
|
const package_manager_1 = require("../../utils/package-manager");
|
|
12
|
-
const
|
|
12
|
+
const file_hasher_1 = require("../../hasher/file-hasher");
|
|
13
|
+
const command_object_1 = require("./command-object");
|
|
14
|
+
const logger_1 = require("../../utils/logger");
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use showProjectsHandler, generateGraph, or affected (without the print-affected mode) instead.
|
|
17
|
+
*/
|
|
13
18
|
function printAffected(affectedProjects, projectGraph, { nxJson }, nxArgs, overrides) {
|
|
14
19
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
logger_1.logger.warn([logger_1.NX_PREFIX, command_object_1.printAffectedDeprecationMessage].join(' '));
|
|
15
21
|
const projectsForType = affectedProjects.filter((p) => nxArgs.type ? p.type === nxArgs.type : true);
|
|
16
22
|
const projectNames = projectsForType.map((p) => p.name);
|
|
17
23
|
const tasksJson = nxArgs.targets && nxArgs.targets.length > 0
|
|
@@ -34,7 +40,7 @@ exports.printAffected = printAffected;
|
|
|
34
40
|
function createTasks(affectedProjectsWithTargetAndConfig, projectGraph, nxArgs, nxJson, overrides) {
|
|
35
41
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
42
|
const workspaces = new workspaces_1.Workspaces(workspace_root_1.workspaceRoot);
|
|
37
|
-
const hasher = new task_hasher_1.InProcessTaskHasher({}, [], projectGraph, nxJson, {},
|
|
43
|
+
const hasher = new task_hasher_1.InProcessTaskHasher({}, [], projectGraph, nxJson, {}, file_hasher_1.fileHasher);
|
|
38
44
|
const execCommand = (0, package_manager_1.getPackageManagerCommand)().exec;
|
|
39
45
|
const p = new create_task_graph_1.ProcessTasks({}, projectGraph);
|
|
40
46
|
const tasks = [];
|
|
@@ -105,4 +111,3 @@ function throwIfEmpty(select, value) {
|
|
|
105
111
|
throw new Error(`Cannot select '${select}' in the results of print-affected.`);
|
|
106
112
|
}
|
|
107
113
|
}
|
|
108
|
-
//# sourceMappingURL=print-affected.js.map
|
|
@@ -18,4 +18,3 @@ exports.yargsViewLogsCommand = {
|
|
|
18
18
|
describe: 'Enables you to view and interact with the logs via the advanced analytic UI from Nx Cloud to help you debug your issue. To do this, Nx needs to connect your workspace to Nx Cloud and upload the most recent run details. Only the metrics are uploaded, not the artefacts.',
|
|
19
19
|
handler: () => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return process.exit(yield (yield Promise.resolve().then(() => require('./view-logs'))).viewLogs()); }),
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=command-object.js.map
|
|
@@ -20,4 +20,3 @@ exports.yargsDepGraphCommand = {
|
|
|
20
20
|
.implies('head', 'affected'),
|
|
21
21
|
handler: (args) => tslib_1.__awaiter(void 0, void 0, void 0, function* () { return yield (yield Promise.resolve().then(() => require('./graph'))).generateGraph(args, []); }),
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=command-object.js.map
|
|
@@ -12,7 +12,6 @@ const path_1 = require("path");
|
|
|
12
12
|
const perf_hooks_1 = require("perf_hooks");
|
|
13
13
|
const url_1 = require("url");
|
|
14
14
|
const configuration_1 = require("../../config/configuration");
|
|
15
|
-
const impl_1 = require("../../hasher/impl");
|
|
16
15
|
const output_1 = require("../../utils/output");
|
|
17
16
|
const fileutils_1 = require("../../utils/fileutils");
|
|
18
17
|
const operators_1 = require("../../project-graph/operators");
|
|
@@ -20,6 +19,7 @@ const project_graph_1 = require("../../project-graph/project-graph");
|
|
|
20
19
|
const create_task_graph_1 = require("../../tasks-runner/create-task-graph");
|
|
21
20
|
const client_1 = require("../../daemon/client/client");
|
|
22
21
|
const nx_deps_cache_1 = require("../../project-graph/nx-deps-cache");
|
|
22
|
+
const file_hasher_1 = require("../../hasher/file-hasher");
|
|
23
23
|
const affected_1 = require("../affected/affected");
|
|
24
24
|
const command_line_utils_1 = require("../../utils/command-line-utils");
|
|
25
25
|
// maps file extention to MIME types
|
|
@@ -389,7 +389,7 @@ function createFileWatcher() {
|
|
|
389
389
|
function createDepGraphClientResponse(affected = []) {
|
|
390
390
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
391
391
|
perf_hooks_1.performance.mark('project graph watch calculation:start');
|
|
392
|
-
yield
|
|
392
|
+
yield file_hasher_1.fileHasher.init();
|
|
393
393
|
let graph = (0, operators_1.pruneExternalNodes)(yield (0, project_graph_1.createProjectGraphAsync)({ exitOnError: true }));
|
|
394
394
|
let fileMap = (0, nx_deps_cache_1.readProjectFileMapCache)().projectFileMap;
|
|
395
395
|
perf_hooks_1.performance.mark('project graph watch calculation:end');
|
|
@@ -490,4 +490,3 @@ function createJsonOutput(graph, projects, targets) {
|
|
|
490
490
|
}
|
|
491
491
|
return response;
|
|
492
492
|
}
|
|
493
|
-
//# sourceMappingURL=graph.js.map
|
|
@@ -14,4 +14,3 @@ function addCracoCommandsToPackageScripts(appName, isStandalone) {
|
|
|
14
14
|
(0, fileutils_1.writeJsonFile)(packageJsonPath, packageJson);
|
|
15
15
|
}
|
|
16
16
|
exports.addCracoCommandsToPackageScripts = addCracoCommandsToPackageScripts;
|
|
17
|
-
//# sourceMappingURL=add-craco-commands-to-package-scripts.js.map
|
|
@@ -11,4 +11,3 @@ function addViteCommandsToPackageScripts(appName, isStandalone) {
|
|
|
11
11
|
(0, fileutils_1.writeJsonFile)(packageJsonPath, packageJson, { spaces: 2 });
|
|
12
12
|
}
|
|
13
13
|
exports.addViteCommandsToPackageScripts = addViteCommandsToPackageScripts;
|
|
14
|
-
//# sourceMappingURL=add-vite-commands-to-package-scripts.js.map
|
|
@@ -60,4 +60,3 @@ function writeCracoConfig(appName, isCRA5, isStandalone) {
|
|
|
60
60
|
(0, fs_1.writeFileSync)(isStandalone ? 'craco.config.js' : `apps/${appName}/craco.config.js`, configOverride);
|
|
61
61
|
}
|
|
62
62
|
exports.writeCracoConfig = writeCracoConfig;
|
|
63
|
-
//# sourceMappingURL=write-craco-config.js.map
|