UNPKG
@netlify/cache-utils
Version:
beta (1.0.8-0)
debug (1.0.2-0)
latest (5.2.0)
rc (4.1.6-rc)
5.2.0
5.1.6
5.1.5
5.1.4
5.1.3
5.1.2
5.1.1
5.1.0
5.0.2
5.0.1
5.0.0
4.1.6
4.1.6-rc
4.1.5
4.1.5-rc
4.1.4
4.1.3
4.1.2
4.1.1
4.1.0
4.0.0
3.0.1
3.0.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-rc
1.0.8-0
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.2-0
1.0.1
1.0.0
0.4.2
0.4.1
0.4.0
0.3.0
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
Utility for caching files in Netlify Build
github.com/netlify/build
netlify/build
@netlify/cache-utils
/
lib
/
dir.js
7 lines
(6 loc)
•
245 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
{ resolve }
from
'path'
;
const
DEFAULT_CACHE_DIR
=
'.netlify/cache/'
;
// Retrieve the cache directory location
export
const
getCacheDir =
function
(
{ cacheDir = DEFAULT_CACHE_DIR, cwd =
'.'
} = {}
) {
return
resolve
(cwd, cacheDir); };