Skip to content

Commit

Permalink
fix: add log to terminal commands
Browse files Browse the repository at this point in the history
  • Loading branch information
y-nk committed Nov 10, 2023
1 parent b6da7c8 commit da0f93b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit da0f93b

Please sign in to comment.