Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit e4793c1e36f582f9a92427f4f6320b9e652dc080 1 parent f07bf6e
@jfhbrook jfhbrook authored Marak committed
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);
Please sign in to comment.
Something went wrong with that request. Please try again.