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

This commit is contained in:
Andy
2017-11-01 14:20:26 -07:00
committed by GitHub
parent dcc1f1497f
commit 6a382f1436

View File

@@ -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": "" }');
}
}