Do not emit declarations for javascript files

This commit is contained in:
Sheetal Nandi
2015-10-30 11:36:39 -07:00
parent b217b8b620
commit 94a647b72b
21 changed files with 71 additions and 27 deletions

View File

@@ -1272,7 +1272,7 @@ namespace ts {
if (sourceMapFilePath) {
emitFilesSeen[sourceMapFilePath] = [file];
}
if (options.declaration) {
if (declarationFilePath) {
emitFilesSeen[declarationFilePath] = [file];
}
}