# design-sync notes — Cloudrite Repo-specific gotchas for future syncs. Read this before re-running. ## What this repo is Not a component library — a Next.js 16 marketing site (`private: true`, no `dist/`, no `exports`, no `.d.ts` tree). The DS surface is `components/ui/*` (54 shadcn/ui primitives, new-york style) plus 7 hand-built Cloudrite page sections. ## The staging package (`.ds-pkg/`) The converter needs a package with a built entry and a `.d.ts` tree. Three scripts under `.design-sync/` build one from source; run them **in this order** (this is `cfg.buildCmd`): 1. `node_modules/.bin/tsc -p .design-sync/tsconfig.dts.json` — declaration emit, 69 `.d.ts` files. Exits 0; all three steps are chained with `&&`, so a real failure stops the run. **`../next-env.d.ts` must stay in that config's `include`.** It pulls in Next's JSX augmentation for styled-jsx; without it the `