Skip to content

Commit

Permalink
fix(cli-utils): Fix modules not being resolved correctly with pnpm-in…
Browse files Browse the repository at this point in the history
…stalled `gql.tada` (#298)
  • Loading branch information
kitten authored May 14, 2024
1 parent 2798a29 commit 60f13e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/new-clouds-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@gql.tada/cli-utils": patch
---

Fix modules not being resolved correctly when using `turbo` with `pnpm`-installed `gql.tada`
4 changes: 4 additions & 0 deletions packages/cli-utils/src/ts/vendor/typescript-vfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,10 @@ export function createFSBackedSystem(
name: 'fs-vfs',
root,
args: [],
realpath: (directory) => {
if (nodeSys.realpath) return nodeSys.realpath(directory);
return directory;
},
createDirectory: () => notImplemented('createDirectory'),
// TODO: could make a real file tree
directoryExists: (directory) => {
Expand Down

0 comments on commit 60f13e9

Please sign in to comment.