import { execSync as nodeExecSync } from 'child_process' ; function execSync ( cmd ) { let stdout ; let status = 0 ; try { stdout = nodeExecSync ( cmd ) ; } catch ( err ) { stdout = err . stdout ; status = err . status ; } return { stdout : stdout . toString ( ) , status , } ; } export default execSync ;