File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular-architects/native-federation" ,
3
- "version" : " 18.1.2 " ,
3
+ "version" : " 18.1.3 " ,
4
4
"main" : " src/index.js" ,
5
5
"generators" : " ./collection.json" ,
6
6
"builders" : " ./builders.json" ,
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ export async function* runBuilder(
191
191
fedOptions . outputPath ,
192
192
url
193
193
) ;
194
-
194
+
195
195
const exists = fs . existsSync ( fileName ) ;
196
196
197
197
if ( url !== '/' && url !== '' && exists ) {
Original file line number Diff line number Diff line change 3
3
// const workspaceRoot = process.cwd();
4
4
// patchAngularBuild(workspaceRoot);
5
5
6
- console . log ( 'Please remove the postbuild task calling patch-angular-build. This is not needed since Native Federation 18.1 anymore!' ) ;
6
+ console . log (
7
+ 'Please remove the postbuild task calling patch-angular-build. This is not needed since Native Federation 18.1 anymore!'
8
+ ) ;
Original file line number Diff line number Diff line change @@ -283,7 +283,9 @@ function normalizeOptions(
283
283
284
284
let manifestRelPath = 'public/federation.manifest.json' ;
285
285
286
- if ( ! tree . exists ( publicPath ) ) {
286
+ const hasPublicFolder = tree . getDir ( projectRoot ) . subdirs . map ( p => String ( p ) ) . includes ( 'public' ) ;
287
+
288
+ if ( ! hasPublicFolder ) {
287
289
manifestPath = path
288
290
. join ( projectRoot , 'src/assets/federation.manifest.json' )
289
291
. replace ( / \\ / g, '/' ) ;
You can’t perform that action at this time.
0 commit comments