@nx/devkit 20.3.0-canary.20241214-4cd640a → 20.3.0-canary.20241217-ee4de0b

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/devkit",
3
- "version": "20.3.0-canary.20241214-4cd640a",
3
+ "version": "20.3.0-canary.20241217-ee4de0b",
4
4
  "private": false,
5
5
  "description": "The Nx Devkit is used to customize Nx for different technologies and use cases. It contains many utility functions for reading and writing files, updating configuration, working with Abstract Syntax Trees(ASTs), and more. Learn more about [extending Nx by leveraging the Nx Devkit](https://nx.dev/extending-nx/intro/getting-started) on our docs.",
6
6
  "repository": {
@@ -55,8 +55,12 @@ async function _addPluginInternal(tree, graph, pluginName, pluginFactory, option
55
55
  }
56
56
  catch (e) {
57
57
  // Errors are okay for this because we're only running 1 plugin
58
- if (e instanceof devkit_internals_1.ProjectConfigurationsError) {
58
+ if ((0, devkit_internals_1.isProjectConfigurationsError)(e)) {
59
59
  projConfigs = e.partialProjectConfigurationsResult;
60
+ // ignore errors from projects with no name
61
+ if (!e.errors.every(devkit_internals_1.isProjectsWithNoNameError)) {
62
+ throw e;
63
+ }
60
64
  }
61
65
  else {
62
66
  throw e;
@@ -89,8 +93,12 @@ async function _addPluginInternal(tree, graph, pluginName, pluginFactory, option
89
93
  }
90
94
  catch (e) {
91
95
  // Errors are okay for this because we're only running 1 plugin
92
- if (e instanceof devkit_internals_1.ProjectConfigurationsError) {
96
+ if ((0, devkit_internals_1.isProjectConfigurationsError)(e)) {
93
97
  projConfigs = e.partialProjectConfigurationsResult;
98
+ // ignore errors from projects with no name
99
+ if (!e.errors.every(devkit_internals_1.isProjectsWithNoNameError)) {
100
+ throw e;
101
+ }
94
102
  }
95
103
  else {
96
104
  throw e;