UNPKG

@ehmicky/dev-tasks

Version:

Automated development tasks for my own projects

23 lines (17 loc) 260 B
import isCi from"is-ci"; export const runTwice=async(runMethod)=>{ try{ await runMethod(false) }catch(error){ await applyAutoFix(runMethod); throw error } }; const applyAutoFix=async(runMethod)=>{ if(isCi){ return } try{ await runMethod(true) }catch{} };