Skip to content

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

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

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

Conversation

@antfu

@antfu antfu commented Jan 17, 2024

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

@jakebailey jakebailey closed this Jun 2, 2024
@jakebailey jakebailey reopened this Jun 2, 2024
@jakebailey
jakebailey merged commit 6168ef4 into microsoft:v2 Jun 4, 2024
@typescript-bot typescript-bot mentioned this pull request Jun 5, 2024
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