nx 19.0.0-canary.20240502-5ded713 → 19.0.0-rc.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx",
3
- "version": "19.0.0-canary.20240502-5ded713",
3
+ "version": "19.0.0-rc.0",
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.20240502-5ded713"
69
+ "@nrwl/tao": "19.0.0-rc.0"
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.20240502-5ded713",
85
- "@nx/nx-darwin-arm64": "19.0.0-canary.20240502-5ded713",
86
- "@nx/nx-linux-x64-gnu": "19.0.0-canary.20240502-5ded713",
87
- "@nx/nx-linux-x64-musl": "19.0.0-canary.20240502-5ded713",
88
- "@nx/nx-win32-x64-msvc": "19.0.0-canary.20240502-5ded713",
89
- "@nx/nx-linux-arm64-gnu": "19.0.0-canary.20240502-5ded713",
90
- "@nx/nx-linux-arm64-musl": "19.0.0-canary.20240502-5ded713",
91
- "@nx/nx-linux-arm-gnueabihf": "19.0.0-canary.20240502-5ded713",
92
- "@nx/nx-win32-arm64-msvc": "19.0.0-canary.20240502-5ded713",
93
- "@nx/nx-freebsd-x64": "19.0.0-canary.20240502-5ded713"
84
+ "@nx/nx-darwin-x64": "19.0.0-rc.0",
85
+ "@nx/nx-darwin-arm64": "19.0.0-rc.0",
86
+ "@nx/nx-linux-x64-gnu": "19.0.0-rc.0",
87
+ "@nx/nx-linux-x64-musl": "19.0.0-rc.0",
88
+ "@nx/nx-win32-x64-msvc": "19.0.0-rc.0",
89
+ "@nx/nx-linux-arm64-gnu": "19.0.0-rc.0",
90
+ "@nx/nx-linux-arm64-musl": "19.0.0-rc.0",
91
+ "@nx/nx-linux-arm-gnueabihf": "19.0.0-rc.0",
92
+ "@nx/nx-win32-arm64-msvc": "19.0.0-rc.0",
93
+ "@nx/nx-freebsd-x64": "19.0.0-rc.0"
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;