UNPKG

node-publisher

Version:

A configurable release automation tool inspired by create-react-app and Travis CI.

14 lines (11 loc) 270 B
const { execSync } = require('child_process'); const exec = (command, opts = { stdio: [0, 1, 2] }) => { try { return execSync(command, opts); } catch (e) { throw new Error(`Execution of command \`${command}\` failed.`); } }; module.exports = { exec };