diff --git a/index.js b/index.js index 4743194..299f637 100644 --- a/index.js +++ b/index.js @@ -205,9 +205,12 @@ function installDependencies() { // Returns all extensions found in the current directory function getUniqueExtensions() { + // Folders to ignore + var exclusions = ['node_modules', '.git', '.sass-cache', 'bower_components', 'vendor']; + // Grab list of extensions used in the supplied directory // TODO: If async version is needed, return promise that resolves with list - return gux(this.directory); + return gux(this.directory, exclusions); } // Returns a system-supported subset of the given list diff --git a/package.json b/package.json index 5d1b630..534ba5a 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "license": "MIT", "dependencies": { "q": "~1.0.0", - "node-unique-extensions": "~1.0.0" + "node-unique-extensions": "~2.0.0" }, "bin": { "ya": "bin/ya.js"