File tree Expand file tree Collapse file tree 9 files changed +17
-10
lines changed
native-federation-node/src/lib/node Expand file tree Collapse file tree 9 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular-architects/module-federation-runtime" ,
3
3
"license" : " MIT" ,
4
- "version" : " 19.0.2 " ,
4
+ "version" : " 19.0.3 " ,
5
5
"peerDependencies" : {
6
6
"@angular/common" : " >=18.0.0" ,
7
7
"@angular/core" : " >=18.0.0" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular-architects/module-federation-tools" ,
3
- "version" : " 19.0.2 " ,
3
+ "version" : " 19.0.3 " ,
4
4
"license" : " MIT" ,
5
5
"peerDependencies" : {},
6
6
"dependencies" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular-architects/module-federation" ,
3
- "version" : " 19.0.2 " ,
3
+ "version" : " 19.0.3 " ,
4
4
"license" : " MIT" ,
5
5
"repository" : {
6
6
"type" : " GitHub" ,
17
17
"schematics" : " ./collection.json" ,
18
18
"builders" : " ./builders.json" ,
19
19
"dependencies" : {
20
- "@angular-architects/module-federation-runtime" : " 19.0.2 " ,
20
+ "@angular-architects/module-federation-runtime" : " 19.0.3 " ,
21
21
"word-wrap" : " ^1.2.3" ,
22
22
"callsite" : " ^1.0.0" ,
23
23
"node-fetch" : " ^2.6.7" ,
Original file line number Diff line number Diff line change @@ -2,5 +2,6 @@ export interface MfSchematicSchema {
2
2
project : string ;
3
3
port : string ;
4
4
nxBuilders : boolean | undefined ;
5
+ skipConfirmation : boolean ;
5
6
type : 'host' | 'dynamic-host' | 'remote' | 'legacy' ;
6
7
}
Original file line number Diff line number Diff line change 33
33
"nxBuilders" : {
34
34
"type" : " boolean" ,
35
35
"description" : " Use builders provided by Nx instead of ngx-build-plus? Defaults to true for Nx workspaces and false for CLI workspaces."
36
+ },
37
+ "skip-confirmation" : {
38
+ "type" : " boolean" ,
39
+ "default" : false
36
40
}
37
41
},
38
42
"required" : [" port" ]
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ export default function config(options: MfSchematicSchema): Rule {
234
234
const isApplicationBuilder =
235
235
buildConfig ?. builder === '@angular-devkit/build-angular:application' ;
236
236
237
- if ( isApplicationBuilder ) {
237
+ if ( isApplicationBuilder && ! options . skipConfirmation ) {
238
238
console . warn (
239
239
`\nWARNING: This package uses the traditional webpack-based Module Federation implementation and not the fast new esbuild-based ApplicationBuilder.`
240
240
) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ export interface InitSchema {
3
3
port : string | number ;
4
4
nxBuilders : boolean | undefined ;
5
5
type : 'host' | 'dynamic-host' | 'remote' | 'legacy' ;
6
+ skipConfirmation : boolean ;
6
7
stack :
7
8
| 'module-federation-webpack'
8
9
| 'module-federation-rsbuild-experimental'
Original file line number Diff line number Diff line change 61
61
"nxBuilders" : {
62
62
"type" : " boolean" ,
63
63
"description" : " Use builders provided by Nx instead of ngx-build-plus? Defaults to true for Nx workspaces and false for CLI workspaces."
64
+ },
65
+ "skip-confirmation" : {
66
+ "type" : " boolean" ,
67
+ "default" : false
64
68
}
65
69
},
66
70
"required" : [" port" , " stack" ]
Original file line number Diff line number Diff line change @@ -73,12 +73,9 @@ async function loadFsManifest(
73
73
}
74
74
75
75
async function loadFsFederationInfo (
76
- relBundlePath : string ,
76
+ relBundlePath : string
77
77
) : Promise < FederationInfo > {
78
- const manifestPath = path . join (
79
- relBundlePath ,
80
- 'remoteEntry.json'
81
- ) ;
78
+ const manifestPath = path . join ( relBundlePath , 'remoteEntry.json' ) ;
82
79
const content = await fs . readFile ( manifestPath , 'utf-8' ) ;
83
80
const manifest = JSON . parse ( content ) as FederationInfo ;
84
81
return manifest ;
You can’t perform that action at this time.
0 commit comments