From d97335e4e719c28d8e80431a42aad4e772454916 Mon Sep 17 00:00:00 2001 From: micbou Date: Mon, 6 Nov 2017 18:45:52 +0100 Subject: [PATCH] Silence NPM warnings when installing typings (#19749) --- 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 c45275d0b3d..eacbebbf4ab 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, '{ "description": "", "repository": "", "license": "" }'); + this.installTypingHost.writeFile(npmConfigPath, '{ "private": true }'); } }