File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,17 @@ import { env } from 'process'
4
4
import globalCacheDir from 'global-cache-dir'
5
5
import writeFileAtomic from 'write-file-atomic'
6
6
7
- // The cache is persisted to `GLOBAL_CACHE_DIR/nve/versions .json`.
7
+ // The cache is persisted to `GLOBAL_CACHE_DIR/nve/versions_${VERSION} .json`.
8
8
export const getCacheFile = async function ( ) {
9
9
const cacheDir = await globalCacheDir ( CACHE_DIR )
10
10
const cacheFilename = env . TEST_CACHE_FILENAME || CACHE_FILENAME
11
11
return `${ cacheDir } /${ cacheFilename } `
12
12
}
13
13
14
14
const CACHE_DIR = 'nve'
15
- const CACHE_FILENAME = 'versions.json'
15
+ // `VERSION` number should be incremented when `all-node-versions` return value
16
+ // has breaking changes.
17
+ const CACHE_FILENAME = 'versions_2.json'
16
18
17
19
// Retrieve cache file's content
18
20
export const getCacheFileContent = async function ( cacheFile ) {
You can’t perform that action at this time.
0 commit comments