Add patch for @actions/cache to expose entry size

There's no easy way to get the size of restored/saved cache entries
using the @actions/cache library. Rather than reimplement it, this commit
adds a patch that will be applied whenever 'npm install' is run.

The work is done by 'patch-package'.
This commit is contained in:
Daz DeBoer 2021-10-30 13:30:44 -06:00
parent d785346c8c
commit 3ba05ede1f
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D
3 changed files with 334 additions and 21 deletions

View file

@ -4,6 +4,7 @@
"private": true,
"description": "Execute Gradle Build",
"scripts": {
"postinstall": "patch-package",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"lint": "eslint src/**/*.ts",
@ -30,6 +31,7 @@
"@actions/glob": "0.2.0",
"@actions/http-client": "1.0.11",
"@actions/tool-cache": "1.7.1",
"patch-package": "6.4.7",
"string-argv": "0.3.1"
},
"devDependencies": {