Merge pull request #11816 from RyanCavanaugh/fix11805

Perform a useful comparison with typeRoots
This commit is contained in:
Ryan Cavanaugh 2016-10-24 10:25:50 -07:00 committed by GitHub
commit ba3297d214

View File

@ -474,7 +474,7 @@ namespace ts {
(oldOptions.baseUrl !== options.baseUrl) ||
(oldOptions.maxNodeModuleJsDepth !== options.maxNodeModuleJsDepth) ||
!arrayIsEqualTo(oldOptions.lib, options.lib) ||
!arrayIsEqualTo(oldOptions.typeRoots, oldOptions.typeRoots) ||
!arrayIsEqualTo(oldOptions.typeRoots, options.typeRoots) ||
!arrayIsEqualTo(oldOptions.rootDirs, options.rootDirs) ||
!equalOwnProperties(oldOptions.paths, options.paths)) {
return false;