UNPKG

451 BJavaScriptView Raw
1const os = require('os')
2const { path, env: { SHERRY_GLOBAL_SCOPE } } = require('sherry-utils')
3
4// Only update this when we have to clear cache
5const SHERRY_CACHE_VERSION = 1
6
7const downloadPath = path.join(
8 os.homedir(),
9 `.${SHERRY_GLOBAL_SCOPE}/V${SHERRY_CACHE_VERSION}`
10)
11
12const repoPath = path.join(downloadPath, 'repos')
13const packagePath = path.join(downloadPath, 'packages')
14
15module.exports = {
16 downloadPath,
17 repoPath,
18 packagePath
19}