nx 18.1.0-canary.20240315-3b8cbae → 18.1.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/package.json +12 -12
- package/src/command-line/release/config/config.js +4 -3
- package/src/command-line/run/run.js +3 -3
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/polyfills.js +1 -1
- package/src/executors/run-commands/run-commands.impl.js +14 -10
- package/src/executors/run-script/run-script.impl.js +5 -5
- package/src/migrations/update-17-3-0/nx-release-path.js +0 -1
- package/src/native/index.d.ts +14 -11
- package/src/native/index.js +3 -4
- package/src/project-graph/file-utils.js +4 -2
- package/src/project-graph/utils/project-configuration-utils.d.ts +2 -2
- package/src/project-graph/utils/project-configuration-utils.js +30 -30
- package/src/project-graph/utils/retrieve-workspace-files.js +3 -3
- package/src/tasks-runner/fork.js +7 -7
- package/src/tasks-runner/forked-process-task-runner.d.ts +2 -4
- package/src/tasks-runner/forked-process-task-runner.js +13 -17
- package/src/tasks-runner/{psuedo-ipc.d.ts → pseudo-ipc.d.ts} +7 -7
- package/src/tasks-runner/{psuedo-ipc.js → pseudo-ipc.js} +9 -9
- package/src/tasks-runner/pseudo-terminal.d.ts +42 -0
- package/src/tasks-runner/pseudo-terminal.js +133 -0
- package/src/tasks-runner/task-orchestrator.js +0 -1
- package/src/utils/ignore.js +1 -1
- package/src/utils/nx-plugin.d.ts +5 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "18.1.
|
3
|
+
"version": "18.1.1",
|
4
4
|
"private": false,
|
5
5
|
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
|
6
6
|
"repository": {
|
@@ -66,7 +66,7 @@
|
|
66
66
|
"yargs-parser": "21.1.1",
|
67
67
|
"node-machine-id": "1.1.12",
|
68
68
|
"ora": "5.3.0",
|
69
|
-
"@nrwl/tao": "18.1.
|
69
|
+
"@nrwl/tao": "18.1.1"
|
70
70
|
},
|
71
71
|
"peerDependencies": {
|
72
72
|
"@swc-node/register": "^1.8.0",
|
@@ -81,16 +81,16 @@
|
|
81
81
|
}
|
82
82
|
},
|
83
83
|
"optionalDependencies": {
|
84
|
-
"@nx/nx-darwin-x64": "18.1.
|
85
|
-
"@nx/nx-darwin-arm64": "18.1.
|
86
|
-
"@nx/nx-linux-x64-gnu": "18.1.
|
87
|
-
"@nx/nx-linux-x64-musl": "18.1.
|
88
|
-
"@nx/nx-win32-x64-msvc": "18.1.
|
89
|
-
"@nx/nx-linux-arm64-gnu": "18.1.
|
90
|
-
"@nx/nx-linux-arm64-musl": "18.1.
|
91
|
-
"@nx/nx-linux-arm-gnueabihf": "18.1.
|
92
|
-
"@nx/nx-win32-arm64-msvc": "18.1.
|
93
|
-
"@nx/nx-freebsd-x64": "18.1.
|
84
|
+
"@nx/nx-darwin-x64": "18.1.1",
|
85
|
+
"@nx/nx-darwin-arm64": "18.1.1",
|
86
|
+
"@nx/nx-linux-x64-gnu": "18.1.1",
|
87
|
+
"@nx/nx-linux-x64-musl": "18.1.1",
|
88
|
+
"@nx/nx-win32-x64-msvc": "18.1.1",
|
89
|
+
"@nx/nx-linux-arm64-gnu": "18.1.1",
|
90
|
+
"@nx/nx-linux-arm64-musl": "18.1.1",
|
91
|
+
"@nx/nx-linux-arm-gnueabihf": "18.1.1",
|
92
|
+
"@nx/nx-win32-arm64-msvc": "18.1.1",
|
93
|
+
"@nx/nx-freebsd-x64": "18.1.1"
|
94
94
|
},
|
95
95
|
"nx-migrations": {
|
96
96
|
"migrations": "./migrations.json",
|
@@ -84,6 +84,7 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
|
|
84
84
|
userGroups[0].projectsRelationship === 'independent') ||
|
85
85
|
(userConfig.projectsRelationship === 'independent' &&
|
86
86
|
!userGroups.some((g) => g.projectsRelationship === 'fixed'));
|
87
|
+
const defaultRendererPath = (0, path_1.join)(__dirname, '../../../../release/changelog-renderer');
|
87
88
|
const WORKSPACE_DEFAULTS = {
|
88
89
|
// By default all projects in all groups are released together
|
89
90
|
projectsRelationship: workspaceProjectsRelationship,
|
@@ -103,7 +104,7 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
|
|
103
104
|
createRelease: false,
|
104
105
|
entryWhenNoChanges: 'This was a version bump only, there were no code changes.',
|
105
106
|
file: '{workspaceRoot}/CHANGELOG.md',
|
106
|
-
renderer:
|
107
|
+
renderer: defaultRendererPath,
|
107
108
|
renderOptions: {
|
108
109
|
authors: true,
|
109
110
|
commitReferences: true,
|
@@ -116,7 +117,7 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
|
|
116
117
|
createRelease: false,
|
117
118
|
file: '{projectRoot}/CHANGELOG.md',
|
118
119
|
entryWhenNoChanges: 'This was a version bump only for {projectName} to align it with other projects, there were no code changes.',
|
119
|
-
renderer:
|
120
|
+
renderer: defaultRendererPath,
|
120
121
|
renderOptions: {
|
121
122
|
authors: true,
|
122
123
|
commitReferences: true,
|
@@ -145,7 +146,7 @@ async function createNxReleaseConfig(projectGraph, projectFileMap, userConfig =
|
|
145
146
|
createRelease: false,
|
146
147
|
entryWhenNoChanges: 'This was a version bump only for {projectName} to align it with other projects, there were no code changes.',
|
147
148
|
file: '{projectRoot}/CHANGELOG.md',
|
148
|
-
renderer:
|
149
|
+
renderer: defaultRendererPath,
|
149
150
|
renderOptions: {
|
150
151
|
authors: true,
|
151
152
|
commitReferences: true,
|
@@ -7,10 +7,9 @@ const path_1 = require("path");
|
|
7
7
|
const serialize_overrides_into_command_line_1 = require("../../utils/serialize-overrides-into-command-line");
|
8
8
|
const project_graph_1 = require("../../project-graph/project-graph");
|
9
9
|
const configuration_1 = require("../../config/configuration");
|
10
|
-
const native_1 = require("../../native");
|
11
10
|
const async_iterator_1 = require("../../utils/async-iterator");
|
12
11
|
const executor_utils_1 = require("./executor-utils");
|
13
|
-
const
|
12
|
+
const pseudo_terminal_1 = require("../../tasks-runner/pseudo-terminal");
|
14
13
|
function printRunHelp(opts, schema, plugin) {
|
15
14
|
(0, print_help_1.printHelp)(`run ${opts.project}:${opts.target}`, schema, {
|
16
15
|
mode: 'run',
|
@@ -67,8 +66,9 @@ async function printTargetRunHelpInternal({ project, target }, root, projectsCon
|
|
67
66
|
executor === 'run-commands' &&
|
68
67
|
targetConfig.options.command) {
|
69
68
|
const command = targetConfig.options.command.split(' ')[0];
|
69
|
+
const terminal = (0, pseudo_terminal_1.getPseudoTerminal)();
|
70
70
|
await new Promise(() => {
|
71
|
-
const cp =
|
71
|
+
const cp = terminal.runCommand(`${command} --help`);
|
72
72
|
cp.onExit((code) => {
|
73
73
|
process.exit(code);
|
74
74
|
});
|