import slashImports from './slashImports' ; import removeDefaultImports from './removeDefaultImports' ; import removeButtonEnums from './removeButtonEnums' ; import renameButtonRefs from './renameButtonRefs' ; import recategorizeButtons from './recategorizeButtons' ; import renameSpacing from './renameSpacing' ; import renameCoreImports from './renameCoreImports' ; import compoundCard from './compoundCard' ; import moveInputProvider from './moveInputProvider' ; import renameInputRefs from './renameInputRefs' ; import mapTypeTokensToNewHierarchy from './mapTypeTokensToNewHierarchy' ; import renamePreviewTokenImports from './renamePreviewTokenImports' ; import { API , FileInfo , Options } from 'jscodeshift' ; export default function transformer ( file , api , options ) { const fixes = [ slashImports , removeDefaultImports , removeButtonEnums , renameButtonRefs , renameSpacing , renameCoreImports , recategorizeButtons , compoundCard , moveInputProvider , renameInputRefs , mapTypeTokensToNewHierarchy , renamePreviewTokenImports , ] ; return fixes . reduce ( ( source , fix ) => fix ( { ... file , source } , api , options ) , file . source ) ; }