spaceout/front_end/node_modules/webpack-cli/lib/utils/run-command.js
2020-12-12 10:25:30 -05:00

17 lines
288 B
JavaScript

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,
};