@@ -48,7 +48,7 @@ const modeArgIndex = process.argv.indexOf('--mode');
4848const mode = modeArgIndex !== - 1 && process . argv [ modeArgIndex + 1 ] ? process . argv [ modeArgIndex + 1 ] : 'default' ;
4949
5050// Log the build configuration
51- console . log ( chalk . bold ( `🧰 Build mode: ${ production ? chalk . green ( '🏭 Production' ) : chalk . yellow ( '🛠️ Development' ) } ` ) ) ;
51+ console . log ( chalk . bold ( `🏗️ Build mode: ${ production ? chalk . green ( '🏭 Production' ) : chalk . yellow ( '🛠️ Development' ) } ` ) ) ;
5252if ( process . env . NODE_ENV ) {
5353 console . log ( chalk . cyan ( `🌍 NODE_ENV: ${ process . env . NODE_ENV } ` ) ) ;
5454}
@@ -68,7 +68,7 @@ if (fs.existsSync(outDir)) {
6868 console . log ( chalk . yellow ( `🗑️ Output directory ${ outDir } already exists, removing dir...` ) ) ;
6969 fs . rmSync ( outDir , { recursive : true } ) ;
7070} else {
71- console . log ( chalk . dim ( `📁 Output directory ${ outDir } doesn't exist, skipping removal step.` ) ) ;
71+ console . log ( chalk . dim ( `📁 Output directory ${ outDir } doesn't exist, skipping removal step.` ) ) ;
7272}
7373
7474( async ( ) => {
@@ -77,43 +77,43 @@ if (fs.existsSync(outDir)) {
7777 case 'web' :
7878 console . log ( chalk . blue ( `🌐 ${ watch ? 'Watching' : 'Running' } web build...` ) ) ;
7979 await web ( production , watch ) . catch ( erm => {
80- console . error ( chalk . red . bold ( `❌ Web build failed: ${ erm } ` ) ) ;
80+ console . error ( chalk . red . bold ( `💥 Web build failed: ${ erm } ` ) ) ;
8181 process . exit ( 1 ) ;
8282 } ) ;
83- console . log ( chalk . green . bold ( '✅ Web build completed successfully!') ) ;
83+ console . log ( chalk . green . bold . underline ( '🧰 Web build completed successfully!') ) ;
8484 break ;
8585 case 'desktop' :
8686 console . log ( chalk . blue ( `🖥️ ${ watch ? 'Watching' : 'Running' } desktop build...` ) ) ;
8787 await desktop ( production , watch ) . catch ( erm => {
88- console . error ( chalk . red . bold ( `❌ Desktop build failed: ${ erm } ` ) ) ;
88+ console . error ( chalk . red . bold ( `💥 Desktop build failed: ${ erm } ` ) ) ;
8989 process . exit ( 1 ) ;
9090 } ) ;
91- console . log ( chalk . green . bold ( '✅ Desktop build completed successfully!') ) ;
91+ console . log ( chalk . green . bold . underline ( '🧰 Desktop build completed successfully!') ) ;
9292 break ;
9393 case 'default' :
9494 // Can't use watch while building both.
9595 if ( watch ) {
96- console . error ( chalk . red . bold ( '❌ Cannot use flag --watch while building both desktop and web' ) ) ;
97- process . exit ( 1 ) ;
96+ console . error ( chalk . yellow . bold ( '⚠️ Cannot use flag --watch while building both desktop and web' ) ) ;
97+ // process.exit(1); we'll just continue building it normally ig
9898 }
9999 console . log ( chalk . blue ( '🖥️ Running desktop build...' ) ) ;
100100 await desktop ( production , false ) . catch ( erm => {
101- console . error ( chalk . red . bold ( `❌ Desktop build failed: ${ erm } ` ) ) ;
101+ console . error ( chalk . red . bold ( `💥 Desktop build failed: ${ erm } ` ) ) ;
102102 process . exit ( 1 ) ;
103103 } ) ;
104104 console . log ( chalk . blue ( '🌐 Running web build...' ) ) ;
105105 await web ( production , false ) . catch ( erm => {
106- console . error ( chalk . red . bold ( `❌ Web build failed: ${ erm } ` ) ) ;
106+ console . error ( chalk . red . bold ( `💥 Web build failed: ${ erm } ` ) ) ;
107107 process . exit ( 1 ) ;
108108 } ) ;
109109 console . log ( chalk . green . bold . underline ( '🎉 Builds completed successfully!' ) ) ;
110110 break ;
111111 default :
112- console . error ( chalk . red . bold ( `❌ Unknown mode: ${ mode } ` ) ) ;
112+ console . error ( chalk . red . bold ( `❌ Unknown mode: ${ mode } ` ) ) ;
113113 process . exit ( 1 ) ;
114114 }
115115 } catch ( erm ) {
116- console . error ( chalk . bgRed . white . bold ( `💥 Build failed: ${ erm } ` ) ) ;
116+ console . error ( chalk . bgRed . white . bold ( `💥 Build failed: ${ erm } ` ) ) ;
117117 process . exit ( 1 ) ;
118118 }
119119} ) ( ) ;
0 commit comments