forked from figmar/apes-sidebar
On the Windows lane the @deepseek-ai/cordis link produced TS2307 even though the link was visibly created: under pnpm its target, node_modules/@deepseek-ai/cordis, is itself a junction into .pnpm, and a native symlink pointing AT that junction does not traverse for tsc. Resolve both link targets with node's native realpath first (GetFinalPathNameByHandle also expands junctions, which bash-level resolution may leave untouched), and fail loudly with the link layer listed when a created link does not resolve to a package root.