filemanager-webpack-plugin
Advanced tools
Comparing version 6.1.2 to 6.1.3
{ | ||
"name": "filemanager-webpack-plugin", | ||
"version": "6.1.2", | ||
"version": "6.1.3", | ||
"description": "This Webpack plugin allows you to copy, archive (.zip), move, delete files and directories before and after builds", | ||
@@ -5,0 +5,0 @@ "author": "gregnb", |
@@ -17,5 +17,8 @@ import fs from 'fs'; | ||
const ignore = ((Array.isArray(options.ignore) && options.ignore) || []).concat(destFile); | ||
const archiverOptions = { ignore, ...(options.globOptions || {}) }; | ||
const inputGlobOptions = options.globOptions || {}; | ||
const ignore = Array.isArray(inputGlobOptions.ignore) ? [...inputGlobOptions.ignore, destFile] : [destFile]; | ||
const fileToIgnore = typeof inputGlobOptions.ignore === 'string' ? [...ignore, inputGlobOptions.ignore] : ignore; | ||
const globOptions = { ...inputGlobOptions, ignore: fileToIgnore }; | ||
await fsExtra.ensureDir(destDir); | ||
@@ -31,3 +34,3 @@ | ||
const opts = { | ||
...archiverOptions, | ||
...globOptions, | ||
cwd: context, | ||
@@ -42,3 +45,3 @@ }; | ||
const opts = { | ||
...archiverOptions, | ||
...globOptions, | ||
cwd: absoluteSource, | ||
@@ -45,0 +48,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
68998
938