nx 16.4.0-beta.0 → 16.4.0-beta.10
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/schemas/nx-schema.json +15 -0
- package/schemas/project-schema.json +15 -0
- package/src/adapter/angular-json.d.ts +1 -1
- package/src/adapter/angular-json.js +6 -7
- 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 +12 -15
- 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 +8 -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 +4 -12
- 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 +1 -2
- 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 +8 -6
- 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 +1 -2
- 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 +3 -16
- 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.d.ts +3 -3
- package/src/command-line/yargs-utils/shared-options.js +5 -3
- package/src/config/configuration.js +0 -1
- package/src/config/misc-interfaces.d.ts +7 -4
- 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.d.ts +3 -0
- package/src/config/workspace-json-project-json.js +0 -1
- package/src/config/workspaces.d.ts +1 -1
- package/src/config/workspaces.js +9 -9
- 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.d.ts +2 -2
- package/src/daemon/client/client.js +3 -3
- 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.d.ts +2 -1
- package/src/daemon/server/handle-hash-tasks.js +6 -4
- 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 +19 -13
- package/src/daemon/server/server.js +6 -7
- 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 +1 -2
- package/src/hasher/file-hasher.d.ts +15 -0
- package/src/hasher/file-hasher.js +83 -0
- package/src/hasher/hash-task.d.ts +2 -1
- package/src/hasher/hash-task.js +12 -5
- package/src/hasher/task-hasher.d.ts +16 -10
- package/src/hasher/task-hasher.js +95 -37
- 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/native/index.d.ts +18 -3
- package/src/native/index.js +5 -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 +8 -7
- package/src/plugins/js/lock-file/yarn-parser.js +9 -9
- package/src/plugins/js/package-json/create-package-json.js +4 -3
- 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 +9 -5
- 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 +4 -7
- package/src/project-graph/utils/find-project-for-path.js +0 -1
- package/src/project-graph/utils/retrieve-workspace-files.d.ts +21 -0
- package/src/project-graph/utils/retrieve-workspace-files.js +107 -0
- package/src/tasks-runner/batch/batch-messages.d.ts +3 -7
- package/src/tasks-runner/batch/batch-messages.js +0 -1
- package/src/tasks-runner/batch/run-batch.js +4 -1
- package/src/tasks-runner/cache.js +0 -1
- package/src/tasks-runner/create-task-graph.d.ts +2 -1
- package/src/tasks-runner/create-task-graph.js +9 -2
- package/src/tasks-runner/default-tasks-runner.js +0 -1
- package/src/tasks-runner/forked-process-task-runner.js +4 -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 +23 -22
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +11 -12
- 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.d.ts +1 -1
- package/src/tasks-runner/life-cycles/static-run-many-terminal-output-life-cycle.js +3 -4
- 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 +3 -2
- package/src/tasks-runner/life-cycles/task-profiling-life-cycle.js +3 -2
- package/src/tasks-runner/life-cycles/task-timings-life-cycle.js +3 -2
- 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 +4 -5
- package/src/tasks-runner/task-graph-utils.js +0 -1
- package/src/tasks-runner/task-orchestrator.js +3 -2
- 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/async-iterator.d.ts +2 -0
- package/src/utils/async-iterator.js +20 -0
- 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.d.ts +3 -0
- package/src/utils/output.js +17 -3
- 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 +0 -54
- 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.10",
|
|
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.10",
|
|
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.10",
|
|
84
|
+
"@nx/nx-darwin-x64": "16.4.0-beta.10",
|
|
85
|
+
"@nx/nx-freebsd-x64": "16.4.0-beta.10",
|
|
86
|
+
"@nx/nx-linux-arm-gnueabihf": "16.4.0-beta.10",
|
|
87
|
+
"@nx/nx-linux-arm64-gnu": "16.4.0-beta.10",
|
|
88
|
+
"@nx/nx-linux-arm64-musl": "16.4.0-beta.10",
|
|
89
|
+
"@nx/nx-linux-x64-gnu": "16.4.0-beta.10",
|
|
90
|
+
"@nx/nx-linux-x64-musl": "16.4.0-beta.10",
|
|
91
|
+
"@nx/nx-win32-arm64-msvc": "16.4.0-beta.10",
|
|
92
|
+
"@nx/nx-win32-x64-msvc": "16.4.0-beta.10"
|
|
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": "d2bde0605c692a023bc9c28686f3a3037bbd56d3"
|
|
179
179
|
}
|
package/plugins/package-json.js
CHANGED
package/schemas/nx-schema.json
CHANGED
|
@@ -168,6 +168,21 @@
|
|
|
168
168
|
}
|
|
169
169
|
},
|
|
170
170
|
"additionalProperties": false
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"type": "object",
|
|
174
|
+
"properties": {
|
|
175
|
+
"dependentTasksOutputFiles": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"description": "The glob list of output files that project depends on."
|
|
178
|
+
},
|
|
179
|
+
"transitive": {
|
|
180
|
+
"type": "boolean",
|
|
181
|
+
"description": "Whether the check for outputs should be recursive or stop at the first level of dependencies."
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"required": ["dependentTasksOutputFiles"],
|
|
185
|
+
"additionalProperties": false
|
|
171
186
|
}
|
|
172
187
|
]
|
|
173
188
|
}
|
|
@@ -216,6 +216,21 @@
|
|
|
216
216
|
}
|
|
217
217
|
},
|
|
218
218
|
"additionalProperties": false
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"type": "object",
|
|
222
|
+
"properties": {
|
|
223
|
+
"dependentTasksOutputFiles": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"description": "The glob list of output files that project depends on."
|
|
226
|
+
},
|
|
227
|
+
"transitive": {
|
|
228
|
+
"type": "boolean",
|
|
229
|
+
"description": "Whether the check for outputs should be recursive or stop at the first level of dependencies."
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"required": ["dependentTasksOutputFiles"],
|
|
233
|
+
"additionalProperties": false
|
|
219
234
|
}
|
|
220
235
|
]
|
|
221
236
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProjectConfiguration, ProjectsConfigurations } from '../config/workspace-json-project-json';
|
|
2
2
|
export declare function shouldMergeAngularProjects(root: string, includeProjectsFromAngularJson: boolean): boolean;
|
|
3
3
|
export declare function isAngularPluginInstalled(): boolean;
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function mergeAngularJsonAndProjects(projects: {
|
|
5
5
|
[name: string]: ProjectConfiguration;
|
|
6
6
|
}, angularCliWorkspaceRoot: string): {
|
|
7
7
|
[name: string]: ProjectConfiguration;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toOldFormat = exports.toNewFormat = exports.
|
|
3
|
+
exports.toOldFormat = exports.toNewFormat = exports.mergeAngularJsonAndProjects = exports.isAngularPluginInstalled = exports.shouldMergeAngularProjects = void 0;
|
|
4
4
|
const fs_1 = require("fs");
|
|
5
5
|
const path = require("path");
|
|
6
6
|
const fileutils_1 = require("../utils/fileutils");
|
|
@@ -38,20 +38,20 @@ exports.isAngularPluginInstalled = isAngularPluginInstalled;
|
|
|
38
38
|
function readAngularJson(angularCliWorkspaceRoot) {
|
|
39
39
|
return toNewFormat((0, fileutils_1.readJsonFile)(path.join(angularCliWorkspaceRoot, 'angular.json'))).projects;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function mergeAngularJsonAndProjects(projects, angularCliWorkspaceRoot) {
|
|
42
42
|
const res = readAngularJson(angularCliWorkspaceRoot);
|
|
43
43
|
const folders = new Set();
|
|
44
44
|
for (let k of Object.keys(res)) {
|
|
45
45
|
folders.add(res[k].root);
|
|
46
46
|
}
|
|
47
|
-
for (let k of Object.keys(
|
|
48
|
-
if (!folders.has(
|
|
49
|
-
res[k] =
|
|
47
|
+
for (let k of Object.keys(projects)) {
|
|
48
|
+
if (!folders.has(projects[k].root)) {
|
|
49
|
+
res[k] = projects[k];
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
return res;
|
|
53
53
|
}
|
|
54
|
-
exports.
|
|
54
|
+
exports.mergeAngularJsonAndProjects = mergeAngularJsonAndProjects;
|
|
55
55
|
function toNewFormat(w) {
|
|
56
56
|
Object.values(w.projects || {}).forEach((projectConfig) => {
|
|
57
57
|
if (projectConfig.architect) {
|
|
@@ -102,4 +102,3 @@ function toOldFormat(w) {
|
|
|
102
102
|
return w;
|
|
103
103
|
}
|
|
104
104
|
exports.toOldFormat = toOldFormat;
|
|
105
|
-
//# sourceMappingURL=angular-json.js.map
|
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,21 +40,13 @@ 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
|
|
43
|
+
const defaultDependencyConfigs = (0, create_task_graph_1.mapTargetDefaultsToDependencies)(nxJson.targetDefaults);
|
|
44
|
+
const taskGraph = (0, create_task_graph_1.createTaskGraph)(projectGraph, defaultDependencyConfigs, affectedProjectsWithTargetAndConfig.map((p) => p.name), nxArgs.targets, nxArgs.configuration, overrides);
|
|
45
|
+
const hasher = new task_hasher_1.InProcessTaskHasher({}, [], projectGraph, taskGraph, nxJson, {}, file_hasher_1.fileHasher);
|
|
38
46
|
const execCommand = (0, package_manager_1.getPackageManagerCommand)().exec;
|
|
39
|
-
const
|
|
40
|
-
const tasks = [];
|
|
41
|
-
for (let target of nxArgs.targets) {
|
|
42
|
-
for (const affectedProject of affectedProjectsWithTargetAndConfig) {
|
|
43
|
-
const resolvedConfiguration = p.resolveConfiguration(affectedProject, target, nxArgs.configuration);
|
|
44
|
-
try {
|
|
45
|
-
tasks.push(p.createTask(p.getId(affectedProject.name, target, resolvedConfiguration), affectedProject, target, resolvedConfiguration, overrides));
|
|
46
|
-
}
|
|
47
|
-
catch (e) { }
|
|
48
|
-
}
|
|
49
|
-
}
|
|
47
|
+
const tasks = Object.values(taskGraph.tasks);
|
|
50
48
|
yield Promise.all(tasks.map((t) => (0, hash_task_1.hashTask)(workspaces, hasher, projectGraph, {}, t)));
|
|
51
|
-
return tasks.map((task
|
|
49
|
+
return tasks.map((task) => ({
|
|
52
50
|
id: task.id,
|
|
53
51
|
overrides,
|
|
54
52
|
target: task.target,
|
|
@@ -105,4 +103,3 @@ function throwIfEmpty(select, value) {
|
|
|
105
103
|
throw new Error(`Cannot select '${select}' in the results of print-affected.`);
|
|
106
104
|
}
|
|
107
105
|
}
|
|
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
|
|
@@ -248,6 +248,14 @@ exports.examples = {
|
|
|
248
248
|
command: 'run-many -t test --projects=tag:api-*',
|
|
249
249
|
description: 'Test all projects with tags starting with `api-`. Note: your shell may require you to escape the `*` like this: `\\*`',
|
|
250
250
|
},
|
|
251
|
+
{
|
|
252
|
+
command: 'run-many -t test --projects=tag:type:ui',
|
|
253
|
+
description: 'Test all projects with a `type:ui` tag',
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
command: 'run-many -t test --projects=tag:type:feature,tag:type:ui',
|
|
257
|
+
description: 'Test all projects with a `type:feature` or `type:ui` tag',
|
|
258
|
+
},
|
|
251
259
|
{
|
|
252
260
|
command: 'run-many --targets=lint,test,build --all',
|
|
253
261
|
description: 'Run lint, test, and build targets for all projects. Requires Nx v15.4+',
|
|
@@ -336,4 +344,3 @@ exports.examples = {
|
|
|
336
344
|
},
|
|
337
345
|
],
|
|
338
346
|
};
|
|
339
|
-
//# sourceMappingURL=examples.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');
|
|
@@ -423,7 +423,7 @@ function createTaskGraphClientResponse() {
|
|
|
423
423
|
}
|
|
424
424
|
function getAllTaskGraphsForWorkspace(projectGraph) {
|
|
425
425
|
const nxJson = (0, configuration_1.readNxJson)();
|
|
426
|
-
const defaultDependencyConfigs = mapTargetDefaultsToDependencies(nxJson.targetDefaults);
|
|
426
|
+
const defaultDependencyConfigs = (0, create_task_graph_1.mapTargetDefaultsToDependencies)(nxJson.targetDefaults);
|
|
427
427
|
const taskGraphs = {};
|
|
428
428
|
const taskGraphErrors = {};
|
|
429
429
|
for (const projectName in projectGraph.nodes) {
|
|
@@ -464,13 +464,6 @@ function getAllTaskGraphsForWorkspace(projectGraph) {
|
|
|
464
464
|
}
|
|
465
465
|
return { taskGraphs, errors: taskGraphErrors };
|
|
466
466
|
}
|
|
467
|
-
function mapTargetDefaultsToDependencies(defaults) {
|
|
468
|
-
const res = {};
|
|
469
|
-
Object.keys(defaults).forEach((k) => {
|
|
470
|
-
res[k] = defaults[k].dependsOn;
|
|
471
|
-
});
|
|
472
|
-
return res;
|
|
473
|
-
}
|
|
474
467
|
function createTaskId(projectId, targetId, configurationId) {
|
|
475
468
|
if (configurationId) {
|
|
476
469
|
return `${projectId}:${targetId}:${configurationId}`;
|
|
@@ -485,9 +478,8 @@ function createJsonOutput(graph, projects, targets) {
|
|
|
485
478
|
};
|
|
486
479
|
if (targets === null || targets === void 0 ? void 0 : targets.length) {
|
|
487
480
|
const nxJson = (0, configuration_1.readNxJson)();
|
|
488
|
-
const defaultDependencyConfigs = mapTargetDefaultsToDependencies(nxJson.targetDefaults);
|
|
481
|
+
const defaultDependencyConfigs = (0, create_task_graph_1.mapTargetDefaultsToDependencies)(nxJson.targetDefaults);
|
|
489
482
|
response.tasks = (0, create_task_graph_1.createTaskGraph)(graph, defaultDependencyConfigs, projects, targets, undefined, {});
|
|
490
483
|
}
|
|
491
484
|
return response;
|
|
492
485
|
}
|
|
493
|
-
//# sourceMappingURL=graph.js.map
|