@@ -46,7 +46,7 @@ exports.nullReporter = nullReporter;
4646function defaultReporter ( ) {
4747 return {
4848 error : function ( error ) {
49- console . error ( error . message ) ;
49+ console . log ( error . message ) ;
5050 } ,
5151 finish : defaultFinishHandler
5252 } ;
@@ -57,12 +57,12 @@ function longReporter() {
5757 return {
5858 error : function ( error ) {
5959 if ( error . tsFile ) {
60- console . error ( '[' + colors . gray ( 'gulp-typescript' ) + '] ' + colors . red ( error . fullFilename
60+ console . log ( '[' + colors . gray ( 'gulp-typescript' ) + '] ' + colors . red ( error . fullFilename
6161 + '(' + error . startPosition . line + ',' + error . startPosition . character + '): ' )
6262 + 'error TS' + error . diagnostic . code + ' ' + typescript . flattenDiagnosticMessageText ( error . diagnostic . messageText , '\n' ) ) ;
6363 }
6464 else {
65- console . error ( error . message ) ;
65+ console . log ( error . message ) ;
6666 }
6767 } ,
6868 finish : defaultFinishHandler
@@ -73,17 +73,17 @@ function fullReporter(fullFilename) {
7373 if ( fullFilename === void 0 ) { fullFilename = false ; }
7474 return {
7575 error : function ( error , typescript ) {
76- console . error ( '[' + colors . gray ( 'gulp-typescript' ) + '] '
76+ console . log ( '[' + colors . gray ( 'gulp-typescript' ) + '] '
7777 + colors . bgred ( error . diagnostic . code + '' )
7878 + ' ' + colors . red ( typescript . flattenDiagnosticMessageText ( error . diagnostic . messageText , '\n' ) ) ) ;
7979 if ( error . tsFile ) {
80- console . error ( '> ' + colors . gray ( 'file: ' ) + ( fullFilename ? error . fullFilename : error . relativeFilename ) + colors . gray ( ':' ) ) ;
80+ console . log ( '> ' + colors . gray ( 'file: ' ) + ( fullFilename ? error . fullFilename : error . relativeFilename ) + colors . gray ( ':' ) ) ;
8181 var lines_1 = error . tsFile . text . split ( / (?: \r \n | \r | \n ) / ) ;
8282 var logLine = function ( lineIndex , errorStart , errorEnd ) {
8383 var line = lines_1 [ lineIndex ] ;
8484 if ( errorEnd === undefined )
8585 errorEnd = line . length ;
86- console . error ( '> ' + colors . gray ( '[' + lineIndex + '] ' )
86+ console . log ( '> ' + colors . gray ( '[' + lineIndex + '] ' )
8787 + line . substring ( 0 , errorStart )
8888 + colors . red ( line . substring ( errorStart , errorEnd ) )
8989 + line . substring ( errorEnd ) ) ;
0 commit comments