import { exec , ChildProcessPromise , PromiseResult } from 'child-process-promise' ; export function runCommand ( path , command , ignoreLogs = false ) { const subprocess = exec ( command , { cwd : path , maxBuffer : 1024 * 1024 * 1024 , } ) ; if ( ! ignoreLogs && subprocess . childProcess && process ) { subprocess . childProcess ?. stdout ?. pipe ( process . stdout ) ; subprocess . childProcess ?. stderr ?. pipe ( process . stderr ) ; } return subprocess ; }