Were there any circular dependencies in files?
While I have never done a js to ts conversation, trying to modularize a ts monolith into even some rudimentary packages was very difficult because of circular dependencies at the file level
(which is entirely possible).
Ended up giving up at the time because of cost/benefit.