This repository is set up as a Turborepo monorepo using pnpm workspaces.
Quick commands (pnpm):
- Install deps (root, workspace install):
pnpm install
- Build all packages:
pnpm run build
Each package lives under packages/
and may provide its own scripts for dev
, build
, and lint
.
Some packages target React 18 and others React 19. pnpm may install multiple @types/react
majors which breaks TypeScript composite builds (JSX type errors).
Quick fixes:
- Package-local pin: add a suitable
@types/react
to the package that targets React 19 (example:@types/[email protected]
). - Local type shim: add
src/types/*.d.ts
in a package to declare problematic modules (e.g.@remixicon/react
) asReact.ComponentType
.