Skip to content

Commit

Permalink
fix(module-federation): target correct beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Nov 15, 2024
1 parent dced7b6 commit 39039ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/angular/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
},
"update-20-2-0-update-module-federation-config-import": {
"cli": "nx",
"version": "20.2.0-beta.0",
"version": "20.2.0-beta.2",
"description": "Update the ModuleFederationConfig import use @nx/module-federation.",
"factory": "./src/migrations/update-20-2-0/migrate-mf-imports-to-new-package"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"update-20-2-0-update-module-federation-config-import": {
"cli": "nx",
"version": "20.2.0-beta.0",
"version": "20.2.0-beta.2",
"description": "Update the ModuleFederationConfig import use @nx/module-federation.",
"factory": "./src/migrations/update-20-2-0/migrate-mf-imports-to-new-package"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export default async function migrateMfImportsToNewPackage(tree: Tree) {
}
for (const root of rootsToCheck) {
visitNotIgnoredFiles(tree, root, (filePath) => {
if (!filePath.endsWith('.ts') && !filePath.endsWith('.js')) {
return;
}
let contents = tree.read(filePath, 'utf-8');
if (!contents.includes(MF_IMPORT_TO_UPDATE)) {
return;
Expand Down

0 comments on commit 39039ec

Please sign in to comment.