danielyogelD
Convex Community5mo ago
21 replies
danielyogel

Convex Package.json "exports" in a Monorepo

Every package in a monorepo should specify "exports" in Package.json - so other packages in the monorepo could consume the relevant parts of it. As well as implying if the package should be consumed as built JS files or source source TS code and compiled by the consumer.
I am trying to understand what should I export from a Convex package.

I've looked in the https://github.com/get-convex/turbo-expo-nextjs-clerk-convex-monorepo example, and the Convex package does not export anything.

What is the best practice regarding this?
Was this page helpful?