import { API , FileInfo , Options } from 'jscodeshift' ; import { relativeImportSourceRegex } from '@codemods/get-internal-imports/relativeImportSourceRegex' ; export const getInternalExportsSource = ( file , api , options ) => { const j = api . jscodeshift ; const root = j ( file . source ) ; let exports = [ ] ; root . find ( j . ExportNamedDeclaration ) . forEach ( ( p ) => { if ( p . node . source ?. value ) { if ( relativeImportSourceRegex . test ( p . node . source . value ) ) { if ( p . node . specifiers . length > 0 ) { exports = [ ... exports , p . node . source . value ] ; } } } } ) ; return exports ; } ; export default getInternalExportsSource ; export const parser = 'tsx' ;