import plugin , { StartFile , StartFilesProps , StartPlugin , MaybeObject } from '@start/plugin/src/' ; export default < R extends MaybeObject > ( target ) => ( ... files ) => plugin ( 'inputFiles' , ( utils ) => async ( ) => { const path = await import ( 'path' ) ; const targetRunner = await target ; return targetRunner ( utils . reporter ) ( { files : files . map ( ( file ) : StartFile => ( { path : path . resolve ( file ) } ) ) } ) ; } ) ;