import { Core , JSCodeshift } from 'jscodeshift' ; const renameImport = ( from , to , root , j ) => { root . find ( j . ImportSpecifier ) . forEach ( el => { if ( el . value . imported . name === from ) { el . value . imported . name = to ; } } ) ; } ; export { renameImport } ;