UNPKG

353 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const spawn = require('cross-spawn');
4exports.execSync = (command, args) => {
5 const proc = spawn.sync(command, args, { stdio: 'inherit' });
6 if (proc.status !== 0) {
7 console.error(`\`${command} ${args.join(' ')}\` failed`);
8 return;
9 }
10 return;
11};