You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
288 B

const execa = require('execa');
async function runCommand(command, args = []) {
try {
await execa(command, args, {
stdio: 'inherit',
shell: true,
});
} catch (e) {
throw new Error(e);
}
}
module.exports = {
runCommand,
};