From 516995399eb0c3bb680cf49970eccb6c93288ce3 Mon Sep 17 00:00:00 2001 From: Benjamin Berman Date: Mon, 29 Dec 2014 16:54:52 -0800 Subject: [PATCH] Skip folders called samples Some packages, like [facebook-node-sdk](https://github.com/Thuzi/facebook-node-sdk), use the convention of calling the examples folder `samples`. This fix accounts for this common package. --- lib/demeteorizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/demeteorizer.js b/lib/demeteorizer.js index 2b62d6f..b17c6f4 100644 --- a/lib/demeteorizer.js +++ b/lib/demeteorizer.js @@ -238,7 +238,7 @@ Demeteorizer.prototype.findDependenciesInFolder = function (folder, inNodeModule } // Skip the examples directory. - if (file === 'examples') { + if (file === 'examples' || file === 'samples') { keepGoing = false; }