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.shwas installing each hosted module into the repo-rootnode_modules/@purple-cat-games/<name>/, but pnpm only places@mantine/coreunderapps/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: changedTARGET_NMin the script to default toapps/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-sidescripts/install-hosted-modules.shis unchanged. Added two tests inscripts/install-hosted-modules.test.tspinning the new default and forbidding regression to the barenode_modulesdefault.