@@ -85,7 +85,7 @@ namespace ts.JsTyping {
85
85
getTypingNamesFromJson ( bowerJsonPath , filesToWatch ) ;
86
86
87
87
const nodeModulesPath = combinePaths ( searchDir , "node_modules" ) ;
88
- getTypingNamesFromNodeModuleFolder ( nodeModulesPath , filesToWatch ) ;
88
+ getTypingNamesFromNodeModuleFolder ( nodeModulesPath ) ;
89
89
}
90
90
getTypingNamesFromSourceFileNames ( fileNames ) ;
91
91
@@ -178,7 +178,7 @@ namespace ts.JsTyping {
178
178
* Infer typing names from node_module folder
179
179
* @param nodeModulesPath is the path to the "node_modules" folder
180
180
*/
181
- function getTypingNamesFromNodeModuleFolder ( nodeModulesPath : string , filesToWatch : string [ ] ) {
181
+ function getTypingNamesFromNodeModuleFolder ( nodeModulesPath : string ) {
182
182
// Todo: add support for ModuleResolutionHost too
183
183
if ( ! host . directoryExists ( nodeModulesPath ) ) {
184
184
return ;
@@ -192,7 +192,6 @@ namespace ts.JsTyping {
192
192
const result = readConfigFile ( normalizedFileName , ( path : string ) => host . readFile ( path ) ) ;
193
193
if ( ! result . config ) { continue ; }
194
194
const packageJson : PackageJson = result . config ;
195
- filesToWatch . push ( normalizedFileName ) ;
196
195
197
196
// npm 3's package.json contains a "_requiredBy" field
198
197
// we should include all the top level module names for npm 2, and only module names whose
0 commit comments