Comparing version 3.0.17 to 3.0.18
@@ -0,1 +1,5 @@ | ||
3.0.18 (11/21/2012) | ||
------------------- | ||
* Added support for searching for modules using both the module search path from the config file as well as the root of the selected Titanium SDK [TIMOB-11776] | ||
3.0.17 (11/20/2012) | ||
@@ -2,0 +6,0 @@ ------------------- |
@@ -54,3 +54,3 @@ /* | ||
case 'list': | ||
list(logger, cli.argv, cli.env); | ||
list(logger, cli.argv, cli.env, config, cli.env.getSDK(config.app.sdk)); | ||
break; | ||
@@ -82,5 +82,7 @@ } | ||
function list(logger, argv, env) { | ||
function list(logger, argv, env, config, sdk) { | ||
var projectDir = argv['project-dir'], | ||
p = afs.resolvePath(projectDir || '.'); | ||
p = afs.resolvePath(projectDir || '.'), | ||
searchPaths = [p]; | ||
if (afs.exists(p)) { | ||
@@ -96,3 +98,6 @@ while (path.dirname(p) != p) { | ||
appc.timodule.detect(projectDir, null, function (modules) { | ||
sdk && searchPaths.push(afs.resolvePath(sdk.path, '..', '..', '..')); | ||
config.paths && Array.isArray(config.paths.modules) && (searchPaths = searchPaths.concat(config.paths.modules)); | ||
appc.timodule.detect(searchPaths, null, function (modules) { | ||
if (argv.output == 'json') { | ||
@@ -103,3 +108,3 @@ logger.log(JSON.stringify(modules, null, '\t')); | ||
if (Object.keys(modules).length) { | ||
projectDir && renderModules(__('Project Modules'), __('No project modules found'), modules.project, logger); | ||
searchPaths && renderModules(__('Search Path Modules'), __('No project modules found'), modules.project, logger); | ||
renderModules(__('Global Modules'), __('No global modules found'), modules.global, logger); | ||
@@ -106,0 +111,0 @@ } else { |
@@ -22,3 +22,3 @@ { | ||
], | ||
"version": "3.0.17", | ||
"version": "3.0.18", | ||
"author": { | ||
@@ -25,0 +25,0 @@ "name": "Appcelerator, Inc.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149456
3916