Marvin
02/02/2022, 1:41 PMSabin Adams
02/02/2022, 1:42 PMSabin Adams
02/02/2022, 1:46 PM// /packages/prisma/index.ts
export * from '@prisma/client'
Marvin
02/02/2022, 1:49 PMSabin Adams
02/02/2022, 1:49 PMAustin Zentz
02/02/2022, 2:00 PMAustin Zentz
02/02/2022, 2:01 PMAustin Zentz
02/02/2022, 2:02 PMnikolasburk
It’s a big of a slog to get the config working right, but super useful once it’s up and running.Hey Austin, that sounds really awesome! Not sure if you’re into blogging but I think this could be a great blog post to help out other devs with this setup in the future 😄
Sabin Adams
02/02/2022, 2:19 PMMarvin
02/02/2022, 4:20 PMmain
and types
field in the `package.json``? It looks like it needs both? Isn't it possible to just export the types without any runtime code?Marvin
02/02/2022, 4:21 PM@prisma/client
and a packages/prisma/index.ts
with export * from '@prisma/client'
Marvin
02/02/2022, 4:30 PM@prisma/client
as a dependency to packages/frontend
without any separate package, I can import the types in my frontend code from .prisma/client
but not @prisma/client
(error: has no exported member XXX).Sabin Adams
02/02/2022, 9:59 PM