We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca1e73 commit 69d2198Copy full SHA for 69d2198
.changeset/fresh-worms-explain.md
@@ -0,0 +1,5 @@
1
+---
2
+'@graphql-mesh/utils': patch
3
4
+
5
+fix readFileWithCache: isAbsolute issue (https://github.com/Urigo/graphql-mesh/issues/1505)
packages/utils/src/read-file-or-url.ts
@@ -30,7 +30,7 @@ export async function readFileWithCache<T>(
30
cache: KeyValueCache,
31
config?: ReadFileOrUrlOptions
32
): Promise<T> {
33
- const actualPath = isAbsolute ? filePath : resolve(process.cwd(), filePath);
+ const actualPath = isAbsolute(filePath) ? filePath : resolve(process.cwd(), filePath);
34
const cachedObjStr = await cache.get(actualPath);
35
const stats = await stat(actualPath);
36
if (cachedObjStr) {
0 commit comments