Comparing version
@@ -6,2 +6,18 @@ # Change Log | ||
<a name="7.3.0"></a> | ||
# [7.3.0](https://github.com/xing/hops/compare/v7.2.0...v7.3.0) (2017-10-26) | ||
### Bug Fixes | ||
* **cli:** lookup "hops-local-cli" in dependencies + devDependencies ([9aa136e](https://github.com/xing/hops/commit/9aa136e)) | ||
### Features | ||
* **cli:** update cli for extensible local-cli ([aa794fc](https://github.com/xing/hops/commit/aa794fc)) | ||
<a name="7.2.0"></a> | ||
@@ -8,0 +24,0 @@ # [7.2.0](https://github.com/xing/hops/compare/v7.1.0...v7.2.0) (2017-10-18) |
11
hops.js
@@ -159,3 +159,2 @@ #!/usr/bin/env node | ||
var localCliPath = getLocalCliPath(); | ||
var argv = process.argv.slice(2); | ||
@@ -165,5 +164,5 @@ var isInsideHopsProject = false; | ||
var manifest = require(path.resolve(process.cwd(), 'package.json')); | ||
if (manifest.dependencies) { | ||
isInsideHopsProject = Boolean(manifest.dependencies['hops-local-cli']); | ||
} | ||
var dependencies = Object.keys(manifest.dependencies || {}) | ||
.concat(Object.keys(manifest.devDependencies || {})); | ||
isInsideHopsProject = dependencies.indexOf('hops-local-cli') > -1; | ||
} catch (error) { | ||
@@ -175,3 +174,3 @@ isInsideHopsProject = false; | ||
if (localCliPath) { | ||
require(localCliPath).run(argv); | ||
require(localCliPath).run(); | ||
} else { | ||
@@ -187,3 +186,3 @@ console.error( | ||
} else { | ||
var options = globalCLI(argv); | ||
var options = globalCLI(process.argv.slice(2)); | ||
var name = options.projectName; | ||
@@ -190,0 +189,0 @@ var root = process.cwd(); |
{ | ||
"name": "hops-cli", | ||
"version": "7.2.0", | ||
"version": "7.3.0", | ||
"description": "Global CLI module to initialize new hops projects", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
8209
5.42%180
-0.55%