Skip to content

Commit

Permalink
fix automatic type acquisition (#60157)
Browse files Browse the repository at this point in the history
  • Loading branch information
epistemancering authored and typescript-bot committed Oct 8, 2024
1 parent a7e3374 commit e8c2be0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/typingsInstaller/nodeTypingsInstaller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { execFileSync } from "child_process";
import { execSync } from "child_process";
import * as fs from "fs";
import * as path from "path";

Expand Down Expand Up @@ -172,7 +172,7 @@ export class NodeTypingsInstaller extends ts.server.typingsInstaller.TypingsInst
this.log.writeLine(`Exec: ${command}`);
}
try {
const stdout = execFileSync(command, { ...options, encoding: "utf-8" });
const stdout = execSync(command, { ...options, encoding: "utf-8" });
if (this.log.isEnabled()) {
this.log.writeLine(` Succeeded. stdout:${indent(sys.newLine, stdout)}`);
}
Expand Down

0 comments on commit e8c2be0

Please sign in to comment.