That's what tools like https://github.com/nrwl/nx try to facilitate. Mainly facilitating separating the code in boundaries like backend, frontend, and common libraries.
I haven't really used nx myself :-p. But I would love to use something similar for other frameworks or languages.