Both could be inside packages but that is also not good DX, it'll be easier to work with lerna since the package manager can be changed and the linking would be automatic.
Look for better solutions or go ahead with lerna/nx
Also creates an issue with auto installs in libraries like prisma