Merge pull request #15600 from mjbvz/log-when-types-registry-is-updated

Add Log for When Typings Installer Finishes Updating the Types Registry
This commit is contained in:
Mohamed Hegazy 2017-05-05 10:43:51 -07:00 committed by GitHub
commit d483df94ef

View file

@ -96,6 +96,9 @@ namespace ts.server.typingsInstaller {
this.log.writeLine(`Updating ${TypesRegistryPackageName} npm package...`);
}
this.execSync(`${this.npmPath} install ${TypesRegistryPackageName}`, { cwd: globalTypingsCacheLocation, stdio: "ignore" });
if (this.log.isEnabled()) {
this.log.writeLine(`Updated ${TypesRegistryPackageName} npm package`);
}
}
catch (e) {
if (this.log.isEnabled()) {