UNPKG

deploy-all-lib

Version:

CLI tool to efficiently build and deploy frontend projects with optional image exclusions

14 lines (12 loc) 304 B
import { exec } from "child_process"; export const execCommand = (command) => { return new Promise((resolve, reject) => { exec(command, (error, stdout, stderr) => { if (error) { reject({ error, stderr }); } else { resolve(stdout); } }); }); };