Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit af68a61

Browse filesBrowse files
committed
Ignore scripts for types packages
1 parent 80a7ed9 commit af68a61
Copy full SHA for af68a61

1 file changed

+2-2Lines changed: 2 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/server/typingsInstaller/nodeTypingsInstaller.ts‎

Copy file name to clipboardExpand all lines: src/server/typingsInstaller/nodeTypingsInstaller.ts
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.