@nanosite/ecommerce-sdk
v0.1.12
Published
Typed client for the NanoSite ecommerce API — generated from openapi.json (orval + React Query). Zero internal deps.
Readme
How to Publish
from repo root
1. (optional but recommended) regenerate the SDK from the live ecommerce API,
so it's fully in sync, not just the 3 email hooks. Auto-builds via postgenerate.
cd apps/ecommerce npm run sdk:generate # dumps OpenAPI (Zod) → orval generate → npm run build
2. build the SDK dist (skip if step 1 ran — postgenerate already built it)
cd ../../packages/ecommerce-sdk
npm run build # tsc → dist/ (this is what files: ["dist"] publishes)
3. publish to npm (public; prepack rebuilds dist as a safety net)
npm publish # @nanosite/[email protected], access:public
