We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 493c789 commit 55d4190Copy full SHA for 55d4190
packages/cli/src/cache.js
@@ -18,7 +18,9 @@ export function getDefaultCachePath() {
18
}
19
20
export async function getCacheFilePath(cachePath, filePath) {
21
- const fileName = filePath.replace(/[\\/]/g, '__');
+ const projectRoot = path.resolve();
22
+ const relativePath = path.relative(projectRoot, filePath);
23
+ const fileName = relativePath.replace(/[\\/]/g, '__');
24
return path.join(cachePath, `${fileName}.json`);
25
26
0 commit comments