Closed rhettjay closed 10 months ago
If anyone else stumbles upon this. Tap uses tshy. Look at the repo if you want suggestions. I'd be surprised if Isaac chimes in. Even though I'd love it if he or another one of the OGs would give their two cents to monorepos I suspect he as other more important dilemmas to conquer. I'll close this because I feel tapjs has a solid enough answer, but obviously Isaac or anyone else can open it back up if they so choose.
I'm trying to evangelize using tshy in place of a current hack involving echo-cli and a tsconfig.cjs.json to export both esm/cjs. However, I'm running into dependency issues because of typescript and esm hating imports (see ShogunPanda's issue in the typescript repo).
This gave me pause to step back and ask if there's a better way, do you have any general suggestions for using tshy in a monorepo? Right now I'm opting to add the basic config like the one below to every submodule. After that it'll run with lerna through each sub module and publish with nx. Keep in mind I inherited this system so I will not take offense to any "why would you even do it that way?" questions. I just may not be able to answer them. There's a lot of cleanup to be done and tshy is just the beginning.