Rever change to EmitOutput.diagnostics

This commit is contained in:
Mohamed Hegazy
2016-02-18 12:06:17 -08:00
parent 8a050ea18d
commit 353998a6bd
5 changed files with 7 additions and 6 deletions

View File

@@ -956,7 +956,7 @@ namespace ts {
let declarationDiagnostics: Diagnostic[] = [];
if (options.noEmit) {
return { declarationDiagnostics, sourceMaps: undefined, emitSkipped: true };
return { diagnostics: declarationDiagnostics, sourceMaps: undefined, emitSkipped: true };
}
// If the noEmitOnError flag is set, then check if we have any errors so far. If so,
@@ -973,7 +973,7 @@ namespace ts {
}
if (diagnostics.length > 0 || declarationDiagnostics.length > 0) {
return { declarationDiagnostics, sourceMaps: undefined, emitSkipped: true };
return { diagnostics, sourceMaps: undefined, emitSkipped: true };
}
}