nx 19.4.3 → 19.5.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/init-local.js +2 -3
- package/package.json +30 -26
- package/src/adapter/angular-json.js +6 -6
- package/src/adapter/decorate-cli.js +1 -2
- package/src/adapter/ngcli-adapter.js +8 -8
- package/src/adapter/rxjs-for-await.js +5 -5
- package/src/command-line/add/add.js +2 -2
- package/src/command-line/affected/affected.js +2 -3
- package/src/command-line/connect/connect-to-nx-cloud.js +5 -6
- package/src/command-line/connect/view-logs.js +1 -2
- package/src/command-line/daemon/daemon.js +1 -2
- package/src/command-line/exec/exec.js +1 -2
- package/src/command-line/format/format.js +1 -2
- package/src/command-line/generate/generate.js +4 -5
- package/src/command-line/generate/generator-utils.js +2 -3
- package/src/command-line/graph/command-object.js +2 -2
- package/src/command-line/graph/graph.js +9 -5
- package/src/command-line/init/implementation/add-nx-to-monorepo.js +1 -2
- package/src/command-line/init/implementation/add-nx-to-nest.js +1 -2
- package/src/command-line/init/implementation/add-nx-to-npm-repo.js +1 -2
- package/src/command-line/init/implementation/angular/index.js +1 -2
- package/src/command-line/init/implementation/angular/integrated-workspace.js +1 -2
- package/src/command-line/init/implementation/angular/legacy-angular-versions.js +1 -2
- package/src/command-line/init/implementation/angular/standalone-workspace.js +1 -2
- package/src/command-line/init/implementation/dot-nx/add-nx-scripts.d.ts +1 -1
- package/src/command-line/init/implementation/dot-nx/add-nx-scripts.js +7 -7
- package/src/command-line/init/implementation/react/add-craco-commands-to-package-scripts.js +1 -2
- package/src/command-line/init/implementation/react/add-vite-commands-to-package-scripts.js +1 -2
- package/src/command-line/init/implementation/react/check-for-custom-webpack-setup.js +1 -2
- 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 +1 -2
- package/src/command-line/init/implementation/react/index.js +1 -2
- package/src/command-line/init/implementation/react/read-name-from-package-json.js +1 -2
- package/src/command-line/init/implementation/react/rename-js-to-jsx.js +1 -2
- package/src/command-line/init/implementation/react/tsconfig-setup.js +1 -2
- package/src/command-line/init/implementation/react/write-craco-config.js +1 -2
- package/src/command-line/init/implementation/react/write-vite-config.js +1 -2
- package/src/command-line/init/implementation/react/write-vite-index-html.js +1 -2
- package/src/command-line/init/implementation/utils.js +10 -11
- package/src/command-line/init/init-v1.js +1 -2
- package/src/command-line/init/init-v2.js +1 -2
- package/src/command-line/list/list.js +1 -2
- package/src/command-line/migrate/migrate.d.ts +1 -1
- package/src/command-line/migrate/migrate.js +5 -5
- package/src/command-line/new/new.js +1 -2
- package/src/command-line/release/changelog.js +3 -3
- package/src/command-line/release/config/config.js +3 -3
- package/src/command-line/release/config/filter-release-groups.js +1 -2
- package/src/command-line/release/config/version-plans.js +3 -4
- package/src/command-line/release/plan.js +2 -2
- package/src/command-line/release/publish.js +2 -2
- package/src/command-line/release/release.js +2 -2
- package/src/command-line/release/utils/batch-projects-by-generator-config.js +1 -2
- package/src/command-line/release/utils/exec-command.js +1 -2
- package/src/command-line/release/utils/git.js +11 -12
- package/src/command-line/release/utils/github.js +5 -6
- package/src/command-line/release/utils/launch-editor.js +1 -2
- package/src/command-line/release/utils/markdown.js +1 -2
- package/src/command-line/release/utils/print-changes.d.ts +0 -1
- package/src/command-line/release/utils/print-changes.js +2 -3
- package/src/command-line/release/utils/resolve-changelog-renderer.js +1 -2
- package/src/command-line/release/utils/resolve-nx-json-error-message.js +1 -2
- package/src/command-line/release/utils/resolve-semver-specifier.js +2 -3
- package/src/command-line/release/utils/semver.js +4 -5
- package/src/command-line/release/utils/shared.js +6 -6
- package/src/command-line/release/version.js +2 -2
- package/src/command-line/repair/repair.js +1 -2
- package/src/command-line/report/report.js +7 -7
- package/src/command-line/reset/reset.js +1 -2
- package/src/command-line/run/executor-utils.js +2 -3
- package/src/command-line/run/run-one.js +1 -2
- package/src/command-line/run/run.js +5 -6
- package/src/command-line/run-many/run-many.js +2 -3
- package/src/command-line/show/project.js +1 -2
- package/src/command-line/show/projects.js +1 -2
- package/src/command-line/watch/watch.js +8 -2
- package/src/command-line/yargs-utils/documentation.js +1 -2
- package/src/command-line/yargs-utils/shared-options.js +12 -13
- package/src/commands-runner/create-command-graph.js +1 -2
- package/src/commands-runner/get-command-projects.js +1 -2
- package/src/config/calculate-default-project-name.js +2 -3
- package/src/config/configuration.js +2 -2
- package/src/config/nx-json.js +2 -3
- package/src/config/project-graph.js +3 -3
- package/src/config/schema-utils.js +3 -4
- package/src/config/to-project-name.js +1 -2
- package/src/core/graph/main.js +1 -1
- package/src/daemon/cache.js +6 -6
- package/src/daemon/client/client.d.ts +1 -2
- package/src/daemon/client/client.js +13 -1
- package/src/daemon/client/daemon-socket-messenger.d.ts +0 -1
- package/src/daemon/client/generate-help-output.js +1 -2
- package/src/daemon/is-on-daemon.js +1 -2
- package/src/daemon/message-types/get-context-file-data.js +2 -2
- package/src/daemon/message-types/get-files-in-directory.js +2 -2
- package/src/daemon/message-types/get-nx-workspace-files.js +2 -2
- package/src/daemon/message-types/glob.js +2 -2
- package/src/daemon/message-types/hash-glob.js +2 -2
- package/src/daemon/message-types/task-history.js +3 -3
- package/src/daemon/message-types/update-context-files.js +2 -2
- package/src/daemon/server/file-watching/changed-projects.js +1 -2
- package/src/daemon/server/file-watching/file-watcher-sockets.d.ts +0 -1
- package/src/daemon/server/file-watching/file-watcher-sockets.js +4 -4
- package/src/daemon/server/handle-context-file-data.js +1 -2
- package/src/daemon/server/handle-get-files-in-directory.js +1 -2
- package/src/daemon/server/handle-get-task-history.js +1 -2
- package/src/daemon/server/handle-glob.js +1 -2
- package/src/daemon/server/handle-hash-glob.js +1 -2
- package/src/daemon/server/handle-hash-tasks.js +1 -2
- package/src/daemon/server/handle-nx-workspace-files.js +1 -2
- package/src/daemon/server/handle-outputs-tracking.js +2 -3
- package/src/daemon/server/handle-process-in-background.js +1 -2
- package/src/daemon/server/handle-request-project-graph.js +1 -2
- package/src/daemon/server/handle-request-shutdown.d.ts +0 -1
- package/src/daemon/server/handle-request-shutdown.js +1 -2
- package/src/daemon/server/handle-write-task-runs-to-history.js +1 -2
- package/src/daemon/server/outputs-tracking.js +7 -8
- package/src/daemon/server/plugins.js +2 -3
- package/src/daemon/server/project-graph-incremental-recomputation.js +3 -3
- package/src/daemon/server/server.d.ts +0 -1
- package/src/daemon/server/server.js +2 -3
- package/src/daemon/server/shutdown-utils.d.ts +0 -1
- package/src/daemon/server/shutdown-utils.js +9 -9
- package/src/daemon/server/watcher.d.ts +0 -1
- package/src/daemon/server/watcher.js +3 -4
- package/src/daemon/socket-utils.js +3 -3
- package/src/daemon/tmp-dir.js +6 -6
- package/src/devkit-exports.d.ts +1 -0
- package/src/devkit-exports.js +3 -1
- package/src/executors/noop/noop.impl.js +1 -1
- package/src/executors/run-commands/run-commands.impl.js +3 -3
- package/src/executors/run-script/run-script.impl.js +1 -1
- package/src/executors/utils/convert-nx-executor.js +1 -2
- package/src/generators/internal-utils/format-changed-files-with-prettier-if-available.js +1 -2
- package/src/generators/testing-utils/create-tree-with-empty-workspace.d.ts +1 -1
- package/src/generators/testing-utils/create-tree-with-empty-workspace.js +2 -3
- package/src/generators/testing-utils/create-tree.js +1 -2
- package/src/generators/tree.d.ts +0 -2
- package/src/generators/tree.js +3 -3
- package/src/generators/utils/glob.js +2 -3
- package/src/generators/utils/json.js +3 -4
- package/src/generators/utils/nx-json.js +2 -3
- package/src/generators/utils/project-configuration.js +7 -7
- package/src/hasher/create-task-hasher.js +1 -2
- package/src/hasher/file-hasher.js +2 -3
- package/src/hasher/hash-task.d.ts +0 -1
- package/src/hasher/hash-task.js +2 -3
- package/src/hasher/native-task-hasher-impl.d.ts +0 -1
- package/src/hasher/node-task-hasher-impl.d.ts +0 -1
- package/src/hasher/task-hasher.d.ts +0 -1
- package/src/hasher/task-hasher.js +10 -10
- package/src/migrations/update-15-0-0/migrate-to-inputs.js +1 -1
- package/src/migrations/update-15-0-0/prefix-outputs.js +1 -1
- package/src/migrations/update-16-0-0/remove-nrwl-cli.js +1 -1
- package/src/migrations/update-16-0-0/update-depends-on-to-tokens.js +1 -1
- package/src/migrations/update-16-0-0/update-nx-cloud-runner.js +1 -1
- package/src/migrations/update-16-2-0/remove-run-commands-output-path.js +1 -1
- package/src/migrations/update-16-8-0/escape-dollar-sign-env-variables.js +1 -1
- package/src/migrations/update-16-9-0/remove-project-name-and-root-format.js +1 -1
- package/src/migrations/update-17-0-0/move-cache-directory.js +1 -1
- package/src/migrations/update-17-0-0/rm-default-collection-npm-scope.js +1 -1
- package/src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options.js +1 -1
- package/src/migrations/update-17-2-0/move-default-base.js +1 -1
- package/src/migrations/update-17-3-0/nx-release-path.js +2 -3
- package/src/migrations/update-17-3-0/update-nxw.js +1 -1
- package/src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces.js +1 -1
- package/src/migrations/update-19-2-0/move-workspace-data-directory.js +3 -4
- package/src/migrations/update-19-2-4/set-project-name.js +1 -1
- package/src/native/assert-supported-platform.js +1 -2
- package/src/native/browser.js +1 -0
- package/src/native/index.d.ts +178 -138
- package/src/native/index.js +16 -0
- package/src/native/native-bindings.js +352 -238
- package/src/native/native-file-cache-location.js +1 -2
- package/src/native/nx.wasi-browser.js +108 -0
- package/src/native/nx.wasi.cjs +139 -0
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/native/transform-objects.js +1 -2
- package/src/native/wasi-worker-browser.mjs +32 -0
- package/src/native/wasi-worker.mjs +63 -0
- package/src/nx-cloud/debug-logger.js +1 -2
- package/src/nx-cloud/generators/connect-to-nx-cloud/connect-to-nx-cloud.js +1 -2
- package/src/nx-cloud/resolution-helpers.js +1 -2
- package/src/nx-cloud/update-manager.js +2 -2
- package/src/nx-cloud/utilities/axios.js +1 -2
- package/src/nx-cloud/utilities/get-cloud-options.js +1 -2
- package/src/nx-cloud/utilities/url-shorten.js +8 -9
- package/src/plugins/js/hasher/hasher.js +1 -2
- package/src/plugins/js/lock-file/lock-file.js +6 -6
- package/src/plugins/js/lock-file/npm-parser.js +3 -4
- package/src/plugins/js/lock-file/pnpm-parser.js +3 -4
- package/src/plugins/js/lock-file/project-graph-pruning.js +1 -2
- package/src/plugins/js/lock-file/utils/package-json.js +2 -3
- package/src/plugins/js/lock-file/utils/pnpm-normalizer.js +5 -6
- package/src/plugins/js/lock-file/yarn-parser.js +3 -4
- package/src/plugins/js/package-json/create-package-json.js +2 -3
- package/src/plugins/js/project-graph/build-dependencies/build-dependencies.js +1 -2
- package/src/plugins/js/project-graph/build-dependencies/explicit-package-json-dependencies.js +1 -2
- package/src/plugins/js/project-graph/build-dependencies/explicit-project-dependencies.js +1 -2
- package/src/plugins/js/project-graph/build-dependencies/strip-source-code.js +1 -2
- package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +2 -2
- package/src/plugins/js/project-graph/build-nodes/build-npm-package-nodes.js +1 -2
- package/src/plugins/js/utils/config.js +1 -2
- package/src/plugins/js/utils/register.d.ts +1 -0
- package/src/plugins/js/utils/register.js +7 -8
- package/src/plugins/js/utils/resolve-relative-to-dir.js +1 -2
- package/src/plugins/js/utils/typescript.js +5 -6
- package/src/plugins/js/versions.d.ts +1 -1
- package/src/plugins/js/versions.js +1 -1
- package/src/plugins/package-json-workspaces/create-nodes.js +5 -5
- package/src/plugins/project-json/build-nodes/project-json.js +3 -3
- package/src/project-graph/affected/affected-project-graph.js +1 -2
- package/src/project-graph/build-project-graph.js +3 -4
- package/src/project-graph/error-types.js +11 -11
- package/src/project-graph/file-map-utils.js +4 -5
- package/src/project-graph/file-utils.d.ts +1 -1
- package/src/project-graph/file-utils.js +7 -7
- package/src/project-graph/nx-deps-cache.js +8 -8
- package/src/project-graph/operators.js +5 -5
- package/src/project-graph/plugins/internal-api.js +4 -5
- package/src/project-graph/plugins/isolation/index.js +1 -2
- package/src/project-graph/plugins/isolation/messaging.d.ts +0 -2
- package/src/project-graph/plugins/isolation/messaging.js +4 -5
- package/src/project-graph/plugins/isolation/plugin-pool.js +1 -2
- package/src/project-graph/plugins/loader.js +7 -7
- package/src/project-graph/plugins/utils.js +4 -5
- package/src/project-graph/project-graph-builder.js +2 -2
- package/src/project-graph/project-graph.js +7 -8
- package/src/project-graph/utils/build-all-workspace-files.js +1 -2
- package/src/project-graph/utils/find-project-for-path.js +4 -5
- package/src/project-graph/utils/implicit-project-dependencies.js +1 -2
- package/src/project-graph/utils/normalize-project-nodes.js +2 -3
- package/src/project-graph/utils/project-configuration-utils.d.ts +8 -6
- package/src/project-graph/utils/project-configuration-utils.js +118 -54
- package/src/project-graph/utils/retrieve-workspace-files.d.ts +3 -3
- package/src/project-graph/utils/retrieve-workspace-files.js +6 -7
- package/src/tasks-runner/create-task-graph.js +3 -3
- package/src/tasks-runner/forked-process-task-runner.d.ts +0 -1
- package/src/tasks-runner/init-tasks-runner.js +1 -2
- package/src/tasks-runner/life-cycles/dynamic-run-many-terminal-output-life-cycle.js +1 -2
- package/src/tasks-runner/life-cycles/dynamic-run-one-terminal-output-life-cycle.js +1 -2
- package/src/tasks-runner/life-cycles/formatting-utils.js +2 -3
- package/src/tasks-runner/life-cycles/pretty-time.js +1 -2
- package/src/tasks-runner/life-cycles/view-logs-utils.js +1 -2
- package/src/tasks-runner/pseudo-ipc.d.ts +0 -1
- package/src/tasks-runner/pseudo-terminal.d.ts +0 -1
- package/src/tasks-runner/pseudo-terminal.js +5 -2
- package/src/tasks-runner/run-command.js +4 -5
- package/src/tasks-runner/task-env.d.ts +0 -1
- package/src/tasks-runner/task-env.js +5 -6
- package/src/tasks-runner/task-graph-utils.js +2 -3
- package/src/tasks-runner/utils.js +25 -26
- package/src/utils/ab-testing.js +2 -2
- package/src/utils/all-file-data.js +1 -2
- package/src/utils/assert-workspace-validity.js +1 -2
- package/src/utils/async-iterator.js +2 -3
- package/src/utils/cache-directory.js +2 -2
- package/src/utils/child-process.d.ts +0 -1
- package/src/utils/child-process.js +3 -3
- package/src/utils/chunkify.js +1 -2
- package/src/utils/code-frames.js +1 -2
- package/src/utils/collapse-expanded-outputs.js +1 -2
- package/src/utils/command-line-utils.js +5 -6
- package/src/utils/consume-messages-from-socket.js +1 -2
- package/src/utils/default-base.js +1 -2
- package/src/utils/dotenv.js +1 -2
- package/src/utils/exit-codes.d.ts +0 -1
- package/src/utils/exit-codes.js +1 -2
- package/src/utils/fileutils.d.ts +0 -1
- package/src/utils/fileutils.js +9 -10
- package/src/utils/find-matching-projects.js +2 -2
- package/src/utils/find-workspace-root.js +1 -2
- package/src/utils/get-package-name-from-import-path.js +1 -2
- package/src/utils/git-utils.js +4 -5
- package/src/utils/globs.js +1 -2
- package/src/utils/ignore.js +4 -4
- package/src/utils/installation-directory.js +2 -3
- package/src/utils/is-ci.js +1 -2
- package/src/utils/json-diff.js +5 -5
- package/src/utils/json.js +3 -3
- package/src/utils/logger.js +2 -2
- package/src/utils/nx-cloud-utils.js +3 -4
- package/src/utils/nx-plugin.deprecated.js +1 -4
- package/src/utils/object-sort.js +1 -2
- package/src/utils/package-json.js +8 -9
- package/src/utils/package-manager.js +13 -14
- package/src/utils/params.js +14 -14
- package/src/utils/path.js +3 -4
- package/src/utils/plugins/community-plugins.js +1 -2
- package/src/utils/plugins/core-plugins.js +2 -3
- package/src/utils/plugins/installed-plugins.js +3 -4
- package/src/utils/plugins/local-plugins.js +2 -3
- package/src/utils/plugins/plugin-capabilities.js +2 -3
- package/src/utils/plugins/shared.js +1 -2
- package/src/utils/print-help.js +1 -2
- package/src/utils/project-graph-utils.js +4 -5
- package/src/utils/serializable-error.js +1 -2
- package/src/utils/serialize-overrides-into-command-line.js +1 -2
- package/src/utils/serialize-target.js +1 -2
- package/src/utils/split-target.js +2 -3
- package/src/utils/strip-indents.js +1 -2
- package/src/utils/task-history.js +3 -3
- package/src/utils/update-nxw.js +1 -2
- package/src/utils/workspace-configuration-check.js +1 -2
- package/src/utils/workspace-context.js +10 -11
- package/src/utils/workspace-root.js +3 -3
- package/src/plugins/target-defaults/symbols.d.ts +0 -17
- package/src/plugins/target-defaults/symbols.js +0 -20
- package/src/plugins/target-defaults/target-defaults-plugin.d.ts +0 -121
- package/src/plugins/target-defaults/target-defaults-plugin.js +0 -176
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
3
4
|
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
4
5
|
const project_configuration_1 = require("../../generators/utils/project-configuration");
|
|
5
6
|
const nx_json_1 = require("../../generators/utils/nx-json");
|
|
@@ -90,7 +91,6 @@ async function default_1(tree) {
|
|
|
90
91
|
(0, nx_json_1.updateNxJson)(tree, nxJson);
|
|
91
92
|
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
92
93
|
}
|
|
93
|
-
exports.default = default_1;
|
|
94
94
|
function isBuildATarget(tree) {
|
|
95
95
|
const projects = (0, project_configuration_1.getProjects)(tree);
|
|
96
96
|
for (const [_, project] of projects) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
3
4
|
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
4
5
|
const project_configuration_1 = require("../../generators/utils/project-configuration");
|
|
5
6
|
const nx_json_1 = require("../../generators/utils/nx-json");
|
|
@@ -61,4 +62,3 @@ async function default_1(tree) {
|
|
|
61
62
|
}
|
|
62
63
|
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
63
64
|
}
|
|
64
|
-
exports.default = default_1;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
3
4
|
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
4
5
|
const json_1 = require("../../generators/utils/json");
|
|
5
6
|
async function default_1(tree) {
|
|
@@ -13,4 +14,3 @@ async function default_1(tree) {
|
|
|
13
14
|
});
|
|
14
15
|
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
15
16
|
}
|
|
16
|
-
exports.default = default_1;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
3
4
|
const project_configuration_1 = require("../../generators/utils/project-configuration");
|
|
4
5
|
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
5
6
|
async function default_1(tree) {
|
|
@@ -50,7 +51,6 @@ async function default_1(tree) {
|
|
|
50
51
|
}
|
|
51
52
|
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
52
53
|
}
|
|
53
|
-
exports.default = default_1;
|
|
54
54
|
function updateDependsOnAndInputsInsideNxJson(tree) {
|
|
55
55
|
const nxJson = (0, project_configuration_1.readNxJson)(tree);
|
|
56
56
|
let nxJsonChanged = false;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
3
4
|
const project_configuration_1 = require("../../generators/utils/project-configuration");
|
|
4
5
|
const json_1 = require("../../generators/utils/json");
|
|
5
6
|
async function default_1(tree) {
|
|
@@ -24,4 +25,3 @@ async function default_1(tree) {
|
|
|
24
25
|
}
|
|
25
26
|
(0, project_configuration_1.updateNxJson)(tree, nxJson);
|
|
26
27
|
}
|
|
27
|
-
exports.default = default_1;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = removeRunCommandsOutputPath;
|
|
3
4
|
const path_1 = require("../../utils/path");
|
|
4
5
|
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
5
6
|
const json_1 = require("../../generators/utils/json");
|
|
@@ -25,7 +26,6 @@ async function removeRunCommandsOutputPath(tree) {
|
|
|
25
26
|
}
|
|
26
27
|
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
27
28
|
}
|
|
28
|
-
exports.default = removeRunCommandsOutputPath;
|
|
29
29
|
function updateTargetBlock(target) {
|
|
30
30
|
let changed = false;
|
|
31
31
|
if (target.executor === 'nx:run-commands' && target.options?.outputPath) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = escapeDollarSignEnvVariables;
|
|
3
4
|
const logger_1 = require("../../utils/logger");
|
|
4
5
|
const project_configuration_1 = require("../../generators/utils/project-configuration");
|
|
5
6
|
/**
|
|
@@ -30,7 +31,6 @@ function escapeDollarSignEnvVariables(tree) {
|
|
|
30
31
|
parseEnvFile(tree, envFile);
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
|
-
exports.default = escapeDollarSignEnvVariables;
|
|
34
34
|
/**
|
|
35
35
|
* This function parse the env file and escape dollar sign
|
|
36
36
|
* @param tree
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = removeProjectNameAndRootFormat;
|
|
3
4
|
const json_1 = require("../../generators/utils/json");
|
|
4
5
|
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
5
6
|
async function removeProjectNameAndRootFormat(tree) {
|
|
@@ -18,4 +19,3 @@ async function removeProjectNameAndRootFormat(tree) {
|
|
|
18
19
|
});
|
|
19
20
|
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
20
21
|
}
|
|
21
|
-
exports.default = removeProjectNameAndRootFormat;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = moveCacheDirectory;
|
|
3
4
|
const ignore_1 = require("ignore");
|
|
4
5
|
function moveCacheDirectory(tree) {
|
|
5
6
|
// If nx.json doesn't exist the repo can't utilize
|
|
@@ -19,7 +20,6 @@ function moveCacheDirectory(tree) {
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
exports.default = moveCacheDirectory;
|
|
23
23
|
function updateGitIgnore(tree) {
|
|
24
24
|
const gitignore = tree.exists('.gitignore')
|
|
25
25
|
? tree.read('.gitignore', 'utf-8')
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
4
5
|
const nx_json_1 = require("../../generators/utils/nx-json");
|
|
5
6
|
const json_1 = require("../../generators/utils/json");
|
|
@@ -19,7 +20,6 @@ async function update(tree) {
|
|
|
19
20
|
(0, nx_json_1.updateNxJson)(tree, nxJson);
|
|
20
21
|
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
21
22
|
}
|
|
22
|
-
exports.default = update;
|
|
23
23
|
function warnNpmScopeHasChanged(tree, nxJson) {
|
|
24
24
|
const originalScope = nxJson['npmScope'];
|
|
25
25
|
// There was no original scope
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = migrate;
|
|
3
4
|
const json_1 = require("../../generators/utils/json");
|
|
4
5
|
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
5
6
|
const nx_json_1 = require("../../generators/utils/nx-json");
|
|
@@ -73,7 +74,6 @@ async function migrate(tree) {
|
|
|
73
74
|
});
|
|
74
75
|
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
75
76
|
}
|
|
76
|
-
exports.default = migrate;
|
|
77
77
|
async function isNxCloudClientSupported(nxJson) {
|
|
78
78
|
const nxCloudOptions = (0, run_command_1.getRunnerOptions)('default', nxJson, {}, true);
|
|
79
79
|
// Non enterprise workspaces support the Nx Cloud Client
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
5
|
const nx_json_1 = require("../../generators/utils/nx-json");
|
|
5
6
|
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
@@ -18,4 +19,3 @@ async function update(host) {
|
|
|
18
19
|
}
|
|
19
20
|
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(host);
|
|
20
21
|
}
|
|
21
|
-
exports.default = update;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.default = nxReleasePath;
|
|
4
|
+
exports.visitNotIgnoredFiles = visitNotIgnoredFiles;
|
|
4
5
|
const node_path_1 = require("node:path");
|
|
5
6
|
const ignore_1 = require("../../utils/ignore");
|
|
6
7
|
function nxReleasePath(tree) {
|
|
@@ -20,7 +21,6 @@ function nxReleasePath(tree) {
|
|
|
20
21
|
}
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
|
-
exports.default = nxReleasePath;
|
|
24
24
|
// Adapted from devkit
|
|
25
25
|
function visitNotIgnoredFiles(tree, dirPath = tree.root, visitor) {
|
|
26
26
|
const ig = (0, ignore_1.getIgnoreObject)();
|
|
@@ -41,7 +41,6 @@ function visitNotIgnoredFiles(tree, dirPath = tree.root, visitor) {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
exports.visitNotIgnoredFiles = visitNotIgnoredFiles;
|
|
45
44
|
// Copied from devkit
|
|
46
45
|
function normalizePathRelativeToRoot(path, root) {
|
|
47
46
|
return (0, node_path_1.relative)(root, (0, node_path_1.join)(root, path)).split(node_path_1.sep).join('/');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
3
4
|
const update_nxw_1 = require("../../utils/update-nxw");
|
|
4
5
|
async function default_1(tree) {
|
|
5
6
|
(0, update_nxw_1.updateNxw)(tree);
|
|
6
7
|
}
|
|
7
|
-
exports.default = default_1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = migrate;
|
|
3
4
|
const nx_json_1 = require("../../generators/utils/nx-json");
|
|
4
5
|
function migrate(tree) {
|
|
5
6
|
const nxJson = (0, nx_json_1.readNxJson)(tree);
|
|
6
7
|
nxJson.useInferencePlugins = false;
|
|
7
8
|
(0, nx_json_1.updateNxJson)(tree, nxJson);
|
|
8
9
|
}
|
|
9
|
-
exports.default = migrate;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.default = moveGraphCacheDirectory;
|
|
4
|
+
exports.updatePrettierIgnore = updatePrettierIgnore;
|
|
5
|
+
exports.updateGitIgnore = updateGitIgnore;
|
|
4
6
|
async function moveGraphCacheDirectory(tree) {
|
|
5
7
|
updateGitIgnore(tree);
|
|
6
8
|
updatePrettierIgnore(tree);
|
|
7
9
|
}
|
|
8
|
-
exports.default = moveGraphCacheDirectory;
|
|
9
10
|
function updatePrettierIgnore(tree) {
|
|
10
11
|
if (tree.exists('.prettierignore')) {
|
|
11
12
|
const ignored = tree.read('.prettierignore', 'utf-8');
|
|
@@ -14,7 +15,6 @@ function updatePrettierIgnore(tree) {
|
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
exports.updatePrettierIgnore = updatePrettierIgnore;
|
|
18
18
|
function updateGitIgnore(tree) {
|
|
19
19
|
const gitignore = tree.read('.gitignore', 'utf-8');
|
|
20
20
|
if (!gitignore) {
|
|
@@ -31,4 +31,3 @@ function updateGitIgnore(tree) {
|
|
|
31
31
|
const updatedGitignore = gitignore.replace('.nx/cache', ['.nx/cache', '.nx/workspace-data'].join('\n'));
|
|
32
32
|
tree.write('.gitignore', updatedGitignore);
|
|
33
33
|
}
|
|
34
|
-
exports.updateGitIgnore = updateGitIgnore;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = setProjectName;
|
|
3
4
|
const to_project_name_1 = require("../../config/to-project-name");
|
|
4
5
|
const format_changed_files_with_prettier_if_available_1 = require("../../generators/internal-utils/format-changed-files-with-prettier-if-available");
|
|
5
6
|
const json_1 = require("../../generators/utils/json");
|
|
@@ -31,4 +32,3 @@ async function setProjectName(tree) {
|
|
|
31
32
|
}
|
|
32
33
|
await (0, format_changed_files_with_prettier_if_available_1.formatChangedFilesWithPrettierIfAvailable)(tree);
|
|
33
34
|
}
|
|
34
|
-
exports.default = setProjectName;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertSupportedPlatform =
|
|
3
|
+
exports.assertSupportedPlatform = assertSupportedPlatform;
|
|
4
4
|
const output_1 = require("../utils/output");
|
|
5
5
|
function assertSupportedPlatform() {
|
|
6
6
|
try {
|
|
@@ -36,4 +36,3 @@ function assertSupportedPlatform() {
|
|
|
36
36
|
process.exit(1);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
exports.assertSupportedPlatform = assertSupportedPlatform;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@nx/nx-wasm32-wasi'
|
package/src/native/index.d.ts
CHANGED
|
@@ -1,192 +1,232 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
|
|
4
1
|
/* auto-generated by NAPI-RS */
|
|
2
|
+
/* eslint-disable */
|
|
5
3
|
|
|
6
|
-
export class ExternalObject<T> {
|
|
4
|
+
export declare class ExternalObject<T> {
|
|
7
5
|
readonly '': {
|
|
8
6
|
readonly '': unique symbol
|
|
9
7
|
[K: symbol]: T
|
|
10
8
|
}
|
|
11
9
|
}
|
|
10
|
+
export declare class ChildProcess {
|
|
11
|
+
kill(): void
|
|
12
|
+
onExit(callback: (message: string) => void): void
|
|
13
|
+
onOutput(callback: (message: string) => void): void
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare class HashPlanner {
|
|
17
|
+
constructor(nxJson: NxJson, projectGraph: ExternalObject<ProjectGraph>)
|
|
18
|
+
getPlans(taskIds: Array<string>, taskGraph: TaskGraph): Record<string, string[]>
|
|
19
|
+
getPlansReference(taskIds: Array<string>, taskGraph: TaskGraph): JsExternal
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare class ImportResult {
|
|
23
|
+
file: string
|
|
24
|
+
sourceProject: string
|
|
25
|
+
dynamicImportExpressions: Array<string>
|
|
26
|
+
staticImportExpressions: Array<string>
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export declare class RustPseudoTerminal {
|
|
30
|
+
constructor()
|
|
31
|
+
runCommand(command: string, commandDir?: string | undefined | null, jsEnv?: Record<string, string> | undefined | null, execArgv?: Array<string> | undefined | null, quiet?: boolean | undefined | null, tty?: boolean | undefined | null): ChildProcess
|
|
32
|
+
/**
|
|
33
|
+
* This allows us to run a pseudoterminal with a fake node ipc channel
|
|
34
|
+
* this makes it possible to be backwards compatible with the old implementation
|
|
35
|
+
*/
|
|
36
|
+
fork(id: string, forkScript: string, pseudoIpcPath: string, commandDir: string | undefined | null, jsEnv: Record<string, string> | undefined | null, execArgv: Array<string> | undefined | null, quiet: boolean): ChildProcess
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export declare class TaskHasher {
|
|
40
|
+
constructor(workspaceRoot: string, projectGraph: ExternalObject<ProjectGraph>, projectFileMap: ExternalObject<ProjectFiles>, allWorkspaceFiles: ExternalObject<Array<FileData>>, tsConfig: Buffer, tsConfigPaths: Record<string, Array<string>>, options?: HasherOptions | undefined | null)
|
|
41
|
+
hashPlans(hashPlans: ExternalObject<Record<string, Array<HashInstruction>>>, jsEnv: Record<string, string>): NapiDashMap
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export declare class Watcher {
|
|
45
|
+
origin: string
|
|
46
|
+
/**
|
|
47
|
+
* Creates a new Watcher instance.
|
|
48
|
+
* Will always ignore the following directories:
|
|
49
|
+
* * .git/
|
|
50
|
+
* * node_modules/
|
|
51
|
+
* * .nx/
|
|
52
|
+
*/
|
|
53
|
+
constructor(origin: string, additionalGlobs?: Array<string> | undefined | null, useIgnore?: boolean | undefined | null)
|
|
54
|
+
watch(callback: (err: string | null, events: WatchEvent[]) => void): void
|
|
55
|
+
stop(): Promise<void>
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export declare class WorkspaceContext {
|
|
59
|
+
workspaceRoot: string
|
|
60
|
+
constructor(workspaceRoot: string, cacheDir: string)
|
|
61
|
+
getWorkspaceFiles(projectRootMap: Record<string, string>): NxWorkspaceFiles
|
|
62
|
+
glob(globs: Array<string>, exclude?: Array<string> | undefined | null): Array<string>
|
|
63
|
+
hashFilesMatchingGlob(globs: Array<string>, exclude?: Array<string> | undefined | null): string
|
|
64
|
+
incrementalUpdate(updatedFiles: Array<string>, deletedFiles: Array<string>): Record<string, string>
|
|
65
|
+
updateProjectFiles(projectRootMappings: ProjectRootMappings, projectFiles: ExternalObject<ProjectFiles>, globalFiles: ExternalObject<Array<FileData>>, updatedFiles: Record<string, string>, deletedFiles: Array<string>): UpdatedWorkspaceFiles
|
|
66
|
+
allFileData(): Array<FileData>
|
|
67
|
+
getFilesInDirectory(directory: string): Array<string>
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export declare export function copy(src: string, dest: string): void
|
|
71
|
+
|
|
72
|
+
export interface DepsOutputsInput {
|
|
73
|
+
dependentTasksOutputFiles: string
|
|
74
|
+
transitive?: boolean
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface EnvironmentInput {
|
|
78
|
+
env: string
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export declare const enum EventType {
|
|
82
|
+
delete = 'delete',
|
|
83
|
+
update = 'update',
|
|
84
|
+
create = 'create'
|
|
85
|
+
}
|
|
86
|
+
|
|
12
87
|
/**
|
|
13
88
|
* Expands the given entries into a list of existing directories and files.
|
|
14
89
|
* This is used for copying outputs to and from the cache
|
|
15
90
|
*/
|
|
16
|
-
export function expandOutputs(directory: string, entries: Array<string>): Array<string>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export function remove(src: string): void
|
|
23
|
-
export function copy(src: string, dest: string): void
|
|
24
|
-
export function hashArray(input: Array<string>): string
|
|
25
|
-
export function hashFile(file: string): string | null
|
|
26
|
-
export function findImports(projectFileMap: Record<string, Array<string>>): Array<ImportResult>
|
|
27
|
-
/**
|
|
28
|
-
* Transfer the project graph from the JS world to the Rust world, so that we can pass the project graph via memory quicker
|
|
29
|
-
* This wont be needed once the project graph is created in Rust
|
|
30
|
-
*/
|
|
31
|
-
export function transferProjectGraph(projectGraph: ProjectGraph): ExternalObject<ProjectGraph>
|
|
91
|
+
export declare export function expandOutputs(directory: string, entries: Array<string>): Array<string>
|
|
92
|
+
|
|
93
|
+
export interface ExternalDependenciesInput {
|
|
94
|
+
externalDependencies: Array<string>
|
|
95
|
+
}
|
|
96
|
+
|
|
32
97
|
export interface ExternalNode {
|
|
33
98
|
packageName?: string
|
|
34
99
|
version: string
|
|
35
100
|
hash?: string
|
|
36
101
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
options?: string
|
|
42
|
-
configurations?: string
|
|
102
|
+
|
|
103
|
+
export interface FileData {
|
|
104
|
+
file: string
|
|
105
|
+
hash: string
|
|
43
106
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
targets: Record<string, Target>
|
|
107
|
+
|
|
108
|
+
export interface FileMap {
|
|
109
|
+
projectFileMap: ProjectFiles
|
|
110
|
+
nonProjectFiles: Array<FileData>
|
|
49
111
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
externalNodes: Record<string, ExternalNode>
|
|
112
|
+
|
|
113
|
+
export interface FileSetInput {
|
|
114
|
+
fileset: string
|
|
54
115
|
}
|
|
116
|
+
|
|
117
|
+
export declare export function findImports(projectFileMap: Record<string, Array<string>>): Array<ImportResult>
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Expands the given outputs into a list of existing files.
|
|
121
|
+
* This is used when hashing outputs
|
|
122
|
+
*/
|
|
123
|
+
export declare export function getFilesForOutputs(directory: string, entries: Array<string>): Array<string>
|
|
124
|
+
|
|
125
|
+
export declare export function hashArray(input: Array<string>): string
|
|
126
|
+
|
|
55
127
|
export interface HashDetails {
|
|
56
128
|
value: string
|
|
57
129
|
details: Record<string, string>
|
|
58
130
|
}
|
|
131
|
+
|
|
59
132
|
export interface HasherOptions {
|
|
60
133
|
selectivelyHashTsConfig: boolean
|
|
61
134
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
outputs: Array<string>
|
|
66
|
-
projectRoot?: string
|
|
67
|
-
}
|
|
68
|
-
export interface TaskTarget {
|
|
69
|
-
project: string
|
|
70
|
-
target: string
|
|
71
|
-
configuration?: string
|
|
72
|
-
}
|
|
73
|
-
export interface TaskGraph {
|
|
74
|
-
roots: Array<string>
|
|
75
|
-
tasks: Record<string, Task>
|
|
76
|
-
dependencies: Record<string, Array<string>>
|
|
77
|
-
}
|
|
78
|
-
export interface FileData {
|
|
79
|
-
file: string
|
|
80
|
-
hash: string
|
|
81
|
-
}
|
|
135
|
+
|
|
136
|
+
export declare export function hashFile(file: string): string | null
|
|
137
|
+
|
|
82
138
|
export interface InputsInput {
|
|
83
139
|
input: string
|
|
84
140
|
dependencies?: boolean
|
|
85
141
|
projects?: string | Array<string>
|
|
86
142
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
export interface RuntimeInput {
|
|
91
|
-
runtime: string
|
|
92
|
-
}
|
|
93
|
-
export interface EnvironmentInput {
|
|
94
|
-
env: string
|
|
95
|
-
}
|
|
96
|
-
export interface ExternalDependenciesInput {
|
|
97
|
-
externalDependencies: Array<string>
|
|
98
|
-
}
|
|
99
|
-
export interface DepsOutputsInput {
|
|
100
|
-
dependentTasksOutputFiles: string
|
|
101
|
-
transitive?: boolean
|
|
102
|
-
}
|
|
143
|
+
|
|
144
|
+
export const IS_WASM: boolean
|
|
145
|
+
|
|
103
146
|
/** Stripped version of the NxJson interface for use in rust */
|
|
104
147
|
export interface NxJson {
|
|
105
148
|
namedInputs?: Record<string, Array<JsInputs>>
|
|
106
149
|
}
|
|
107
|
-
|
|
108
|
-
delete = 'delete',
|
|
109
|
-
update = 'update',
|
|
110
|
-
create = 'create'
|
|
111
|
-
}
|
|
112
|
-
export interface WatchEvent {
|
|
113
|
-
path: string
|
|
114
|
-
type: EventType
|
|
115
|
-
}
|
|
116
|
-
/** Public NAPI error codes that are for Node */
|
|
117
|
-
export const enum WorkspaceErrors {
|
|
118
|
-
ParseError = 'ParseError',
|
|
119
|
-
Generic = 'Generic'
|
|
120
|
-
}
|
|
150
|
+
|
|
121
151
|
export interface NxWorkspaceFiles {
|
|
122
152
|
projectFileMap: ProjectFiles
|
|
123
153
|
globalFiles: Array<FileData>
|
|
124
154
|
externalReferences?: NxWorkspaceFilesExternals
|
|
125
155
|
}
|
|
156
|
+
|
|
126
157
|
export interface NxWorkspaceFilesExternals {
|
|
127
158
|
projectFiles: ExternalObject<ProjectFiles>
|
|
128
159
|
globalFiles: ExternalObject<Array<FileData>>
|
|
129
160
|
allWorkspaceFiles: ExternalObject<Array<FileData>>
|
|
130
161
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
162
|
+
|
|
163
|
+
export interface Project {
|
|
164
|
+
root: string
|
|
165
|
+
namedInputs?: Record<string, Array<JsInputs>>
|
|
166
|
+
tags?: Array<string>
|
|
167
|
+
targets: Record<string, Target>
|
|
134
168
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
169
|
+
|
|
170
|
+
export interface ProjectGraph {
|
|
171
|
+
nodes: Record<string, Project>
|
|
172
|
+
dependencies: Record<string, Array<string>>
|
|
173
|
+
externalNodes: Record<string, ExternalNode>
|
|
138
174
|
}
|
|
139
|
-
|
|
140
|
-
export
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
staticImportExpressions: Array<string>
|
|
175
|
+
|
|
176
|
+
export declare export function remove(src: string): void
|
|
177
|
+
|
|
178
|
+
export interface RuntimeInput {
|
|
179
|
+
runtime: string
|
|
145
180
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
181
|
+
|
|
182
|
+
export interface Target {
|
|
183
|
+
executor?: string
|
|
184
|
+
inputs?: Array<JsInputs>
|
|
185
|
+
outputs?: Array<string>
|
|
186
|
+
options?: string
|
|
187
|
+
configurations?: string
|
|
150
188
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
*/
|
|
158
|
-
fork(id: string, forkScript: string, pseudoIpcPath: string, commandDir: string | undefined | null, jsEnv: Record<string, string> | undefined | null, execArgv: Array<string> | undefined | null, quiet: boolean): ChildProcess
|
|
189
|
+
|
|
190
|
+
export interface Task {
|
|
191
|
+
id: string
|
|
192
|
+
target: TaskTarget
|
|
193
|
+
outputs: Array<string>
|
|
194
|
+
projectRoot?: string
|
|
159
195
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
196
|
+
|
|
197
|
+
export interface TaskGraph {
|
|
198
|
+
roots: Array<string>
|
|
199
|
+
tasks: Record<string, Task>
|
|
200
|
+
dependencies: Record<string, Array<string>>
|
|
164
201
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
202
|
+
|
|
203
|
+
export interface TaskTarget {
|
|
204
|
+
project: string
|
|
205
|
+
target: string
|
|
206
|
+
configuration?: string
|
|
168
207
|
}
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
208
|
+
|
|
209
|
+
export declare export function testOnlyTransferFileMap(projectFiles: Record<string, Array<FileData>>, nonProjectFiles: Array<FileData>): NxWorkspaceFilesExternals
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Transfer the project graph from the JS world to the Rust world, so that we can pass the project graph via memory quicker
|
|
213
|
+
* This wont be needed once the project graph is created in Rust
|
|
214
|
+
*/
|
|
215
|
+
export declare export function transferProjectGraph(projectGraph: ProjectGraph): ExternalObject<ProjectGraph>
|
|
216
|
+
|
|
217
|
+
export interface UpdatedWorkspaceFiles {
|
|
218
|
+
fileMap: FileMap
|
|
219
|
+
externalReferences: NxWorkspaceFilesExternals
|
|
181
220
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
221
|
+
|
|
222
|
+
export interface WatchEvent {
|
|
223
|
+
path: string
|
|
224
|
+
type: EventType
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/** Public NAPI error codes that are for Node */
|
|
228
|
+
export declare const enum WorkspaceErrors {
|
|
229
|
+
ParseError = 'ParseError',
|
|
230
|
+
Generic = 'Generic'
|
|
192
231
|
}
|
|
232
|
+
|