I have multiple typescript projects (e.g. client and server), which share some common functionality (located in a common fold
I've solved this problem in my current project (which has the same setup) by putting a link to the common lib into both sources.
common/
src/
lib/
client/
src/
lib/ -> $PROJECT_PATH/common/src/lib/
server/
src/
lib/ -> $PROJECT_PATH/common/src/lib/
Compilation and bundling become transparent as the tools treat that directory as a local one.