diff --git a/.changeset/rich-cycles-leave.md b/.changeset/rich-cycles-leave.md new file mode 100644 index 000000000000..228e05002530 --- /dev/null +++ b/.changeset/rich-cycles-leave.md @@ -0,0 +1,5 @@ +--- +"@typescript/vfs": patch +--- + +support non-hoisted `node_module` structure diff --git a/packages/typescript-vfs/src/index.ts b/packages/typescript-vfs/src/index.ts index 10ec61f02026..2af12cfdc062 100755 --- a/packages/typescript-vfs/src/index.ts +++ b/packages/typescript-vfs/src/index.ts @@ -527,6 +527,7 @@ export function createFSBackedSystem( writeFile: (fileName, contents) => { files.set(fileName, contents) }, + realpath: nodeSys.realpath, } }