Skip to content

Commit 6a382f1

Browse files
author
Andy
authored
In typings installer, provide mandatory 'package.json' fields (microsoft#19663)
1 parent dcc1f14 commit 6a382f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/typingsInstaller/typingsInstaller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ namespace ts.server.typingsInstaller {
248248
this.log.writeLine(`Npm config file: '${npmConfigPath}' is missing, creating new one...`);
249249
}
250250
this.ensureDirectoryExists(directory, this.installTypingHost);
251-
this.installTypingHost.writeFile(npmConfigPath, "{}");
251+
this.installTypingHost.writeFile(npmConfigPath, '{ "description": "", "repository": "", "license": "" }');
252252
}
253253
}
254254

0 commit comments

Comments
 (0)