From e8c2be0c2dfd9d281633327f16ba93a676a29f34 Mon Sep 17 00:00:00 2001 From: Austin Henrie <113467168+epistemancering@users.noreply.github.com> Date: Mon, 7 Oct 2024 13:55:37 -0600 Subject: [PATCH] fix automatic type acquisition (#60157) --- src/typingsInstaller/nodeTypingsInstaller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/typingsInstaller/nodeTypingsInstaller.ts b/src/typingsInstaller/nodeTypingsInstaller.ts index e9fcfdfb5333d..d2a3efb9707df 100644 --- a/src/typingsInstaller/nodeTypingsInstaller.ts +++ b/src/typingsInstaller/nodeTypingsInstaller.ts @@ -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)}`); }