Skip to content

v0.20.3

2026-05-06

  • [x] Frontend Vite build was failing in CI with Rollup failed to resolve import "@mantine/core" from ".../@purple-cat-games/genai/dist/client/GenAIArtworkSource.js". The genai module's built client entry imports @mantine/core (and React), which it declares as peerDependencies. scripts/install-hosted-modules-frontend.sh was installing each hosted module into the repo-root node_modules/@purple-cat-games/<name>/, but pnpm only places @mantine/core under apps/web/node_modules/ (the package that actually depends on it), so Rollup walked up the tree from the repo root and never found it. vtt-assets / system8 / scenes happen not to import any peer deps in their built output, which is why the failure only surfaced after genai started shipping a Mantine-using client entry. Fix: changed TARGET_NM in the script to default to apps/web/node_modules (overridable via a positional CLI arg), so hosted modules now sit next to the workspace package whose hoisted peers they depend on. Server-side scripts/install-hosted-modules.sh is unchanged. Added two tests in scripts/install-hosted-modules.test.ts pinning the new default and forbidding regression to the bare node_modules default.