@@ -1447,22 +1447,21 @@ export class Application {
1447
1447
}
1448
1448
finalMainGraphPath += 'graph' ;
1449
1449
$ngdengine . init ( path . resolve ( finalMainGraphPath ) ) ;
1450
- if ( $dependenciesEngine . rawModulesForOverview . length > 150 ) {
1451
- logger . warn ( `Too many modules (${ $dependenciesEngine . rawModulesForOverview . length } ), main graph generation disabled` ) ;
1452
- this . configuration . mainData . disableMainGraph = true ;
1453
- loop ( ) ;
1454
- } else {
1455
- $ngdengine . renderGraph ( this . configuration . mainData . tsconfig , path . resolve ( finalMainGraphPath ) , 'p' ) . then ( ( ) => {
1456
- $ngdengine . readGraph ( path . resolve ( finalMainGraphPath + path . sep + 'dependencies.svg' ) , 'Main graph' ) . then ( ( data ) => {
1457
- this . configuration . mainData . mainGraph = < string > data ;
1458
- loop ( ) ;
1459
- } , ( err ) => {
1460
- logger . error ( 'Error during graph read: ' , err ) ;
1461
- } ) ;
1450
+
1451
+ $ngdengine . renderGraph ( this . configuration . mainData . tsconfig , path . resolve ( finalMainGraphPath ) , 'p' ) . then ( ( ) => {
1452
+ $ngdengine . readGraph ( path . resolve ( finalMainGraphPath + path . sep + 'dependencies.svg' ) , 'Main graph' ) . then ( ( data ) => {
1453
+ this . configuration . mainData . mainGraph = < string > data ;
1454
+ loop ( ) ;
1462
1455
} , ( err ) => {
1463
- logger . error ( 'Error during graph generation: ' , err ) ;
1456
+ logger . error ( 'Error during main graph reading : ' , err ) ;
1457
+ this . configuration . mainData . disableMainGraph = true ;
1458
+ loop ( ) ;
1464
1459
} ) ;
1465
- }
1460
+ } , ( err ) => {
1461
+ logger . error ( 'Ooops error during main graph generation, moving on next part with main graph disabled : ' , err ) ;
1462
+ this . configuration . mainData . disableMainGraph = true ;
1463
+ loop ( ) ;
1464
+ } ) ;
1466
1465
}
1467
1466
}
1468
1467
0 commit comments