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.
2 parents e40a320 + f46d0df commit ec9424eCopy full SHA for ec9424e
packages/cli/src/cache.js
@@ -8,7 +8,7 @@
8
*/
9
import fs from 'fs/promises';
10
import path from 'path';
11
-const { utils } = require('@stylexjs/shared');
+import { utils } from '@stylexjs/shared';
12
13
const hash = utils.hash;
14
@@ -18,7 +18,7 @@ export function getDefaultCachePath() {
18
}
19
20
export async function getCacheFilePath(cachePath, filePath) {
21
- const projectRoot = path.resolve();
+ const projectRoot = path.resolve(__dirname, '../../../');
22
const relativePath = path.relative(projectRoot, filePath);
23
const fileName = relativePath.replace(/[\\/]/g, '__');
24
return path.join(cachePath, `${fileName}.json`);
0 commit comments