@nx/module-federation 22.3.0 → 22.3.2
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/module-federation",
|
|
3
3
|
"description": "The Nx Plugin for Module Federation contains executors and utilities that support building applications using Module Federation.",
|
|
4
|
-
"version": "22.3.
|
|
4
|
+
"version": "22.3.2",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@module-federation/enhanced": "^0.21.2",
|
|
28
28
|
"@module-federation/node": "^2.7.21",
|
|
29
29
|
"@module-federation/sdk": "^0.21.2",
|
|
30
|
-
"@nx/devkit": "22.3.
|
|
31
|
-
"@nx/js": "22.3.
|
|
32
|
-
"@nx/web": "22.3.
|
|
30
|
+
"@nx/devkit": "22.3.2",
|
|
31
|
+
"@nx/js": "22.3.2",
|
|
32
|
+
"@nx/web": "22.3.2",
|
|
33
33
|
"@rspack/core": "^1.5.2",
|
|
34
34
|
"express": "^4.21.2",
|
|
35
35
|
"http-proxy-middleware": "^3.0.5",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"webpack": "^5.101.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"nx": "22.3.
|
|
41
|
+
"nx": "22.3.2"
|
|
42
42
|
},
|
|
43
43
|
"nx-migrations": {
|
|
44
44
|
"migrations": "./migrations.json"
|
|
@@ -23,7 +23,9 @@ function collectDependencies(projectGraph, name, dependencies = {
|
|
|
23
23
|
if (dependency.target.startsWith('npm:')) {
|
|
24
24
|
dependencies.npmPackages.add(dependency.target.replace('npm:', ''));
|
|
25
25
|
}
|
|
26
|
-
else {
|
|
26
|
+
else if (!dependency.target.includes(':')) {
|
|
27
|
+
// Only process as workspace library if it's not an external node.
|
|
28
|
+
// External nodes have prefixes like 'npm:', 'cargo:', etc.
|
|
27
29
|
if (projectGraph.nodes[dependency.target]) {
|
|
28
30
|
dependencies.workspaceLibraries.set(dependency.target, {
|
|
29
31
|
name: dependency.target,
|
|
@@ -33,6 +35,7 @@ function collectDependencies(projectGraph, name, dependencies = {
|
|
|
33
35
|
collectDependencies(projectGraph, dependency.target, dependencies, seen);
|
|
34
36
|
}
|
|
35
37
|
}
|
|
38
|
+
// Skip other external node types (cargo:, etc.)
|
|
36
39
|
});
|
|
37
40
|
return dependencies;
|
|
38
41
|
}
|
package/src/utils/port-utils.js
CHANGED
|
@@ -6,7 +6,7 @@ const wait_for_port_open_1 = require("@nx/web/src/utils/wait-for-port-open");
|
|
|
6
6
|
* Check if a port is already in use by attempting to connect to it.
|
|
7
7
|
* Uses waitForPortOpen with retries: 0 for an immediate check.
|
|
8
8
|
*/
|
|
9
|
-
async function isPortInUse(port, host = '
|
|
9
|
+
async function isPortInUse(port, host = 'localhost') {
|
|
10
10
|
try {
|
|
11
11
|
await (0, wait_for_port_open_1.waitForPortOpen)(port, { retries: 0, host });
|
|
12
12
|
return true; // Port is open/in use
|