Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
jfeingold35 committed Sep 17, 2024
1 parent 7bd1f38 commit 836a618
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/sf-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -17,7 +18,7 @@ export class SfCli {
*/
public static async isSfCliInstalled(): Promise<boolean> {
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}`);
Expand All @@ -39,7 +40,7 @@ export class SfCli {
*/
public static async isCodeAnalyzerInstalled(): Promise<boolean> {
return new Promise((res) => {
const cp = cspawn.spawn('sf', ['plugins']);
const cp = childProcess.spawn('sf', ['plugins']);

let stdout = '';

Expand Down

0 comments on commit 836a618

Please sign in to comment.