what's the recommended setup for working in a monorepo, given that TanStack Router uses module augmentation?
we have a monorepo with a composite setup, so each package emits its own .d.ts files. Now our setup is roughly like this:
- apps
- app-one
- routes
- libs
- some-shared-lib
now app-one has the routes, the generated route-tree and the module augmentation of @tanstack/react-router. but inside libs/some-shared-lib, I would like to have a component that renders a <Link> from the router. As far as I can see, the module augmentation is not "seen" inside that lib, so I don't have type-safety for anything there.
How could we solve this?