Skip to content

Commit 31c8117

Browse files
committed
docs(nf): add info about v20 to readme
1 parent d4bf6f0 commit 31c8117

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

libs/native-federation/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ We will at least provide a new version of this package per Angular major. If nec
3434
- Use version 18.1.x for Angular 18.1.x
3535
- Use version 18.2.x for Angular 18.2.x
3636
- Use version 19.x for Angular 19.x
37+
- Use version 20.x for Angular 20.x
3738

3839
## Demo Repo
3940

libs/native-federation/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/native-federation",
3-
"version": "20.0.0",
3+
"version": "20.0.1",
44
"main": "src/index.js",
55
"generators": "./collection.json",
66
"builders": "./builders.json",

libs/native-federation/src/builders/build/builder.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616

1717
import { normalizeOptions } from '@angular-devkit/build-angular/src/builders/dev-server/options';
1818

19-
2019
import { setLogLevel, logger } from '@softarc/native-federation/build';
2120

2221
import { FederationOptions } from '@softarc/native-federation/build';
@@ -305,7 +304,9 @@ export async function* runBuilder(
305304
lastResult = output;
306305

307306
if (!write && output['outputFiles']) {
308-
memResults.add(output['outputFiles'].map((file) => new EsBuildResult(file)));
307+
memResults.add(
308+
output['outputFiles'].map((file) => new EsBuildResult(file))
309+
);
309310
}
310311

311312
if (!write && output['assetFiles']) {

libs/native-federation/src/schematics/init/schematic.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ export default function config(options: MfSchematicSchema): Rule {
108108
const cand1 = path.join(projectSourceRoot, 'app', 'app.component.ts');
109109
const cand2 = path.join(projectSourceRoot, 'app', 'app.ts');
110110

111-
const appComponent = tree.exists(cand1) ? cand1 : tree.exists(cand2) ? cand2 : 'update-this.ts';
111+
const appComponent = tree.exists(cand1)
112+
? cand1
113+
: tree.exists(cand2)
114+
? cand2
115+
: 'update-this.ts';
112116

113117
const generateRule = !exists
114118
? await generateFederationConfig(

0 commit comments

Comments
 (0)