Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed a bug preventing the scan when project is loaded as a module in…

… another project
  • Loading branch information...
commit 4a1c19f13f02697d2025ac99703b75d644eaebb7 1 parent 0bd7aee
= authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 lib/main.js
  2. +1 −1  package.json
6 lib/main.js
View
@@ -68,9 +68,9 @@ function scan (dir){
}
function shouldScanFurther(root,file){
- if (root.indexOf("node_modules") !== -1 ||
- file.substr(0,1) === "." ||
- !fs.statSync(root+"/"+file).isDirectory()) {
+ if ( file === "node_modules" ||
+ file.substr(0,1) === "." ||
+ !fs.statSync(root+"/"+file).isDirectory()) {
return false;
}else{
return true;
2  package.json
View
@@ -1,6 +1,6 @@
{
"name": "rekuire",
- "version": "0.0.3",
+ "version": "0.0.4",
"description": "'rekuire' is basically node's 'require' without the relative paths",
"repository": {
"type": "git",
Please sign in to comment.
Something went wrong with that request. Please try again.