How to share TypeScript/JavaScript between Frontend and Backend?
I would just structure the code like this:
- src/
- server/
- client/
- shared/
You can place all your shared libraries into shared
directory then import/require them from your server or client source files:
import '../shared/library'