From 1a70e2a0a13b4fd7f3676b323aabb37efb423f07 Mon Sep 17 00:00:00 2001 From: Hassan Yousefi Date: Mon, 4 Sep 2023 14:03:08 +0330 Subject: [PATCH] change local cache prefix --- .gitignore | 3 ++- index.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index be38d40..6b4224d 100644 --- a/.gitignore +++ b/.gitignore @@ -130,7 +130,8 @@ dist .pnp.* # local cache prefix -__MMSLM_CACHE__/ +__MMT_CACHE__/ # local config file config.local.yml +.DS_Store diff --git a/index.ts b/index.ts index 0d03d99..670d37f 100644 --- a/index.ts +++ b/index.ts @@ -21,7 +21,7 @@ const cacheDir = args['cache-dir'] || config.CACHE_DIR; const defaultPath = args.path || config.DEFAULT_PATH || 'v1'; const verbose = args.verbose || config.LOG_REQUESTS || false; -const cacheBaseDir = path.resolve(cacheDir, '__MMSLM_CACHE__'); +const cacheBaseDir = path.resolve(cacheDir, '__MMT_CACHE__'); if (!fs.existsSync(path.resolve(cacheBaseDir, '_tmp_'))) { fs.mkdirSync(path.resolve(cacheBaseDir, '_tmp_'), { recursive: true });