This repository was archived by the owner on Jan 2, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 47
47
- name : Install dependencies with Yarn
48
48
run : yarn install
49
49
- name : Lint with XO
50
- run : yarn run xo
50
+ run : yarn run lint
51
51
style :
52
52
name : Check style
53
53
Original file line number Diff line number Diff line change 8
8
"url" : " https://github.com/pizzafox/netlify-cache-nextjs/issues"
9
9
},
10
10
"dependencies" : {
11
- "@netlify/cache-utils" : " ^0.2.4 "
11
+ "@netlify/cache-utils" : " ^0.2.8 "
12
12
},
13
13
"devDependencies" : {
14
14
"prettier" : " ^1.19.1" ,
17
17
"xo" : " ^0.28.1"
18
18
},
19
19
"engines" : {
20
- "node" : " 12 "
20
+ "node" : " >=8.3.0 "
21
21
},
22
22
"keywords" : [
23
23
" netlify" ,
Original file line number Diff line number Diff line change @@ -8,8 +8,11 @@ interface NetlifyUtils {
8
8
}
9
9
10
10
interface NetlifyInputs {
11
+ // The TOML config uses camelcase for readability and because it's convention
12
+ /* eslint-disable camelcase */
11
13
custom_build_dir_name ?: string ;
12
14
build_dir_path ?: string ;
15
+ /* eslint-enable camelcase */
13
16
}
14
17
15
18
interface NetlifyOpts {
@@ -58,9 +61,7 @@ module.exports = {
58
61
// - the file/directory has not been cached yet
59
62
async onPreBuild ( { utils, netlifyConfig, inputs} : NetlifyOpts ) {
60
63
const paths = generateAbsolutePaths ( { netlifyConfig, inputs} ) ;
61
- const success = await utils . cache . restore ( paths . absolute . buildDir , {
62
- digest : [ paths . absolute . manifest ]
63
- } ) ;
64
+ const success = await utils . cache . restore ( paths . absolute . buildDir ) ;
64
65
65
66
if ( success ) {
66
67
console . log ( `Restored the cached ${ paths . buildDirName } folder at the location \`${ paths . absolute . buildDir } \`` ) ;
Original file line number Diff line number Diff line change 42
42
call-me-maybe "^1.0.1"
43
43
glob-to-regexp "^0.3.0"
44
44
45
- " @netlify/cache-utils@^0.2.4 " :
46
- version "0.2.4 "
47
- resolved "https://registry.yarnpkg.com/@netlify/cache-utils/-/cache-utils-0.2.4 .tgz#78325ccf4446c5ba341516789ee72920e68b7b85 "
48
- integrity sha512-qySES6dAxYHxj90gKvHKJ+dX7SdtcjsYPTQopgp2kcW7CdNxoPZsTM3lpTr2JSvz6jzo/tUGv9jexk14MALDNw ==
45
+ " @netlify/cache-utils@^0.2.8 " :
46
+ version "0.2.8 "
47
+ resolved "https://registry.yarnpkg.com/@netlify/cache-utils/-/cache-utils-0.2.8 .tgz#c7ba3389853ea6611530b1361095858711290eee "
48
+ integrity sha512-gH04KLAnAs3HR/AGojWjFfvHbSSmypRZ7K7ca1r19agobjcH+IWrYLxHDcd1HtnvIpitWAYlT4YYGOajr1ywKg ==
49
49
dependencies :
50
50
array-flat-polyfill "^1.0.1"
51
51
cpy "^8.0.0"
52
52
del "^5.1.0"
53
53
get-stream "^5.1.0"
54
54
global-cache-dir "^1.0.1"
55
- junk "^3.1 .0"
55
+ locate-path "^5.0 .0"
56
56
move-file "^1.2.0"
57
- p-map "^3.0.0"
58
57
path-exists "^4.0.0"
59
58
readdirp "^3.4.0"
60
59
You can’t perform that action at this time.
0 commit comments