mirror of
https://github.com/wahyd4/cdnjs.git
synced 2026-08-24 04:06:03 +10:00
Updated npm auto update script to ignore certain types of files and directories
This commit is contained in:
@@ -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, "");
|
||||
|
||||
Reference in New Issue
Block a user