nx 19.0.0-canary.20240502-5ded713 → 19.0.0-canary.20240503-dbad02a
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/graph/graph.js +27 -3
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/styles.css +1 -1
- package/src/generators/utils/project-configuration.js +1 -6
- package/src/plugins/package-json-workspaces/create-nodes.d.ts +1 -0
- package/src/plugins/package-json-workspaces/create-nodes.js +23 -18
- package/src/project-graph/build-project-graph.js +29 -4
- package/src/project-graph/error-types.d.ts +27 -8
- package/src/project-graph/error-types.js +66 -10
- package/src/project-graph/utils/project-configuration-utils.d.ts +1 -0
- package/src/project-graph/utils/project-configuration-utils.js +94 -30
- package/src/utils/assert-workspace-validity.js +2 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "19.0.0-canary.
|
3
|
+
"version": "19.0.0-canary.20240503-dbad02a",
|
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": "19.0.0-canary.
|
69
|
+
"@nrwl/tao": "19.0.0-canary.20240503-dbad02a"
|
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": "19.0.0-canary.
|
85
|
-
"@nx/nx-darwin-arm64": "19.0.0-canary.
|
86
|
-
"@nx/nx-linux-x64-gnu": "19.0.0-canary.
|
87
|
-
"@nx/nx-linux-x64-musl": "19.0.0-canary.
|
88
|
-
"@nx/nx-win32-x64-msvc": "19.0.0-canary.
|
89
|
-
"@nx/nx-linux-arm64-gnu": "19.0.0-canary.
|
90
|
-
"@nx/nx-linux-arm64-musl": "19.0.0-canary.
|
91
|
-
"@nx/nx-linux-arm-gnueabihf": "19.0.0-canary.
|
92
|
-
"@nx/nx-win32-arm64-msvc": "19.0.0-canary.
|
93
|
-
"@nx/nx-freebsd-x64": "19.0.0-canary.
|
84
|
+
"@nx/nx-darwin-x64": "19.0.0-canary.20240503-dbad02a",
|
85
|
+
"@nx/nx-darwin-arm64": "19.0.0-canary.20240503-dbad02a",
|
86
|
+
"@nx/nx-linux-x64-gnu": "19.0.0-canary.20240503-dbad02a",
|
87
|
+
"@nx/nx-linux-x64-musl": "19.0.0-canary.20240503-dbad02a",
|
88
|
+
"@nx/nx-win32-x64-msvc": "19.0.0-canary.20240503-dbad02a",
|
89
|
+
"@nx/nx-linux-arm64-gnu": "19.0.0-canary.20240503-dbad02a",
|
90
|
+
"@nx/nx-linux-arm64-musl": "19.0.0-canary.20240503-dbad02a",
|
91
|
+
"@nx/nx-linux-arm-gnueabihf": "19.0.0-canary.20240503-dbad02a",
|
92
|
+
"@nx/nx-win32-arm64-msvc": "19.0.0-canary.20240503-dbad02a",
|
93
|
+
"@nx/nx-freebsd-x64": "19.0.0-canary.20240503-dbad02a"
|
94
94
|
},
|
95
95
|
"nx-migrations": {
|
96
96
|
"migrations": "./migrations.json",
|
@@ -169,9 +169,6 @@ async function generateGraph(args, affectedProjects) {
|
|
169
169
|
}
|
170
170
|
catch (e) {
|
171
171
|
if (e instanceof error_types_1.ProjectGraphError) {
|
172
|
-
output_1.output.warn({
|
173
|
-
title: 'Failed to process project graph. Showing partial graph.',
|
174
|
-
});
|
175
172
|
rawGraph = e.getPartialProjectGraph();
|
176
173
|
sourceMaps = e.getPartialSourcemaps();
|
177
174
|
isPartial = true;
|
@@ -179,6 +176,20 @@ async function generateGraph(args, affectedProjects) {
|
|
179
176
|
if (!rawGraph) {
|
180
177
|
(0, project_graph_1.handleProjectGraphError)({ exitOnError: true }, e);
|
181
178
|
}
|
179
|
+
else {
|
180
|
+
const errors = e.getErrors();
|
181
|
+
if (errors?.length > 0) {
|
182
|
+
errors.forEach((e) => {
|
183
|
+
output_1.output.error({
|
184
|
+
title: e.message,
|
185
|
+
bodyLines: [e.stack],
|
186
|
+
});
|
187
|
+
});
|
188
|
+
}
|
189
|
+
output_1.output.warn({
|
190
|
+
title: `${errors?.length > 1 ? `${errors.length} errors` : `An error`} occured while processing the project graph. Showing partial graph.`,
|
191
|
+
});
|
192
|
+
}
|
182
193
|
}
|
183
194
|
let prunedGraph = (0, operators_1.pruneExternalNodes)(rawGraph);
|
184
195
|
const projects = Object.values(prunedGraph.nodes);
|
@@ -448,6 +459,19 @@ function createFileWatcher() {
|
|
448
459
|
if (projectGraphClientResponse.hash !==
|
449
460
|
currentProjectGraphClientResponse.hash &&
|
450
461
|
sourceMapResponse) {
|
462
|
+
if (projectGraphClientResponse.errors?.length > 0) {
|
463
|
+
projectGraphClientResponse.errors.forEach((e) => {
|
464
|
+
output_1.output.error({
|
465
|
+
title: e.message,
|
466
|
+
bodyLines: [e.stack],
|
467
|
+
});
|
468
|
+
});
|
469
|
+
output_1.output.warn({
|
470
|
+
title: `${projectGraphClientResponse.errors.length > 1
|
471
|
+
? `${projectGraphClientResponse.errors.length} errors`
|
472
|
+
: `An error`} occured while processing the project graph. Showing partial graph.`,
|
473
|
+
});
|
474
|
+
}
|
451
475
|
output_1.output.note({ title: 'Graph changes updated.' });
|
452
476
|
currentProjectGraphClientResponse = projectGraphClientResponse;
|
453
477
|
currentSourceMapsClientResponse = sourceMapResponse;
|