import pipes from './pipes/index.js' ; import type { PipeLine } from './types' ; const Pipeline = async function ( pipelineArgs ) { let { config , doc } = pipelineArgs ; for ( const pipe of pipes ) { const result = await pipe ( { config , doc } ) ; config = result . config ; doc = result . doc ; if ( ! result . continue ) { return { code : result . doc . content } ; } } return { code : doc . content } ; } ; export default Pipeline ;