Skip to content

Commit 20f67d7

Browse files
fix automatic type acquisition (#60157)
1 parent a719df4 commit 20f67d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/typingsInstaller/nodeTypingsInstaller.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { execFileSync } from "child_process";
1+
import { execSync } from "child_process";
22
import * as fs from "fs";
33
import * as path from "path";
44

@@ -172,7 +172,7 @@ class NodeTypingsInstaller extends ts.server.typingsInstaller.TypingsInstaller {
172172
this.log.writeLine(`Exec: ${command}`);
173173
}
174174
try {
175-
const stdout = execFileSync(command, { ...options, encoding: "utf-8" });
175+
const stdout = execSync(command, { ...options, encoding: "utf-8" });
176176
if (this.log.isEnabled()) {
177177
this.log.writeLine(` Succeeded. stdout:${indent(sys.newLine, stdout)}`);
178178
}

0 commit comments

Comments
 (0)