floppydisk
How to share the types correctly?
Hey everyone,
I have a basic question regarding sharing types between my Fastify back-end and my Expo front-end. I'm using a monorepo and I'm using pnpm workspaces.
My back-end
package.json
includes:
And types.ts
:
Inside my package.json
for my front-end I do:
This works fine and as expected until I try to use path aliases inside my back-end. I understand why this breaks, but is there a way around it? Is my initial setup already wrong?4 replies