Skip to content

Commit 13eeb34

Browse files
RyanCavanaughmhegazy
authored andcommitted
Ignore scripts for types packages (#17969)
1 parent d48ac07 commit 13eeb34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/typingsInstaller/nodeTypingsInstaller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ namespace ts.server.typingsInstaller {
102102
if (this.log.isEnabled()) {
103103
this.log.writeLine(`Updating ${TypesRegistryPackageName} npm package...`);
104104
}
105-
this.execSync(`${this.npmPath} install ${TypesRegistryPackageName}`, { cwd: globalTypingsCacheLocation, stdio: "ignore" });
105+
this.execSync(`${this.npmPath} install --ignore-scripts ${TypesRegistryPackageName}`, { cwd: globalTypingsCacheLocation, stdio: "ignore" });
106106
if (this.log.isEnabled()) {
107107
this.log.writeLine(`Updated ${TypesRegistryPackageName} npm package`);
108108
}
@@ -152,7 +152,7 @@ namespace ts.server.typingsInstaller {
152152
if (this.log.isEnabled()) {
153153
this.log.writeLine(`#${requestId} with arguments'${JSON.stringify(args)}'.`);
154154
}
155-
const command = `${this.npmPath} install ${args.join(" ")} --save-dev --user-agent="typesInstaller/${version}"`;
155+
const command = `${this.npmPath} install --ignore-scripts ${args.join(" ")} --save-dev --user-agent="typesInstaller/${version}"`;
156156
const start = Date.now();
157157
let stdout: Buffer;
158158
let stderr: Buffer;

0 commit comments

Comments
 (0)