Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-sync

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-sync - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

4

package.json
{
"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) {

});
};
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc