Skip to main content
Run any Skill in Manus
with one click

pnpm-store-project-mirror-breaks-vitest-glob

Stars2
Forks0
UpdatedJune 25, 2026 at 06:07

After `pnpm install` in a git worktree, vitest/jest can discover a test file from a SECOND path โ€” pnpm hardlinks the whole project (test/ included) into `~/Library/pnpm/store/v<n>/projects/<hash>/`, and the glob picks up that out-of-root mirror where the `@/` alias / vite root doesn't apply โ†’ bogus "Cannot find package '@/...'" resolution errors. Clearing the stale store-project mirror fixes it.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly