Skip to content
Browse files

[config] Support 'analyze' flag in package.json

  • Loading branch information...
1 parent f07bf6e commit e4793c1e36f582f9a92427f4f6320b9e652dc080 @jfhbrook jfhbrook committed with Marak Oct 31, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/jitsu/package.js
View
3 lib/jitsu/package.js
@@ -458,11 +458,12 @@ function tryAnalyze (target, dir, callback) {
var resolve = jitsu.config.get('resolveDependencies'),
noanalyze = !(jitsu.config.get('analyze'))
|| (jitsu.config.get('noanalyze') === 'true')
+ || !(target.analyze)
|| optimist.argv.noanalyze,
analyze = typeof resolve === 'undefined'
? !noanalyze
: !resolve;
-
+
if (!analyze) {
winston.info('skipping require-analyzer because ' + 'noanalyze'.magenta + ' option is set');
return callback(null, target);

0 comments on commit e4793c1

Please sign in to comment.
Something went wrong with that request. Please try again.