nx 19.5.0-canary.20240710-2b7b523 → 19.5.0-canary.20240712-0b0db78
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/init-local.js +2 -3
- package/package.json +12 -12
- 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 +1 -2
- 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 +27 -19
- 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 +2 -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 +0 -2
- package/src/daemon/client/client.js +2 -2
- 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/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/native-file-cache-location.js +1 -2
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/native/transform-objects.js +1 -2
- 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.d.ts +1 -1
- package/src/project-graph/plugins/internal-api.js +13 -9
- 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/isolation/plugin-worker.js +1 -1
- 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.js +11 -12
- 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 +2 -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/task-orchestrator.js +8 -0
- 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 -2
- 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
@@ -1,6 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.nxWrapperPath = void 0;
|
4
|
+
exports.generateDotNxSetup = generateDotNxSetup;
|
5
|
+
exports.normalizeVersionForNxJson = normalizeVersionForNxJson;
|
6
|
+
exports.writeMinimalNxJson = writeMinimalNxJson;
|
7
|
+
exports.updateGitIgnore = updateGitIgnore;
|
8
|
+
exports.getNxWrapperContents = getNxWrapperContents;
|
9
|
+
exports.sanitizeWrapperScript = sanitizeWrapperScript;
|
4
10
|
const child_process_1 = require("child_process");
|
5
11
|
const fs_1 = require("fs");
|
6
12
|
const path = require("path");
|
@@ -54,14 +60,12 @@ function generateDotNxSetup(version) {
|
|
54
60
|
(0, tree_1.printChanges)(changes);
|
55
61
|
(0, tree_1.flushChanges)(host.root, changes);
|
56
62
|
}
|
57
|
-
exports.generateDotNxSetup = generateDotNxSetup;
|
58
63
|
function normalizeVersionForNxJson(pkg, version) {
|
59
64
|
if (!(0, semver_1.valid)(version)) {
|
60
65
|
version = (0, child_process_1.execSync)(`npm view ${pkg}@${version} version`).toString();
|
61
66
|
}
|
62
67
|
return version.trimEnd();
|
63
68
|
}
|
64
|
-
exports.normalizeVersionForNxJson = normalizeVersionForNxJson;
|
65
69
|
function writeMinimalNxJson(host, version) {
|
66
70
|
if (!host.exists('nx.json')) {
|
67
71
|
(0, json_1.writeJson)(host, 'nx.json', {
|
@@ -71,7 +75,6 @@ function writeMinimalNxJson(host, version) {
|
|
71
75
|
});
|
72
76
|
}
|
73
77
|
}
|
74
|
-
exports.writeMinimalNxJson = writeMinimalNxJson;
|
75
78
|
function updateGitIgnore(host) {
|
76
79
|
let contents = host.read('.gitignore', 'utf-8') ?? '';
|
77
80
|
['.nx/installation', '.nx/cache', '.nx/workspace-data'].forEach((file) => {
|
@@ -81,12 +84,10 @@ function updateGitIgnore(host) {
|
|
81
84
|
});
|
82
85
|
host.write('.gitignore', contents);
|
83
86
|
}
|
84
|
-
exports.updateGitIgnore = updateGitIgnore;
|
85
87
|
// Gets the sanitized contents for nxw.js
|
86
88
|
function getNxWrapperContents() {
|
87
89
|
return sanitizeWrapperScript((0, fs_1.readFileSync)(path.join(__dirname, 'nxw.js'), 'utf-8'));
|
88
90
|
}
|
89
|
-
exports.getNxWrapperContents = getNxWrapperContents;
|
90
91
|
// Remove any empty comments or comments that start with `//#: ` or eslint-disable comments.
|
91
92
|
// This removes the sourceMapUrl since it is invalid, as well as any internal comments.
|
92
93
|
function sanitizeWrapperScript(input) {
|
@@ -101,4 +102,3 @@ function sanitizeWrapperScript(input) {
|
|
101
102
|
const regex = `(${linesToRemove.join('|')})$`;
|
102
103
|
return input.replace(new RegExp(regex, 'gm'), '');
|
103
104
|
}
|
104
|
-
exports.sanitizeWrapperScript = sanitizeWrapperScript;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addCracoCommandsToPackageScripts =
|
3
|
+
exports.addCracoCommandsToPackageScripts = addCracoCommandsToPackageScripts;
|
4
4
|
const fileutils_1 = require("../../../../utils/fileutils");
|
5
5
|
function addCracoCommandsToPackageScripts(appName, isStandalone) {
|
6
6
|
const packageJsonPath = isStandalone
|
@@ -19,4 +19,3 @@ function addCracoCommandsToPackageScripts(appName, isStandalone) {
|
|
19
19
|
};
|
20
20
|
(0, fileutils_1.writeJsonFile)(packageJsonPath, packageJson);
|
21
21
|
}
|
22
|
-
exports.addCracoCommandsToPackageScripts = addCracoCommandsToPackageScripts;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addViteCommandsToPackageScripts =
|
3
|
+
exports.addViteCommandsToPackageScripts = addViteCommandsToPackageScripts;
|
4
4
|
const fileutils_1 = require("../../../../utils/fileutils");
|
5
5
|
function addViteCommandsToPackageScripts(appName, isStandalone) {
|
6
6
|
const packageJsonPath = isStandalone
|
@@ -16,4 +16,3 @@ function addViteCommandsToPackageScripts(appName, isStandalone) {
|
|
16
16
|
};
|
17
17
|
(0, fileutils_1.writeJsonFile)(packageJsonPath, packageJson, { spaces: 2 });
|
18
18
|
}
|
19
|
-
exports.addViteCommandsToPackageScripts = addViteCommandsToPackageScripts;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.checkForCustomWebpackSetup =
|
3
|
+
exports.checkForCustomWebpackSetup = checkForCustomWebpackSetup;
|
4
4
|
const fileutils_1 = require("../../../../utils/fileutils");
|
5
5
|
function checkForCustomWebpackSetup() {
|
6
6
|
const packageJson = (0, fileutils_1.readJsonFile)('package.json');
|
@@ -15,4 +15,3 @@ function checkForCustomWebpackSetup() {
|
|
15
15
|
}
|
16
16
|
});
|
17
17
|
}
|
18
|
-
exports.checkForCustomWebpackSetup = checkForCustomWebpackSetup;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.checkForUncommittedChanges =
|
3
|
+
exports.checkForUncommittedChanges = checkForUncommittedChanges;
|
4
4
|
const child_process_1 = require("child_process");
|
5
5
|
function checkForUncommittedChanges() {
|
6
6
|
const gitResult = (0, child_process_1.execSync)('git status --porcelain').toString();
|
@@ -16,4 +16,3 @@ function checkForUncommittedChanges() {
|
|
16
16
|
process.exit(1);
|
17
17
|
}
|
18
18
|
}
|
19
|
-
exports.checkForUncommittedChanges = checkForUncommittedChanges;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.cleanUpFiles =
|
3
|
+
exports.cleanUpFiles = cleanUpFiles;
|
4
4
|
const fs_extra_1 = require("fs-extra");
|
5
5
|
const fileutils_1 = require("../../../../utils/fileutils");
|
6
6
|
function cleanUpFiles(appName, isStandalone) {
|
@@ -28,4 +28,3 @@ function cleanUpFiles(appName, isStandalone) {
|
|
28
28
|
(0, fs_extra_1.removeSync)('tools');
|
29
29
|
}
|
30
30
|
}
|
31
|
-
exports.cleanUpFiles = cleanUpFiles;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.addNxToCraRepo =
|
3
|
+
exports.addNxToCraRepo = addNxToCraRepo;
|
4
4
|
const child_process_1 = require("child_process");
|
5
5
|
const fs_extra_1 = require("fs-extra");
|
6
6
|
const path_1 = require("path");
|
@@ -26,7 +26,6 @@ async function addNxToCraRepo(options) {
|
|
26
26
|
const normalizedOptions = await normalizeOptions(options);
|
27
27
|
await reorgnizeWorkspaceStructure(normalizedOptions);
|
28
28
|
}
|
29
|
-
exports.addNxToCraRepo = addNxToCraRepo;
|
30
29
|
function installDependencies(options) {
|
31
30
|
const dependencies = [
|
32
31
|
'@testing-library/jest-dom',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.readNameFromPackageJson =
|
3
|
+
exports.readNameFromPackageJson = readNameFromPackageJson;
|
4
4
|
const fileutils_1 = require("../../../../utils/fileutils");
|
5
5
|
function readNameFromPackageJson() {
|
6
6
|
let appName = 'webapp';
|
@@ -14,4 +14,3 @@ function readNameFromPackageJson() {
|
|
14
14
|
}
|
15
15
|
return appName;
|
16
16
|
}
|
17
|
-
exports.readNameFromPackageJson = readNameFromPackageJson;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.renameJsToJsx =
|
3
|
+
exports.renameJsToJsx = renameJsToJsx;
|
4
4
|
const fs_extra_1 = require("fs-extra");
|
5
5
|
const workspace_context_1 = require("../../../../utils/workspace-context");
|
6
6
|
const fileutils_1 = require("../../../../utils/fileutils");
|
@@ -20,4 +20,3 @@ async function renameJsToJsx(appName, isStandalone) {
|
|
20
20
|
}
|
21
21
|
});
|
22
22
|
}
|
23
|
-
exports.renameJsToJsx = renameJsToJsx;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.setupTsConfig =
|
3
|
+
exports.setupTsConfig = setupTsConfig;
|
4
4
|
const path_1 = require("path");
|
5
5
|
const fileutils_1 = require("../../../../utils/fileutils");
|
6
6
|
const defaultTsConfig = (relativePathToRoot) => ({
|
@@ -106,4 +106,3 @@ function setupTsConfig(appName, isStandalone) {
|
|
106
106
|
(0, fileutils_1.writeJsonFile)(tsconfiSpecPath, defaultTsConfigSpec(relativePathToRoot));
|
107
107
|
}
|
108
108
|
}
|
109
|
-
exports.setupTsConfig = setupTsConfig;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.writeCracoConfig =
|
3
|
+
exports.writeCracoConfig = writeCracoConfig;
|
4
4
|
const fs_1 = require("fs");
|
5
5
|
function writeCracoConfig(appName, isCRA5, isStandalone) {
|
6
6
|
const configOverride = `
|
@@ -59,4 +59,3 @@ function writeCracoConfig(appName, isCRA5, isStandalone) {
|
|
59
59
|
`;
|
60
60
|
(0, fs_1.writeFileSync)(isStandalone ? 'craco.config.js' : `apps/${appName}/craco.config.js`, configOverride);
|
61
61
|
}
|
62
|
-
exports.writeCracoConfig = writeCracoConfig;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.writeViteConfig =
|
3
|
+
exports.writeViteConfig = writeViteConfig;
|
4
4
|
const fs_1 = require("fs");
|
5
5
|
function writeViteConfig(appName, isStandalone, isJs) {
|
6
6
|
let port = 4200;
|
@@ -35,4 +35,3 @@ export default defineConfig({
|
|
35
35
|
});
|
36
36
|
`);
|
37
37
|
}
|
38
|
-
exports.writeViteConfig = writeViteConfig;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.writeViteIndexHtml =
|
3
|
+
exports.writeViteIndexHtml = writeViteIndexHtml;
|
4
4
|
const fs_1 = require("fs");
|
5
5
|
function writeViteIndexHtml(appName, isStandalone, isJs) {
|
6
6
|
const indexPath = isStandalone ? 'index.html' : `apps/${appName}/index.html`;
|
@@ -22,4 +22,3 @@ function writeViteIndexHtml(appName, isStandalone, isJs) {
|
|
22
22
|
</body>
|
23
23
|
</html>`);
|
24
24
|
}
|
25
|
-
exports.writeViteIndexHtml = writeViteIndexHtml;
|
@@ -1,6 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.createNxJsonFile = createNxJsonFile;
|
4
|
+
exports.addDepsToPackageJson = addDepsToPackageJson;
|
5
|
+
exports.updateGitIgnore = updateGitIgnore;
|
6
|
+
exports.runInstall = runInstall;
|
7
|
+
exports.initCloud = initCloud;
|
8
|
+
exports.addVsCodeRecommendedExtensions = addVsCodeRecommendedExtensions;
|
9
|
+
exports.markRootPackageJsonAsNxProjectLegacy = markRootPackageJsonAsNxProjectLegacy;
|
10
|
+
exports.markPackageJsonAsNxProject = markPackageJsonAsNxProject;
|
11
|
+
exports.printFinalMessage = printFinalMessage;
|
12
|
+
exports.isMonorepo = isMonorepo;
|
4
13
|
const child_process_1 = require("child_process");
|
5
14
|
const path_1 = require("path");
|
6
15
|
const child_process_2 = require("../../../utils/child-process");
|
@@ -44,7 +53,6 @@ function createNxJsonFile(repoRoot, topologicalTargets, cacheableOperations, scr
|
|
44
53
|
nxJson.defaultBase ??= deduceDefaultBase();
|
45
54
|
(0, fileutils_1.writeJsonFile)(nxJsonPath, nxJson);
|
46
55
|
}
|
47
|
-
exports.createNxJsonFile = createNxJsonFile;
|
48
56
|
function deduceDefaultBase() {
|
49
57
|
try {
|
50
58
|
(0, child_process_1.execSync)(`git rev-parse --verify main`, {
|
@@ -93,7 +101,6 @@ function addDepsToPackageJson(repoRoot, additionalPackages) {
|
|
93
101
|
}
|
94
102
|
(0, fileutils_1.writeJsonFile)(path, json);
|
95
103
|
}
|
96
|
-
exports.addDepsToPackageJson = addDepsToPackageJson;
|
97
104
|
function updateGitIgnore(root) {
|
98
105
|
const ignorePath = (0, path_1.join)(root, '.gitignore');
|
99
106
|
try {
|
@@ -118,18 +125,15 @@ function updateGitIgnore(root) {
|
|
118
125
|
}
|
119
126
|
catch { }
|
120
127
|
}
|
121
|
-
exports.updateGitIgnore = updateGitIgnore;
|
122
128
|
function runInstall(repoRoot, pmc = (0, package_manager_1.getPackageManagerCommand)()) {
|
123
129
|
(0, child_process_1.execSync)(pmc.install, { stdio: [0, 1, 2], cwd: repoRoot });
|
124
130
|
}
|
125
|
-
exports.runInstall = runInstall;
|
126
131
|
function initCloud(repoRoot, installationSource) {
|
127
132
|
(0, child_process_2.runNxSync)(`g nx:connect-to-nx-cloud --installationSource=${installationSource} --quiet --no-interactive`, {
|
128
133
|
stdio: [0, 1, 2],
|
129
134
|
cwd: repoRoot,
|
130
135
|
});
|
131
136
|
}
|
132
|
-
exports.initCloud = initCloud;
|
133
137
|
function addVsCodeRecommendedExtensions(repoRoot, extensions) {
|
134
138
|
const vsCodeExtensionsPath = (0, path_1.join)(repoRoot, '.vscode/extensions.json');
|
135
139
|
if ((0, fileutils_1.fileExists)(vsCodeExtensionsPath)) {
|
@@ -146,7 +150,6 @@ function addVsCodeRecommendedExtensions(repoRoot, extensions) {
|
|
146
150
|
(0, fileutils_1.writeJsonFile)(vsCodeExtensionsPath, { recommendations: extensions });
|
147
151
|
}
|
148
152
|
}
|
149
|
-
exports.addVsCodeRecommendedExtensions = addVsCodeRecommendedExtensions;
|
150
153
|
function markRootPackageJsonAsNxProjectLegacy(repoRoot, cacheableScripts, pmc) {
|
151
154
|
const json = (0, fileutils_1.readJsonFile)((0, path_2.joinPathFragments)(repoRoot, `package.json`));
|
152
155
|
json.nx = {};
|
@@ -166,7 +169,6 @@ function markRootPackageJsonAsNxProjectLegacy(repoRoot, cacheableScripts, pmc) {
|
|
166
169
|
}
|
167
170
|
(0, fileutils_1.writeJsonFile)(`package.json`, json);
|
168
171
|
}
|
169
|
-
exports.markRootPackageJsonAsNxProjectLegacy = markRootPackageJsonAsNxProjectLegacy;
|
170
172
|
function markPackageJsonAsNxProject(packageJsonPath) {
|
171
173
|
const json = (0, fileutils_1.readJsonFile)(packageJsonPath);
|
172
174
|
if (!json.scripts) {
|
@@ -175,7 +177,6 @@ function markPackageJsonAsNxProject(packageJsonPath) {
|
|
175
177
|
json.nx = {};
|
176
178
|
(0, fileutils_1.writeJsonFile)(packageJsonPath, json);
|
177
179
|
}
|
178
|
-
exports.markPackageJsonAsNxProject = markPackageJsonAsNxProject;
|
179
180
|
function printFinalMessage({ learnMoreLink, }) {
|
180
181
|
const pmc = (0, package_manager_1.getPackageManagerCommand)();
|
181
182
|
output_1.output.success({
|
@@ -187,7 +188,6 @@ function printFinalMessage({ learnMoreLink, }) {
|
|
187
188
|
].filter(Boolean),
|
188
189
|
});
|
189
190
|
}
|
190
|
-
exports.printFinalMessage = printFinalMessage;
|
191
191
|
function isMonorepo(packageJson) {
|
192
192
|
if (!!packageJson.workspaces)
|
193
193
|
return true;
|
@@ -197,4 +197,3 @@ function isMonorepo(packageJson) {
|
|
197
197
|
return true;
|
198
198
|
return false;
|
199
199
|
}
|
200
|
-
exports.isMonorepo = isMonorepo;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.initHandler =
|
3
|
+
exports.initHandler = initHandler;
|
4
4
|
const child_process_1 = require("child_process");
|
5
5
|
const enquirer_1 = require("enquirer");
|
6
6
|
const fs_1 = require("fs");
|
@@ -91,7 +91,6 @@ async function initHandler(options) {
|
|
91
91
|
}
|
92
92
|
}
|
93
93
|
}
|
94
|
-
exports.initHandler = initHandler;
|
95
94
|
function isCRA(packageJson) {
|
96
95
|
const combinedDependencies = {
|
97
96
|
...packageJson.dependencies,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.initHandler =
|
3
|
+
exports.initHandler = initHandler;
|
4
4
|
const fs_1 = require("fs");
|
5
5
|
const semver_1 = require("semver");
|
6
6
|
const output_1 = require("../../utils/output");
|
@@ -99,7 +99,6 @@ async function initHandler(options) {
|
|
99
99
|
learnMoreLink,
|
100
100
|
});
|
101
101
|
}
|
102
|
-
exports.initHandler = initHandler;
|
103
102
|
const npmPackageToPluginMap = {
|
104
103
|
// Generic JS tools
|
105
104
|
eslint: '@nx/eslint',
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.listHandler =
|
3
|
+
exports.listHandler = listHandler;
|
4
4
|
const workspace_root_1 = require("../../utils/workspace-root");
|
5
5
|
const output_1 = require("../../utils/output");
|
6
6
|
const plugins_1 = require("../../utils/plugins");
|
@@ -44,4 +44,3 @@ async function listHandler(args) {
|
|
44
44
|
});
|
45
45
|
}
|
46
46
|
}
|
47
|
-
exports.listHandler = listHandler;
|
@@ -106,7 +106,7 @@ export declare function executeMigrations(root: string, migrations: {
|
|
106
106
|
name: string;
|
107
107
|
description?: string;
|
108
108
|
version: string;
|
109
|
-
cli?:
|
109
|
+
cli?: "nx" | "angular";
|
110
110
|
}[]>;
|
111
111
|
export declare function migrate(root: string, args: {
|
112
112
|
[k: string]: any;
|
@@ -1,6 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.Migrator = void 0;
|
4
|
+
exports.normalizeVersion = normalizeVersion;
|
5
|
+
exports.parseMigrationsOptions = parseMigrationsOptions;
|
6
|
+
exports.executeMigrations = executeMigrations;
|
7
|
+
exports.migrate = migrate;
|
4
8
|
const chalk = require("chalk");
|
5
9
|
const child_process_1 = require("child_process");
|
6
10
|
const enquirer_1 = require("enquirer");
|
@@ -54,7 +58,6 @@ function normalizeVersion(version) {
|
|
54
58
|
}
|
55
59
|
return '0.0.0';
|
56
60
|
}
|
57
|
-
exports.normalizeVersion = normalizeVersion;
|
58
61
|
function cleanSemver(version) {
|
59
62
|
return (0, semver_1.clean)(version) ?? (0, semver_1.coerce)(version);
|
60
63
|
}
|
@@ -487,7 +490,6 @@ async function parseMigrationsOptions(options) {
|
|
487
490
|
};
|
488
491
|
}
|
489
492
|
}
|
490
|
-
exports.parseMigrationsOptions = parseMigrationsOptions;
|
491
493
|
function createInstalledPackageVersionsResolver(root) {
|
492
494
|
const cache = {};
|
493
495
|
function getInstalledPackageVersion(packageName, overrides) {
|
@@ -952,7 +954,6 @@ async function executeMigrations(root, migrations, isVerbose, shouldCreateCommit
|
|
952
954
|
}
|
953
955
|
return migrationsWithNoChanges;
|
954
956
|
}
|
955
|
-
exports.executeMigrations = executeMigrations;
|
956
957
|
async function runMigrations(root, opts, args, isVerbose, shouldCreateCommits = false, commitPrefix) {
|
957
958
|
if (!process.env.NX_MIGRATE_SKIP_INSTALL) {
|
958
959
|
runInstall();
|
@@ -1033,7 +1034,6 @@ async function migrate(root, args, rawArgs) {
|
|
1033
1034
|
}
|
1034
1035
|
});
|
1035
1036
|
}
|
1036
|
-
exports.migrate = migrate;
|
1037
1037
|
function readMigrationCollection(packageName, root) {
|
1038
1038
|
const collectionPath = readPackageMigrationConfig(packageName, root).migrations;
|
1039
1039
|
const collection = (0, fileutils_1.readJsonFile)(collectionPath);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.newWorkspace =
|
3
|
+
exports.newWorkspace = newWorkspace;
|
4
4
|
const tree_1 = require("../../generators/tree");
|
5
5
|
const params_1 = require("../../utils/params");
|
6
6
|
const generator_utils_1 = require("../generate/generator-utils");
|
@@ -27,4 +27,3 @@ async function newWorkspace(cwd, args) {
|
|
27
27
|
}
|
28
28
|
});
|
29
29
|
}
|
30
|
-
exports.newWorkspace = newWorkspace;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.releaseChangelogCLIHandler = void 0;
|
4
|
+
exports.releaseChangelog = releaseChangelog;
|
5
|
+
exports.shouldCreateGitHubRelease = shouldCreateGitHubRelease;
|
4
6
|
const chalk = require("chalk");
|
5
7
|
const enquirer_1 = require("enquirer");
|
6
8
|
const fs_extra_1 = require("fs-extra");
|
@@ -465,7 +467,6 @@ async function releaseChangelog(args) {
|
|
465
467
|
projectChangelogs: allProjectChangelogs,
|
466
468
|
};
|
467
469
|
}
|
468
|
-
exports.releaseChangelog = releaseChangelog;
|
469
470
|
function resolveChangelogVersions(args, releaseGroups, releaseGroupToFilteredProjects) {
|
470
471
|
if (!args.version && !args.versionData) {
|
471
472
|
throw new Error(`You must provide a version string and/or a versionData object.`);
|
@@ -863,7 +864,6 @@ function shouldCreateGitHubRelease(changelogConfig, createReleaseArg = undefined
|
|
863
864
|
}
|
864
865
|
return (changelogConfig || {}).createRelease === 'github';
|
865
866
|
}
|
866
|
-
exports.shouldCreateGitHubRelease = shouldCreateGitHubRelease;
|
867
867
|
async function promptForGitHubRelease() {
|
868
868
|
try {
|
869
869
|
const result = await (0, enquirer_1.prompt)([
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.IMPLICIT_DEFAULT_RELEASE_GROUP = void 0;
|
4
|
+
exports.createNxReleaseConfig = createNxReleaseConfig;
|
5
|
+
exports.handleNxReleaseConfigError = handleNxReleaseConfigError;
|
4
6
|
/**
|
5
7
|
* `nx release` is a powerful feature which spans many possible use cases. The possible variations
|
6
8
|
* of configuration are therefore quite complex, particularly when you consider release groups.
|
@@ -368,7 +370,6 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
|
|
368
370
|
},
|
369
371
|
};
|
370
372
|
}
|
371
|
-
exports.createNxReleaseConfig = createNxReleaseConfig;
|
372
373
|
/**
|
373
374
|
* In some cases it is much cleaner and more intuitive for the user to be able to
|
374
375
|
* specify `true` in their config when they want to use the default config for a
|
@@ -538,7 +539,6 @@ async function handleNxReleaseConfigError(error) {
|
|
538
539
|
}
|
539
540
|
process.exit(1);
|
540
541
|
}
|
541
|
-
exports.handleNxReleaseConfigError = handleNxReleaseConfigError;
|
542
542
|
function ensureReleaseGroupReleaseTagPatternIsValid(releaseTagPattern, releaseGroupName) {
|
543
543
|
// ensure that any provided releaseTagPattern contains exactly one instance of {version}
|
544
544
|
return releaseTagPattern.split('{version}').length === 2
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.filterReleaseGroups =
|
3
|
+
exports.filterReleaseGroups = filterReleaseGroups;
|
4
4
|
const find_matching_projects_1 = require("../../../utils/find-matching-projects");
|
5
5
|
const output_1 = require("../../../utils/output");
|
6
6
|
const config_1 = require("./config");
|
@@ -148,4 +148,3 @@ function filterReleaseGroups(projectGraph, nxReleaseConfig, projectsFilter, grou
|
|
148
148
|
releaseGroupToFilteredProjects,
|
149
149
|
};
|
150
150
|
}
|
151
|
-
exports.filterReleaseGroups = filterReleaseGroups;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.readRawVersionPlans = readRawVersionPlans;
|
4
|
+
exports.setVersionPlansOnGroups = setVersionPlansOnGroups;
|
5
|
+
exports.getVersionPlansAbsolutePath = getVersionPlansAbsolutePath;
|
4
6
|
const fs_1 = require("fs");
|
5
7
|
const fs_extra_1 = require("fs-extra");
|
6
8
|
const path_1 = require("path");
|
@@ -33,7 +35,6 @@ async function readRawVersionPlans() {
|
|
33
35
|
}
|
34
36
|
return versionPlans;
|
35
37
|
}
|
36
|
-
exports.readRawVersionPlans = readRawVersionPlans;
|
37
38
|
function setVersionPlansOnGroups(rawVersionPlans, releaseGroups, allProjectNamesInWorkspace) {
|
38
39
|
const groupsByName = releaseGroups.reduce((acc, group) => acc.set(group.name, group), new Map());
|
39
40
|
const isDefaultGroup = isDefault(releaseGroups);
|
@@ -166,7 +167,6 @@ function setVersionPlansOnGroups(rawVersionPlans, releaseGroups, allProjectNames
|
|
166
167
|
});
|
167
168
|
return releaseGroups;
|
168
169
|
}
|
169
|
-
exports.setVersionPlansOnGroups = setVersionPlansOnGroups;
|
170
170
|
function isDefault(releaseGroups) {
|
171
171
|
return (releaseGroups.length === 1 &&
|
172
172
|
releaseGroups.some((group) => group.name === config_1.IMPLICIT_DEFAULT_RELEASE_GROUP));
|
@@ -174,7 +174,6 @@ function isDefault(releaseGroups) {
|
|
174
174
|
function getVersionPlansAbsolutePath() {
|
175
175
|
return (0, path_1.join)(workspace_root_1.workspaceRoot, versionPlansDirectory);
|
176
176
|
}
|
177
|
-
exports.getVersionPlansAbsolutePath = getVersionPlansAbsolutePath;
|
178
177
|
function isReleaseType(value) {
|
179
178
|
return semver_1.RELEASE_TYPES.includes(value);
|
180
179
|
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.releasePlanCLIHandler = void 0;
|
4
|
+
exports.releasePlan = releasePlan;
|
4
5
|
const enquirer_1 = require("enquirer");
|
5
6
|
const fs_extra_1 = require("fs-extra");
|
6
7
|
const path_1 = require("path");
|
@@ -108,7 +109,6 @@ async function releasePlan(args) {
|
|
108
109
|
}
|
109
110
|
return 0;
|
110
111
|
}
|
111
|
-
exports.releasePlan = releasePlan;
|
112
112
|
async function promptForVersion(message) {
|
113
113
|
try {
|
114
114
|
const reply = await (0, enquirer_1.prompt)([
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.releasePublishCLIHandler = void 0;
|
4
|
+
exports.releasePublish = releasePublish;
|
4
5
|
const nx_json_1 = require("../../config/nx-json");
|
5
6
|
const file_map_utils_1 = require("../../project-graph/file-map-utils");
|
6
7
|
const project_graph_1 = require("../../project-graph/project-graph");
|
@@ -78,7 +79,6 @@ async function releasePublish(args, isCLI = false) {
|
|
78
79
|
}
|
79
80
|
return overallExitStatus;
|
80
81
|
}
|
81
|
-
exports.releasePublish = releasePublish;
|
82
82
|
async function runPublishOnProjects(args, projectGraph, nxJson, projectNames, isCLI, extraOptions) {
|
83
83
|
const projectsToRun = projectNames.map((projectName) => projectGraph.nodes[projectName]);
|
84
84
|
const overrides = (0, command_line_utils_1.createOverrides)(args.__overrides_unparsed__);
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.releaseCLIHandler = void 0;
|
4
|
+
exports.release = release;
|
4
5
|
const enquirer_1 = require("enquirer");
|
5
6
|
const fs_extra_1 = require("fs-extra");
|
6
7
|
const nx_json_1 = require("../../config/nx-json");
|
@@ -197,7 +198,6 @@ async function release(args) {
|
|
197
198
|
}
|
198
199
|
return versionResult;
|
199
200
|
}
|
200
|
-
exports.release = release;
|
201
201
|
async function promptForPublish() {
|
202
202
|
try {
|
203
203
|
const reply = await (0, enquirer_1.prompt)([
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.batchProjectsByGeneratorConfig =
|
3
|
+
exports.batchProjectsByGeneratorConfig = batchProjectsByGeneratorConfig;
|
4
4
|
const json_diff_1 = require("../../../utils/json-diff");
|
5
5
|
/**
|
6
6
|
* To be most efficient with our invocations of runVersionOnProjects, we want to batch projects by their generator and generator options
|
@@ -34,4 +34,3 @@ function batchProjectsByGeneratorConfig(projectGraph, releaseGroup, projectNames
|
|
34
34
|
}
|
35
35
|
return configBatches;
|
36
36
|
}
|
37
|
-
exports.batchProjectsByGeneratorConfig = batchProjectsByGeneratorConfig;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.execCommand =
|
3
|
+
exports.execCommand = execCommand;
|
4
4
|
const node_child_process_1 = require("node:child_process");
|
5
5
|
async function execCommand(cmd, args, options) {
|
6
6
|
return new Promise((resolve, reject) => {
|
@@ -31,4 +31,3 @@ async function execCommand(cmd, args, options) {
|
|
31
31
|
});
|
32
32
|
});
|
33
33
|
}
|
34
|
-
exports.execCommand = execCommand;
|