mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Emit, even in the presence of declaration errors and noEmitOnError.
We're reverting to the previous behavior we had until there is more consensus on the best way to deal with this issue.
This commit is contained in:
1 parent
fcd1e1f166
commit
19517ac0dd
1 file changed
-5
@@ -87,11 +87,6 @@ module ts {
|
||||
|
||||
export function getPreEmitDiagnostics(program: Program): Diagnostic[] {
|
||||
let diagnostics = program.getSyntacticDiagnostics().concat(program.getGlobalDiagnostics()).concat(program.getSemanticDiagnostics());
|
||||
|
||||
if (program.getCompilerOptions().declaration) {
|
||||
diagnostics.concat(program.getDeclarationDiagnostics());
|
||||
}
|
||||
|
||||
return sortAndDeduplicateDiagnostics(diagnostics);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user