E.g. to remove redundant definitions per-service, ...
# orm-help
a
E.g. to remove redundant definitions per-service, etc
l
We solved it by havingone "master" definition with multiple generator blocks
i.e.
Copy code
generator prisma_client {
  provider      = "prisma-client-js"
  binaryTargets = ["native", "rhel-openssl-1.0.x"]
}

generator prisma_client_ics {
  provider      = "prisma-client-js"
  output        = "../../sls-ics-manager/node_modules/@prisma/client"
  binaryTargets = ["native", "rhel-openssl-1.0.x"]
}

generator prisma_client_sync {
  provider      = "prisma-client-js"
  output        = "../../sls-event-sync/node_modules/@prisma/client"
  binaryTargets = ["native", "rhel-openssl-1.0.x"]
}
w
hi would you elaborate how ur folder structure looks like? im trying to do the same but not going quite successfully
l
Heya, this example is kinda outdated since the generated folders moved from
@prisma/client
to
.prisma
w
@luhagel what’s ur solution for this change
l
Adjust the output paths in my first example to point to
node_modules/.prisma
instead of the client