File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,7 @@ export async function build(context: CommandContext = makeCommandContext()) {
74
74
console . error ( "missing referenced file" , sourcePath ) ;
75
75
continue ;
76
76
}
77
- if ( verbose ) process . stdout . write ( `generate ${ loader . path } → ` ) ;
78
77
sourcePath = join ( sourceRoot , await loader . load ( { verbose} ) ) ;
79
- if ( verbose ) console . log ( sourcePath ) ;
80
78
}
81
79
if ( verbose ) console . log ( "copy" , sourcePath , "→" , outputPath ) ;
82
80
await prepareOutput ( outputPath ) ;
Original file line number Diff line number Diff line change @@ -114,18 +114,16 @@ export class Loader {
114
114
runningCommands . set ( this . path , command ) ;
115
115
}
116
116
if ( verbose ) {
117
- console . info ( ` ${ this . path } start `) ;
117
+ process . stdout . write ( `load ${ this . path } → `) ;
118
118
const start = performance . now ( ) ;
119
119
command . then (
120
120
( path ) => {
121
- console . info (
122
- `${ this . path } ${ green ( "success" ) } ${ formatSize (
123
- statSync ( join ( this . sourceRoot , path ) ) . size
124
- ) } in ${ formatElapsed ( start ) } `
121
+ console . log (
122
+ `${ green ( "success" ) } ${ formatSize ( statSync ( join ( this . sourceRoot , path ) ) . size ) } in ${ formatElapsed ( start ) } `
125
123
) ;
126
124
} ,
127
125
( error ) => {
128
- console . info ( ` ${ this . path } ${ red ( "error" ) } after ${ formatElapsed ( start ) } : ${ error . message } `) ;
126
+ console . log ( ` ${ red ( "error" ) } after ${ formatElapsed ( start ) } : ${ error . message } `) ;
129
127
}
130
128
) ;
131
129
}
You can’t perform that action at this time.
0 commit comments