From da0f93b57ced130a87ec41d6da512cff2e4d76b9 Mon Sep 17 00:00:00 2001 From: Julien Barbay Date: Fri, 10 Nov 2023 13:36:39 +0100 Subject: [PATCH] fix: add log to terminal commands --- server/utils/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/utils/index.ts b/server/utils/index.ts index aca6192..ec48a97 100644 --- a/server/utils/index.ts +++ b/server/utils/index.ts @@ -3,7 +3,13 @@ import { readFileSync } from "fs"; import { join } from "path"; import { promisify } from "util"; -export const execa = promisify(exec); +const _execa = promisify(exec); + +export async function execa(command: string) { + const stds = await _execa(command) + console.info({ command, ...stds }) + return stds +} let pckgJsn: string | undefined;