import { Transform } from 'jscodeshift' ; import deprecatePageHeader from './deprecatePageHeader' ; import deprecateCookieBanner from './deprecateCookieBanner' ; import moveAndRenameSearchBar from './moveAndRenameSearchBar' ; import deprecateHeader from './deprecateHeader' ; import renameCanvasDepthValue from './renameCanvasDepthValue' ; const transform = ( file , api , options ) => { const fixes = [ deprecatePageHeader , deprecateCookieBanner , moveAndRenameSearchBar , deprecateHeader , renameCanvasDepthValue , ] ; return fixes . reduce ( ( source , fix ) => fix ( { ... file , source } , api , options ) as string , file . source ) ; } ; export default transform ;