mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-04 04:42:32 +08:00
Refactor: use ROOT_DIR
This commit is contained in:
@@ -6,9 +6,10 @@ import fsp from 'node:fs/promises';
|
||||
// import picocolors from 'picocolors';
|
||||
|
||||
import { task } from '../trace';
|
||||
import { ROOT_DIR } from '../constants/dir';
|
||||
// import { bytes } from 'xbits';
|
||||
|
||||
const cachePath = path.resolve(__dirname, '../../.cache/__make_fetch_happen__');
|
||||
const cachePath = path.join(ROOT_DIR, '.cache/__make_fetch_happen__');
|
||||
// fs.mkdirSync(cachePath, { recursive: true });
|
||||
|
||||
// interface CacacheVerifyStats {
|
||||
|
||||
Reference in New Issue
Block a user