There's some libraries doing that but none of them do all the 100%.
There's quite a few things to watch out: rewriting imports, changing configs (package json, babel, eslint, jest, tsconfig), and more.