Skip to content

Commit 50a1454

Browse files
authored
Merge branch 'master' into node-acceptance-tests
2 parents c611bb4 + 2428583 commit 50a1454

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/utilities/compile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ function createWatchCompilerHost(ts, options, project, callbacks) {
4040
host.afterProgramCreate = function() {
4141
afterCreate.apply(this, arguments);
4242
if (callbacks.buildComplete) {
43-
callbacks.buildComplete();
43+
// Use nextTick to preserve ordering between the `buildComplete` callback
44+
// and the diagnostic hooks below
45+
process.nextTick(() => callbacks.buildComplete());
4446
}
4547
};
4648

0 commit comments

Comments
 (0)