fis-command-install
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -24,3 +24,3 @@ /* | ||
commander | ||
.option('--save', 'save component(s) dependencies into `components.json` file.') | ||
.option('--save', 'save component(s) dependencies into `component.json` file.') | ||
.option('-r, --root <path>', 'set project root') | ||
@@ -140,2 +140,6 @@ .action(function() { | ||
[] | ||
.push | ||
.apply(settings.components, ret.devDependencies || []); | ||
ret.protocol && (settings.protocol = ret.protocol); | ||
@@ -262,3 +266,3 @@ ret.github && _.mixin(settings.github, ret.github); | ||
if (settings.save && args.length && installed && installed.length) { | ||
var config = settings.config; | ||
var config = settings.config || {}; | ||
var specified = strToRemote(args.concat()); | ||
@@ -265,0 +269,0 @@ |
@@ -29,2 +29,14 @@ var fs = require('fs'); | ||
if (json.devDependencies && !Array.isArray(json.devDependencies)) { | ||
var devDependencies = []; | ||
Object.keys(json.devDependencies).forEach(function(key) { | ||
var val = json.devDependencies[key]; | ||
devDependencies.push(key + '@' + val); | ||
}); | ||
json.devDependencies = devDependencies; | ||
} | ||
// load mapping js config. | ||
@@ -31,0 +43,0 @@ if (json.mapping) { |
{ | ||
"name": "fis-command-install", | ||
"description": "fis install command.", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"author": "FIS Team <fis@baidu.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "http://fis.baidu.com/", |
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
51460
1202