From 6a382f1436710a6fad7a8fef8f48dff62fad96e4 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 1 Nov 2017 14:20:26 -0700 Subject: [PATCH] In typings installer, provide mandatory 'package.json' fields (#19663) --- src/server/typingsInstaller/typingsInstaller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/typingsInstaller/typingsInstaller.ts b/src/server/typingsInstaller/typingsInstaller.ts index 26e7781b440..c45275d0b3d 100644 --- a/src/server/typingsInstaller/typingsInstaller.ts +++ b/src/server/typingsInstaller/typingsInstaller.ts @@ -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": "" }'); } }