In typings installer, provide mandatory 'package.json' fields (#19663)

This commit is contained in:
Andy authored and GitHub committed 2017-11-01 14:20:26 -07:00
1 parent dcc1f1497f
commit 6a382f1436
1 file changed
+1 -1
@@ -248,7 +248,7 @@ namespace ts.server.typingsInstaller {
this.log.writeLine(`Npm config file: '${npmConfigPath}' is missing, creating new one...`);
}
this.ensureDirectoryExists(directory, this.installTypingHost);
this.installTypingHost.writeFile(npmConfigPath, "{}");
this.installTypingHost.writeFile(npmConfigPath, '{ "description": "", "repository": "", "license": "" }');
}
}