grunt-sync
Advanced tools
Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "grunt-sync", | ||
"description": "Task to synchronize two directories. Similar to grunt-copy but updates only files that have been changed.", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"homepage": "https://github.com/tomusdrw/grunt-sync.git", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -297,3 +297,8 @@ var fs = require('promised-io/fs'); | ||
return paths.map(function (filePath) { | ||
return path.join.apply(path, filePath.split('/')); | ||
var newPath = path.join.apply(path, filePath.split('/')); | ||
var startsWithSlash = filePath[0] === '/'; | ||
if (startsWithSlash) { | ||
return '/' + newPath; | ||
} | ||
return newPath; | ||
}); | ||
@@ -300,0 +305,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
18325
379