grunt-sync
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "grunt-sync", | ||
"description": "Task to synchronize two directories. Similar to grunt-copy but updates only files that have been changed.", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"homepage": "https://github.com/tomusdrw/grunt-sync.git", | ||
@@ -39,3 +39,3 @@ "author": { | ||
"grunt": "0.4.x", | ||
"grunt-complexity": "git+ssh://git@github.com:tomusdrw/grunt-complexity.git", | ||
"grunt-complexity": "0.1.x", | ||
"grunt-simple-mocha": "0.3.x", | ||
@@ -42,0 +42,0 @@ "grunt-contrib-jshint": "0.1.x" |
@@ -54,3 +54,9 @@ var fs = require('promised-io/fs'); | ||
return promise.all(fileDef.src.map(function(src){ | ||
return processPair(path.join(cwd, src), path.join(fileDef.dest, src)); | ||
var dest = path.join(fileDef.dest, src); | ||
// when using expanded mapping dest is the destination file | ||
// not the destination folder | ||
if(fileDef.orig.expand) { | ||
dest = fileDef.dest; | ||
} | ||
return processPair(path.join(cwd, src), dest); | ||
})); | ||
@@ -61,2 +67,2 @@ })).then(function(promises) { | ||
}); | ||
}; | ||
}; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5409
104
0