filemanager-webpack-plugin
Advanced tools
Comparing version 1.0.26 to 1.0.27
@@ -244,24 +244,28 @@ 'use strict'; | ||
commandOrder.push(function () { | ||
return new Promise(function (resolve, reject) { | ||
if (_this3.options.verbose) { | ||
console.log(" - FileManagerPlugin: Start move source: " + command.source + " to destination: " + command.destination); | ||
} | ||
if (fs.existsSync(command.source)) { | ||
commandOrder.push(function () { | ||
return new Promise(function (resolve, reject) { | ||
if (_this3.options.verbose) { | ||
console.log(" - FileManagerPlugin: Start move source: " + command.source + " to destination: " + command.destination); | ||
} | ||
mv(command.source, command.destination, { mkdirp: _this3.options.moveWithMkdirp }, function (err) { | ||
if (err) { | ||
mv(command.source, command.destination, { mkdirp: _this3.options.moveWithMkdirp }, function (err) { | ||
if (err) { | ||
if (_this3.options.verbose) { | ||
console.log(" - FileManagerPlugin: Error - move failed", err); | ||
} | ||
reject(err); | ||
} | ||
if (_this3.options.verbose) { | ||
console.log(" - FileManagerPlugin: Error - move failed", err); | ||
console.log(" - FileManagerPlugin: Finished move source: " + command.source + " to destination: " + command.destination); | ||
} | ||
reject(err); | ||
} | ||
if (_this3.options.verbose) { | ||
console.log(" - FileManagerPlugin: Finished move source: " + command.source + " to destination: " + command.destination); | ||
} | ||
resolve(); | ||
resolve(); | ||
}); | ||
}); | ||
}); | ||
}); | ||
} else { | ||
process.emitWarning(" - FileManagerPlugin: Could not move " + command.source + ": path does not exist"); | ||
} | ||
}; | ||
@@ -268,0 +272,0 @@ |
{ | ||
"name": "filemanager-webpack-plugin", | ||
"version": "1.0.26", | ||
"version": "1.0.27", | ||
"description": "This Webpack plugin allows you to copy, archive (.zip), move, delete files and directories before and after builds", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
44024
366