From 836a61805298417bdc8f7b43641c10a24205d547 Mon Sep 17 00:00:00 2001 From: Joshua Feingold Date: Tue, 17 Sep 2024 14:46:25 -0500 Subject: [PATCH] asdf --- src/lib/sf-cli.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/sf-cli.ts b/src/lib/sf-cli.ts index f8f980d..4c86042 100644 --- a/src/lib/sf-cli.ts +++ b/src/lib/sf-cli.ts @@ -4,7 +4,8 @@ * SPDX-License-Identifier: BSD-3-Clause * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ -import cspawn = require('cross-spawn'); +//import cspawn = require('cross-spawn'); +import * as childProcess from 'node:child_process'; /** * Class for interacting with {@code sf}/{@code sfdx} via the CLI. @@ -17,7 +18,7 @@ export class SfCli { */ public static async isSfCliInstalled(): Promise { return new Promise((res) => { - const cp = cspawn.spawn('sf', ['-v']); + const cp = childProcess.spawn('sf', ['-v']); cp.on('close', code => { console.log(`isSfCliInstalled got close event, code is ${code}`); @@ -39,7 +40,7 @@ export class SfCli { */ public static async isCodeAnalyzerInstalled(): Promise { return new Promise((res) => { - const cp = cspawn.spawn('sf', ['plugins']); + const cp = childProcess.spawn('sf', ['plugins']); let stdout = '';