Skip to content

Commit 432f7a9

Browse files
authored
add typings installer user agent for npm requests (microsoft#12446) (microsoft#12449)
* add typings installer user agent for npm requests * address PR feedback: change name of user agent
1 parent fb23e6d commit 432f7a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/typingsInstaller/nodeTypingsInstaller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ namespace ts.server.typingsInstaller {
127127
if (this.log.isEnabled()) {
128128
this.log.writeLine(`#${requestId} with arguments'${JSON.stringify(args)}'.`);
129129
}
130-
const command = `${this.npmPath} install ${args.join(" ")} --save-dev`;
130+
const command = `${this.npmPath} install ${args.join(" ")} --save-dev --user-agent="typesInstaller/${version}"`;
131131
const start = Date.now();
132132
let stdout: Buffer;
133133
let stderr: Buffer;

0 commit comments

Comments
 (0)