You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2017/06/20 17:57:59 UTC
[3/7] cordova-cli git commit: CB-12862 all: Added searchpath as a
config option
CB-12862 all: Added searchpath as a config option
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/1dbca5a3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/1dbca5a3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/1dbca5a3
Branch: refs/heads/master
Commit: 1dbca5a3a2889f89a9d7088a68f2c773233c5263
Parents: 3045614
Author: Lui <xi...@sap.com>
Authored: Mon May 29 10:35:58 2017 -0400
Committer: Lui <xi...@sap.com>
Committed: Mon May 29 10:35:58 2017 -0400
----------------------------------------------------------------------
src/cli.js | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/1dbca5a3/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index 184a801..e4d7b86 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -469,6 +469,10 @@ function cli(inputArgs) {
// User explicitly did not pass in browserify
args.browserify = conf.get('browserify');
}
+ if (args.searchpath === undefined) {
+ // User explicitly did not pass in searchpath
+ args.searchpath = conf.get('searchpath');
+ }
var download_opts = { searchpath : args.searchpath
, noregistry : args.noregistry
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org