@nx/devkit 20.3.0-canary.20241214-4cd640a → 20.3.0-canary.20241218-fb40366
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 +1 -1
- package/src/utils/add-plugin.js +10 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/devkit",
|
3
|
-
"version": "20.3.0-canary.
|
3
|
+
"version": "20.3.0-canary.20241218-fb40366",
|
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": {
|
package/src/utils/add-plugin.js
CHANGED
@@ -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 (
|
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 (
|
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;
|