Without this change, gulp-typescript that is compiling a project that uses projectReferences would throw an error:
"Error: Debug Failure. 'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"
The fix is to use the readDirectory method from the TypeScript provided compiler host, similar to what is already done for realpath, getDirectories and directoryExists.
See https://github.com/Microsoft/TypeScript/pull/26851 for details on that change in TypeScript
Without this change, gulp-typescript that is compiling a project that uses
projectReferences
would throw an error:The fix is to use the
readDirectory
method from the TypeScript provided compiler host, similar to what is already done forrealpath
,getDirectories
anddirectoryExists
.