Help with (new) monorepo tsconfig

Ive just started merging two codebases into a monorepo

basically i have

FM and reporting

we have a /tsconfig.json (in FM) and a /reporting/tsconfig.json

after merging all the /reporting tests passed, but then after updating the prisma.schema in /prisma/prisma.schema the reporting tests started to fail

both of these tsconfigs had
    "paths": {
      "src/*": ["./src/*"],
    }

and a prisma client importing "src/prisma"

i've now moved /reporting/src to reporting/code and done a replace all on "src/" to "code/" and then changed all the "code/prisma" references to "src/prisma" so that we should be referencing FM's prisma client

but the paths in tsconifg are not resolving the way i expect...
Was this page helpful?