@nx/module-federation 21.2.2 → 21.2.4
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": "21.2.
|
|
4
|
+
"version": "21.2.4",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"executors": "./executors.json",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"tslib": "^2.3.0",
|
|
28
|
-
"@nx/devkit": "21.2.
|
|
29
|
-
"@nx/js": "21.2.
|
|
30
|
-
"@nx/web": "21.2.
|
|
28
|
+
"@nx/devkit": "21.2.4",
|
|
29
|
+
"@nx/js": "21.2.4",
|
|
30
|
+
"@nx/web": "21.2.4",
|
|
31
31
|
"picocolors": "^1.1.0",
|
|
32
32
|
"webpack": "^5.88.0",
|
|
33
33
|
"@rspack/core": "^1.3.8",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDynamicMfManifestFile = getDynamicMfManifestFile;
|
|
4
|
-
const
|
|
4
|
+
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
5
5
|
const fs_1 = require("fs");
|
|
6
|
+
const path_1 = require("path");
|
|
6
7
|
function getDynamicMfManifestFile(project, workspaceRoot) {
|
|
7
8
|
// {sourceRoot}/assets/module-federation.manifest.json was the generated
|
|
8
9
|
// path for the manifest file in the past. We now generate the manifest
|
|
@@ -12,6 +13,6 @@ function getDynamicMfManifestFile(project, workspaceRoot) {
|
|
|
12
13
|
// at the old path.
|
|
13
14
|
return [
|
|
14
15
|
(0, path_1.join)(workspaceRoot, project.root, 'public/module-federation.manifest.json'),
|
|
15
|
-
(0, path_1.join)(workspaceRoot, project
|
|
16
|
+
(0, path_1.join)(workspaceRoot, (0, ts_solution_setup_1.getProjectSourceRoot)(project), 'assets/module-federation.manifest.json'),
|
|
16
17
|
].find((path) => (0, fs_1.existsSync)(path));
|
|
17
18
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDependentPackagesForProject = getDependentPackagesForProject;
|
|
4
|
-
const typescript_1 = require("./typescript");
|
|
5
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
6
|
+
const typescript_1 = require("./typescript");
|
|
6
7
|
function getDependentPackagesForProject(projectGraph, name) {
|
|
7
8
|
const { npmPackages, workspaceLibraries } = collectDependencies(projectGraph, name);
|
|
8
9
|
return {
|
|
@@ -39,7 +40,7 @@ function getLibraryImportPath(library, projectGraph) {
|
|
|
39
40
|
buildLibsFromSource = process.env.NX_BUILD_LIBS_FROM_SOURCE === 'true';
|
|
40
41
|
}
|
|
41
42
|
const libraryNode = projectGraph.nodes[library];
|
|
42
|
-
let sourceRoots = [libraryNode.data
|
|
43
|
+
let sourceRoots = [(0, ts_solution_setup_1.getProjectSourceRoot)(libraryNode.data)];
|
|
43
44
|
if (!buildLibsFromSource && process.env.NX_BUILD_TARGET) {
|
|
44
45
|
const buildTarget = (0, devkit_1.parseTargetString)(process.env.NX_BUILD_TARGET, projectGraph);
|
|
45
46
|
sourceRoots = (0, devkit_1.getOutputsForTargetAndConfiguration)(buildTarget, {}, libraryNode);
|