Our project has the following structure:
api (dir)
-- package.json
-- tsconfig.json
-- src (dir)
-- client (dir)
---- package.json
---- tsconfig.json
---- src (dir)
The "client" directory houses a create-react-app project that proxies to the API during local development, which is why we have this particular directory structure.
We are looking for ways to share specific code (such as constants and utilities) between these two projects. We have tried various methods in TypeScript, like using multiple rootdirs, but haven't been successful.
Could you provide guidance on setting up code sharing between these two projects?