Browse Source

hotfix: correct execAsync execution

Nicolas Meienberger 1 year ago
parent
commit
86556a6477
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/cli/src/utils/exec-async/execAsync.tsx

+ 2 - 1
packages/cli/src/utils/exec-async/execAsync.tsx

@@ -7,7 +7,8 @@ type ExecResult = { stdout: string; stderr: string };
 
 export const execAsync = async (...args: ExecAsyncParams): Promise<ExecResult> => {
   try {
-    return await promisify(exec)(...args);
+    const { stdout, stderr } = await promisify(exec)(...args);
+    return { stdout, stderr };
   } catch (error) {
     if (error instanceof Error) {
       return { stderr: error.message, stdout: '' };