Added NoEmit=true when jsconfig is present

This commit is contained in:
Armando Aguirre
2018-01-25 14:06:11 -08:00
parent f2060c2f72
commit 4af47f1887

View File

@@ -1795,7 +1795,7 @@ namespace ts {
function getDefaultCompilerOptions(configFileName?: string) {
const options: CompilerOptions = getBaseFileName(configFileName) === "jsconfig.json"
? { allowJs: true, maxNodeModuleJsDepth: 2, allowSyntheticDefaultImports: true, skipLibCheck: true }
? { allowJs: true, maxNodeModuleJsDepth: 2, allowSyntheticDefaultImports: true, skipLibCheck: true, noEmit: true }
: {};
return options;
}