mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-03 12:31:54 +08:00
Refactor: use ROOT_DIR
This commit is contained in:
@@ -5,8 +5,9 @@ import picocolors from 'picocolors';
|
||||
import { Cache } from './cache-filesystem';
|
||||
import { createMemoize } from 'foxts/serialized-memo';
|
||||
import type { MemoizeStorageProvider } from 'foxts/serialized-memo';
|
||||
import { ROOT_DIR } from '../constants/dir';
|
||||
|
||||
const fsMemoCache = new Cache({ cachePath: path.resolve(__dirname, '../../.cache'), tableName: 'fs_memo_cache' });
|
||||
const fsMemoCache = new Cache({ cachePath: path.join(ROOT_DIR, '.cache'), tableName: 'fs_memo_cache' });
|
||||
|
||||
const fsMemoCacheProvider: MemoizeStorageProvider = {
|
||||
has(key) {
|
||||
|
||||
Reference in New Issue
Block a user