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