@nx/webpack 19.0.0-rc.2 → 19.0.1
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/webpack",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for Webpack contains executors and generators that support building applications using Webpack.",
|
|
6
6
|
"repository": {
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"webpack-dev-server": "^4.9.3",
|
|
64
64
|
"webpack-node-externals": "^3.0.0",
|
|
65
65
|
"webpack-subresource-integrity": "^5.1.0",
|
|
66
|
-
"@nx/devkit": "19.0.
|
|
67
|
-
"@nx/js": "19.0.
|
|
68
|
-
"@nrwl/webpack": "19.0.
|
|
66
|
+
"@nx/devkit": "19.0.1",
|
|
67
|
+
"@nx/js": "19.0.1",
|
|
68
|
+
"@nrwl/webpack": "19.0.1"
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
@@ -22,15 +22,22 @@ function shareWorkspaceLibraries(workspaceLibs, tsConfigPath = process.env.NX_TS
|
|
|
22
22
|
if (!Object.keys(tsconfigPathAliases).length) {
|
|
23
23
|
return getEmptySharedLibrariesConfig();
|
|
24
24
|
}
|
|
25
|
+
// Nested projects must come first, sort them as such
|
|
26
|
+
const sortedTsConfigPathAliases = {};
|
|
27
|
+
Object.keys(tsconfigPathAliases)
|
|
28
|
+
.sort((a, b) => {
|
|
29
|
+
return b.split('/').length - a.split('/').length;
|
|
30
|
+
})
|
|
31
|
+
.forEach((key) => (sortedTsConfigPathAliases[key] = tsconfigPathAliases[key]));
|
|
25
32
|
const pathMappings = [];
|
|
26
|
-
for (const [key, paths] of Object.entries(
|
|
33
|
+
for (const [key, paths] of Object.entries(sortedTsConfigPathAliases)) {
|
|
27
34
|
const library = workspaceLibs.find((lib) => lib.importKey === key);
|
|
28
35
|
if (!library) {
|
|
29
36
|
continue;
|
|
30
37
|
}
|
|
31
38
|
// This is for Angular Projects that use ng-package.json
|
|
32
39
|
// It will do nothing for React Projects
|
|
33
|
-
(0, secondary_entry_points_1.collectWorkspaceLibrarySecondaryEntryPoints)(library,
|
|
40
|
+
(0, secondary_entry_points_1.collectWorkspaceLibrarySecondaryEntryPoints)(library, sortedTsConfigPathAliases).forEach(({ name, path }) => pathMappings.push({
|
|
34
41
|
name,
|
|
35
42
|
path,
|
|
36
43
|
}));
|