Comparing version 8.0.0 to 8.0.1
@@ -8,3 +8,3 @@ 'use strict'; | ||
const globby = require('globby'); | ||
const isGlob = require('is-glob'); | ||
const hasGlob = require('has-glob'); | ||
const cpFile = require('cp-file'); | ||
@@ -74,5 +74,3 @@ const junk = require('junk'); | ||
const sourcePaths = source.filter(value => !isGlob(value)); | ||
if (files.length === 0 || (sourcePaths.length > 0 && !sourcePaths.every(value => files.includes(value)))) { | ||
if (files.length === 0 && !hasGlob(source)) { | ||
throw new CpyError(`Cannot copy \`${source}\`: the file doesn't exist`); | ||
@@ -79,0 +77,0 @@ } |
{ | ||
"name": "cpy", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "Copy files", | ||
@@ -49,3 +49,3 @@ "license": "MIT", | ||
"globby": "^9.2.0", | ||
"is-glob": "^4.0.1", | ||
"has-glob": "^1.0.0", | ||
"junk": "^3.1.0", | ||
@@ -52,0 +52,0 @@ "nested-error-stacks": "^2.1.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
10199
192
+ Addedhas-glob@^1.0.0
+ Addedhas-glob@1.0.0(transitive)
- Removedis-glob@^4.0.1