import execa from 'execa' ; import { TaskFn } from '../../src/contracts' ; /**
 * Format source files using prettier
 */ const task = async ( _ , __ , { absPath , prettier , debug } ) => { if ( ! prettier ) { return ; } /**
     * Formatting source files is a secondary action and errors can be
     * ignored
     */ try { await execa ( 'npm' , [ 'run' , 'format' ] , { cwd : absPath , ... ( debug ? { stdio : 'inherit' } : { } ) , } ) ; } catch { } } ; export default task ;