Skip to content

Commit 2f45a94

Browse files
committed
fix: exclude path-mappings with * from shared mappings
1 parent b651f99 commit 2f45a94

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

libs/mf-runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@angular-architects/module-federation-runtime",
33
"license": "MIT",
4-
"version": "16.0.3",
4+
"version": "16.0.4",
55
"peerDependencies": {
66
"@angular/common": ">=16.0.0",
77
"@angular/core": ">=16.0.0"

libs/mf-tools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular-architects/module-federation-tools",
3-
"version": "16.0.3",
3+
"version": "16.0.4",
44
"license": "MIT",
55
"peerDependencies": {
66
"@angular/common": ">=16.0.0",

libs/mf/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular-architects/module-federation",
3-
"version": "16.0.3",
3+
"version": "16.0.4",
44
"license": "MIT",
55
"repository": {
66
"type": "GitHub",
@@ -17,7 +17,7 @@
1717
"schematics": "./collection.json",
1818
"builders": "./builders.json",
1919
"dependencies": {
20-
"@angular-architects/module-federation-runtime": "16.0.3",
20+
"@angular-architects/module-federation-runtime": "16.0.4",
2121
"word-wrap": "^1.2.3",
2222
"callsite": "^1.0.0",
2323
"node-fetch": "^2.6.7",

libs/mf/src/utils/shared-mappings.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ export class SharedMappings {
4141
}
4242

4343
for (const key in mappings) {
44-
const libPath = path.normalize(path.join(rootPath, mappings[key][0]));
44+
const mapping = mappings[key][0];
45+
46+
if (mapping.includes('*') || key.includes('*')) {
47+
continue;
48+
}
49+
50+
const libPath = path.normalize(path.join(rootPath, mapping));
4551
const version = this.getPackageVersion(libPath);
4652

4753
if (shared.includes(key) || shareAll) {

0 commit comments

Comments
 (0)