Skip to content

Commit ec9424e

Browse files
committed
fix dir
2 parents e40a320 + f46d0df commit ec9424e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/src/cache.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
import fs from 'fs/promises';
1010
import path from 'path';
11-
const { utils } = require('@stylexjs/shared');
11+
import { utils } from '@stylexjs/shared';
1212

1313
const hash = utils.hash;
1414

@@ -18,7 +18,7 @@ export function getDefaultCachePath() {
1818
}
1919

2020
export async function getCacheFilePath(cachePath, filePath) {
21-
const projectRoot = path.resolve();
21+
const projectRoot = path.resolve(__dirname, '../../../');
2222
const relativePath = path.relative(projectRoot, filePath);
2323
const fileName = relativePath.replace(/[\\/]/g, '__');
2424
return path.join(cachePath, `${fileName}.json`);

0 commit comments

Comments
 (0)