🤖 Pick PR #60157 (fix automatic type acquisition) into release-5.6 (#60169)

Co-authored-by: Austin Henrie <113467168+epistemancering@users.noreply.github.com>
This commit is contained in:
TypeScript Bot 2024-10-08 11:51:35 -07:00 committed by GitHub
parent a7e3374f13
commit 1f44dcf4e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
import { execFileSync } from "child_process";
import { execSync } from "child_process";
import * as fs from "fs";
import * as path from "path";
@ -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)}`);
}