Skip to content

Commit

Permalink
Update release
Browse files Browse the repository at this point in the history
  • Loading branch information
ivogabe committed Jan 10, 2018
1 parent 0b3d85c commit afd501b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion release/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ var FileCompiler = /** @class */ (function () {
mapString = mapString.substring(1);
var start = '//# sourceMappingURL=data:application/json;base64,';
if (mapString.substring(0, start.length) !== start) {
console.error('Couldn\'t read the sourceMap generated by TypeScript. This is likely an issue with gulp-typescript.');
console.log('Couldn\'t read the sourceMap generated by TypeScript. This is likely an issue with gulp-typescript.');
return;
}
mapString = mapString.substring(start.length);
Expand Down
12 changes: 6 additions & 6 deletions release/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ exports.nullReporter = nullReporter;
function defaultReporter() {
return {
error: function (error) {
console.error(error.message);
console.log(error.message);
},
finish: defaultFinishHandler
};
Expand All @@ -57,12 +57,12 @@ function longReporter() {
return {
error: function (error) {
if (error.tsFile) {
console.error('[' + colors.gray('gulp-typescript') + '] ' + colors.red(error.fullFilename
console.log('[' + colors.gray('gulp-typescript') + '] ' + colors.red(error.fullFilename
+ '(' + error.startPosition.line + ',' + error.startPosition.character + '): ')
+ 'error TS' + error.diagnostic.code + ' ' + typescript.flattenDiagnosticMessageText(error.diagnostic.messageText, '\n'));
}
else {
console.error(error.message);
console.log(error.message);
}
},
finish: defaultFinishHandler
Expand All @@ -73,17 +73,17 @@ function fullReporter(fullFilename) {
if (fullFilename === void 0) { fullFilename = false; }
return {
error: function (error, typescript) {
console.error('[' + colors.gray('gulp-typescript') + '] '
console.log('[' + colors.gray('gulp-typescript') + '] '
+ colors.bgred(error.diagnostic.code + '')
+ ' ' + colors.red(typescript.flattenDiagnosticMessageText(error.diagnostic.messageText, '\n')));
if (error.tsFile) {
console.error('> ' + colors.gray('file: ') + (fullFilename ? error.fullFilename : error.relativeFilename) + colors.gray(':'));
console.log('> ' + colors.gray('file: ') + (fullFilename ? error.fullFilename : error.relativeFilename) + colors.gray(':'));
var lines_1 = error.tsFile.text.split(/(?:\r\n|\r|\n)/);
var logLine = function (lineIndex, errorStart, errorEnd) {
var line = lines_1[lineIndex];
if (errorEnd === undefined)
errorEnd = line.length;
console.error('> ' + colors.gray('[' + lineIndex + '] ')
console.log('> ' + colors.gray('[' + lineIndex + '] ')
+ line.substring(0, errorStart)
+ colors.red(line.substring(errorStart, errorEnd))
+ line.substring(errorEnd));
Expand Down

0 comments on commit afd501b

Please sign in to comment.