Skip to content

Commit 2cbe1f5

Browse files
authored
fixes #4219 Readd the variable declaration allDiagnostics (#4228)
1 parent 94b7181 commit 2cbe1f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/build.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ function tsc(fileNames, options) {
5959
let program = ts.createProgram(fileNames, options);
6060
let emitResult = program.emit();
6161

62+
let allDiagnostics = ts
63+
.getPreEmitDiagnostics(program)
64+
.concat(emitResult.diagnostics);
65+
6266
allDiagnostics.forEach(diagnostic => {
6367
if (diagnostic.file) {
6468
let { line, character } = diagnostic.file.getLineAndCharacterOfPosition(

0 commit comments

Comments
 (0)