Comparing version 0.0.3 to 0.0.4
@@ -8,2 +8,5 @@ /* jshint node:true */ | ||
var required = []; | ||
/** | ||
@@ -62,2 +65,5 @@ * List of stage names that activate the devmode | ||
requirePath = path.normalize(root.path + relativePath); | ||
// add dependency to the required packages | ||
required.push(requirePath); | ||
} | ||
@@ -107,4 +113,6 @@ | ||
// output whether or not devmode is active | ||
if (exports.isActive()) { | ||
// Active status should be prompted once for the main package | ||
// check whether or not devmode is active | ||
// check if dependency has not been required | ||
if (exports.isActive() && required.indexOf(root.name) < 0) { | ||
console.log( | ||
@@ -111,0 +119,0 @@ '\n #################\n' + |
{ | ||
"name": "devmode", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"license": "MIT", | ||
@@ -33,2 +33,2 @@ "main": "./lib/devmode", | ||
} | ||
} | ||
} |
11914
221