Skip to content

fix(vfs): support non-hoisted node_module structure - #3015

Merged
Jake Bailey (jakebailey) merged 3 commits into
microsoft:v2from
antfu:fix/vfs-hoisted
Jun 4, 2024
Merged

fix(vfs): support non-hoisted node_module structure#3015
Jake Bailey (jakebailey) merged 3 commits into
microsoft:v2from
antfu:fix/vfs-hoisted

Conversation

@antfu

Copy link
Copy Markdown
Contributor

Package managers like pnpm use a non-hoisted node_modules structure, where sub-depdendencies lives in the sub-node_modules of the dependency. Current Twoslash and the createFSBackedSystem does not support that because the realpath implementation is missing, causing shamefully-hoisted=true is required, which defers from TypeScript's behavior: https://pnpm.io/npmrc#shamefully-hoist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants