Skip to content

Commit afd501b

Browse files
committed
Update release
1 parent 0b3d85c commit afd501b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

release/compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ var FileCompiler = /** @class */ (function () {
194194
mapString = mapString.substring(1);
195195
var start = '//# sourceMappingURL=data:application/json;base64,';
196196
if (mapString.substring(0, start.length) !== start) {
197-
console.error('Couldn\'t read the sourceMap generated by TypeScript. This is likely an issue with gulp-typescript.');
197+
console.log('Couldn\'t read the sourceMap generated by TypeScript. This is likely an issue with gulp-typescript.');
198198
return;
199199
}
200200
mapString = mapString.substring(start.length);

release/reporter.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ exports.nullReporter = nullReporter;
4646
function 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

Comments
 (0)