diff --git a/.changeset/new-clouds-argue.md b/.changeset/new-clouds-argue.md new file mode 100644 index 00000000..841042fb --- /dev/null +++ b/.changeset/new-clouds-argue.md @@ -0,0 +1,5 @@ +--- +"@gql.tada/cli-utils": patch +--- + +Fix modules not being resolved correctly when using `turbo` with `pnpm`-installed `gql.tada` diff --git a/packages/cli-utils/src/ts/vendor/typescript-vfs.ts b/packages/cli-utils/src/ts/vendor/typescript-vfs.ts index eb38b6d7..cb280b57 100644 --- a/packages/cli-utils/src/ts/vendor/typescript-vfs.ts +++ b/packages/cli-utils/src/ts/vendor/typescript-vfs.ts @@ -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) => {