Silence NPM warnings when installing typings (#19749)

This commit is contained in:
micbou 2017-11-06 18:45:52 +01:00 committed by Mohamed Hegazy
parent 8d991f70b3
commit d97335e4e7

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, '{ "description": "", "repository": "", "license": "" }');
this.installTypingHost.writeFile(npmConfigPath, '{ "private": true }');
}
}