* build: declare dependencies that only hoisting supplied
Under pnpm's global virtual store each package sees only its declared
dependencies. Several published packages relied on hoisting:
- jest-dom's vitest matcher augmentation could not find vitest (1645
TS2339 errors in tc:web), and react libraries' .d.ts could not find
@types/react, so lucide-react, dnd-kit, cmdk, sonner and others typed
as `any`. Other .d.ts phantoms (electron, vfile, prosemirror-model,
d3-selection, type-fest) degraded silently the same way.
- electron-vite resolves electron/package.json and the binary itself.
packageExtensions declares these, which also holds in the hoisted
layout. The markdown alias now resolves decode-named-character-reference
through mdast-util-from-markdown, the package that actually declares it.
* build: let addMissingPeerTypes supply @types/react to react peers
pnpm 12.12 links a peer's @types package next to every package that
peer-depends on it, which replaces the hand-listed @types/react peers.
The regression test now reads pnpm-workspace.yaml, so it checks every
packageExtensions entry instead of a hand-picked seven.