From 00c8d8119a23985aaca2fddc2ea3fe0270352201 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 29 Jan 2014 14:49:07 -0800 Subject: [PATCH] Updated npm auto update script to ignore certain types of files and directories --- npm-auto-update.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/npm-auto-update.js b/npm-auto-update.js index cd081a5dc..3d688661c 100644 --- a/npm-auto-update.js +++ b/npm-auto-update.js @@ -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, "");