@@ -116,12 +116,12 @@ class CodeInjector implements ICodeInjector {
116116 } ;
117117
118118 console . log ( `⚙️ exec: npm ${ command } ` ) ;
119- console . time ( `npm ${ command } done in` ) ;
119+ process . env . HEAVY_DEBUG && console . time ( `npm ${ command } done in` ) ;
120120 const { stdout : out , stderr : err } = await execAsync ( `${ nodeBinary } ${ npmPath } ${ command } ` , {
121121 cwd,
122122 env,
123123 } ) ;
124- console . timeEnd ( `npm ${ command } done in` ) ;
124+ process . env . HEAVY_DEBUG && console . timeEnd ( `npm ${ command } done in` ) ;
125125
126126 process . env . HEAVY_DEBUG && console . log ( `🪲 npm ${ command } output:` , out ) ;
127127 if ( err ) {
@@ -727,7 +727,7 @@ class CodeInjector implements ICodeInjector {
727727 }
728728
729729 async bundleNow ( { hotReload = false } : { hotReload : boolean } ) {
730- console . log ( `AdminForth bundling ${ hotReload ? ' and listening for changes (🔥 Hotreload)' : ' (no hot reload)' } ` ) ;
730+ console . log ( `${ this . adminforth . formatAdminForth ( ) } Bundling ${ hotReload ? 'and listening for changes (🔥 Hotreload)' : ' (no hot reload)' } ` ) ;
731731 this . adminforth . runningHotReload = hotReload ;
732732
733733 await this . prepareSources ( ) ;
@@ -797,12 +797,12 @@ class CodeInjector implements ICodeInjector {
797797 this . devServerPort = parseInt ( portMatch [ 1 ] ) ;
798798 }
799799 } else {
800- console . log ( `[AdminForth SPA]:` ) ;
801- process . stdout . write ( data ) ;
800+ process . env . HEAVY_DEBUG && console . log ( `[AdminForth SPA]:` ) ;
801+ process . env . HEAVY_DEBUG && process . stdout . write ( data ) ;
802802 }
803803 } ) ;
804804 devServer . stderr . on ( 'data' , ( data ) => {
805- console . error ( `[AdminForth SPA ERR ]:` ) ;
805+ console . error ( `[AdminForth SPA ERROR ]:` ) ;
806806 process . stdout . write ( data ) ;
807807 } ) ;
808808
0 commit comments