Skip to content

Commit 1f44dcf

Browse files
🤖 Pick PR #60157 (fix automatic type acquisition) into release-5.6 (#60169)
Co-authored-by: Austin Henrie <[email protected]>
1 parent a7e3374 commit 1f44dcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/typingsInstaller/nodeTypingsInstaller.ts

Lines changed: 2 additions & 2 deletions
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 @@ export class NodeTypingsInstaller extends ts.server.typingsInstaller.TypingsInst
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)