@netlify/cache-utils
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "@netlify/cache-utils", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Utility for caching files in Netlify Build", | ||
@@ -51,2 +51,3 @@ "main": "src/main.js", | ||
"globby": "^10.0.2", | ||
"junk": "^3.1.0", | ||
"locate-path": "^6.0.0", | ||
@@ -53,0 +54,0 @@ "make-dir": "^3.1.0", |
@@ -9,2 +9,3 @@ 'use strict' | ||
const globby = require('globby') | ||
const junk = require('junk') | ||
const moveFile = require('move-file') | ||
@@ -37,4 +38,5 @@ | ||
const files = await globby(srcGlob, { cwd, ignoreJunk: true }) | ||
return files.length === 0 | ||
const files = await globby(srcGlob, { cwd }) | ||
const filteredFiles = files.filter((file) => junk.not(basename(file))) | ||
return filteredFiles.length === 0 | ||
} | ||
@@ -41,0 +43,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22275
392
11
+ Addedjunk@^3.1.0