mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-22 22:55:36 -05:00
In typings installer, provide mandatory 'package.json' fields (#19663)
This commit is contained in:
@@ -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": "" }');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user