Conversation
| cacheFileCount | ||
| } cached files for ${humanName} directory with ${ | ||
| dirFiles.length | ||
| dirFileCount |
There was a problem hiding this comment.
Actually after testing this code, since each netlify build is completely fresh, I'm not sure we need to log out already existing files, it'll always be 0?
Instead it could be more informative to store the file count of each cache directory & compare it on post build, i.e cached extra 12 files & removed 1 file
There was a problem hiding this comment.
If you additionally cache files within node_modules/.cache, it might happen that netlify already restored files for you.
Still, that post build information would be pretty useful. Happy to merge code that implements it :)
There was a problem hiding this comment.
Ah true, I didn't think of the caches in node_modules. Will work on that post build info when I can! :)
|
Rebased it on master in Check |
Hey @axe312ger, this PR address #22. What do you think?
verboseoptions that when enabled, will log out total amount of files insteadreporterinstead ofconsole.log