Skip to content

Commit 58fe4a7

Browse files
committed
-
1 parent d79e71d commit 58fe4a7

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

‎cli/cache.ts‎

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,6 @@ export function getGithubDepCacheName(name : string, repo : string) {
2828
return `_github/${name}#${branch}` + (commitHash ? `@${commitHash}` : '');
2929
}
3030

31-
// ------
32-
// export let getMopsDepCacheDir = (name : string, version : string) => {
33-
// let dir = `${name}@${version}`;
34-
// return path.join(globalCacheDir, 'packages', dir);
35-
// };
36-
37-
// export let getGithubDepCacheDir = (name : string, branch : string, commitHash : string) => {
38-
// let dir = `_github/${name}#${branch}` + (commitHash ? `@${commitHash}` : '');
39-
// return path.join(globalCacheDir, 'packages', dir);
40-
// };
41-
42-
// export let isMopsDepCached = (name : string, version : string) => {
43-
// let dir = getMopsDepCacheDir(name, version);
44-
// return fs.existsSync(dir);
45-
// };
46-
47-
// export let isGithubDepCached = (name : string, branch : string, commitHash : string) => {
48-
// let dir = getGithubDepCacheDir(name, branch, commitHash);
49-
// return fs.existsSync(dir);
50-
// };
51-
5231
export let addCache = (cacheName : string, source : string) => {
5332
let dest = path.join(globalCacheDir, 'packages', cacheName);
5433
fs.mkdirSync(dest, {recursive: true});

0 commit comments

Comments
 (0)