Updated npm auto update script to ignore certain types of files and directories

This commit is contained in:
Ryan
2014-01-29 14:49:07 -08:00
parent 4ea8aca385
commit 00c8d8119a
+2
View File
@@ -54,6 +54,8 @@ var updateLibrary = function (pkg, callback) {
var files = glob.sync(path + "/" + folderName + "/" + basePath + "/" + file);
_.each(files, function(extractFilePath) {
if(extractFilePath.slice(-4) == ".zip") return;
if(extractFilePath.indexOf("dependencies") !== -1) return;
var replacePath = folderName + "/" + basePath + "/";
replacePath = replacePath.replace(/\/\//g, "/");
var actualPath = extractFilePath.replace(replacePath, "");