import execa from 'execa' ; export const makeTag = ( commandPrefix , callback ? ) => ( literals , ... substs ) => { let command = '' ; if ( typeof literals === 'string' ) { command = literals ; } else { command = literals . raw . reduce ( ( acc , lit , i ) => { const subst = substs [ i - 1 ] ; return acc + subst + lit ; } ) ; } execa . commandSync ( commandPrefix + command , { stdio : 'inherit' , preferLocal : true , } ) ; callback && callback ( command ) ; } ;