Skip to content

Commit

Permalink
fix(vfs): support non-hoisted node_module structure (#3015)
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Bailey <[email protected]>
  • Loading branch information
antfu and jakebailey authored Jun 4, 2024
1 parent 71776ae commit 6168ef4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-cycles-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@typescript/vfs": patch
---

support non-hoisted `node_module` structure
1 change: 1 addition & 0 deletions packages/typescript-vfs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ export function createFSBackedSystem(
writeFile: (fileName, contents) => {
files.set(fileName, contents)
},
realpath: nodeSys.realpath,
}
}

Expand Down

0 comments on commit 6168ef4

Please sign in to comment.