This repository was archived by the owner on Nov 21, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ export class App {
8989 . map ( ( item : string ) => item . trim ( ) )
9090 . map ( ( item : string ) => binPath + ' ' + item ) ;
9191 commands . forEach ( async ( command : string ) => {
92+ if ( runner . debug ) {
93+ command += ' --verbose' ;
94+ }
9295 await Promise . resolve ( runner . log ( 'commands' ) . info ( 'Run: ' + command ) ) ;
9396 await runner . commandRunner ( command ) ;
9497 await Promise . resolve ( runner . log ( 'commands' ) . info ( 'Done!' ) ) ;
Original file line number Diff line number Diff line change @@ -65,9 +65,7 @@ export class Base {
6565 ) ;
6666 if ( child . status === 0 || child . status === '0' ) {
6767 this . log ( 'commandRunner' ) . debug ( 'status' , child . status ) ;
68- if ( child . stderr . toString ( ) ) {
69- this . log ( 'commandRunner' ) . error ( 'stderr' , child . stderr . toString ( ) ) ;
70- }
68+ this . log ( 'commandRunner' ) . debug ( 'stderr' , child . stderr . toString ( ) ) ;
7169 this . log ( 'commandRunner' ) . debug ( 'stdout' , child . stdout . toString ( ) ) ;
7270 this . log ( 'commandRunner' ) . debug ( 'end' ) ;
7371 } else {
Original file line number Diff line number Diff line change @@ -39,14 +39,14 @@ export class Project extends Base {
3939 getLibPathByName ( name : string ) {
4040 const libs = this . libsConfigs . filter ( ( item : any ) => item . name && item . name === name ) ;
4141 if ( libs . length > 0 ) {
42- return libs [ 0 ] . root ;
42+ return libs [ 0 ] . rootPath ;
4343 }
4444 return name ;
4545 }
4646 getAppPathByName ( name : string ) {
4747 const apps = this . appsConfigs . filter ( ( item : any ) => item . name && item . name === name ) ;
4848 if ( apps . length > 0 ) {
49- return apps [ 0 ] . root ;
49+ return apps [ 0 ] . rootPath ;
5050 }
5151 return name ;
5252 }
You can’t perform that action at this time.
0 commit comments