famous-cli
Advanced tools
Comparing version 0.2.10 to 0.2.11
@@ -73,3 +73,2 @@ 'use strict'; | ||
var autoupdate = function (callback) { | ||
return callback(); | ||
var current = pkg.version; | ||
@@ -86,3 +85,3 @@ | ||
} | ||
if (current < version) { | ||
if (current !== version) { | ||
console.log(chalk.bold('Famous'), 'CLI version', current, 'is out of date.', 'Updating to', version); | ||
@@ -89,0 +88,0 @@ return update(callback); |
@@ -11,5 +11,4 @@ 'use strict'; | ||
var runDev = function() { | ||
var dev = spawn('npm', ['run', 'dev']); | ||
dev.stdout.pipe(process.stdout); | ||
dev.stderr.pipe(process.stderr); | ||
var dev = spawn('npm', ['run', 'dev'], {stdio:'inherit'}); | ||
dev.on('close', function (code) { | ||
@@ -16,0 +15,0 @@ console.log('child process exited with code ' + code); |
@@ -11,7 +11,3 @@ 'use strict'; | ||
npm.runBuild = function runBuild(data, callback) { | ||
var build = spawn('npm', ['run', 'build']); | ||
build.stdout.pipe(process.stdout); | ||
build.stderr.pipe(process.stderr); | ||
var build = spawn('npm', ['run', 'build'], {stdio:'inherit'}); | ||
build.on('close', function (code) { | ||
@@ -32,5 +28,3 @@ if (code !== 0) { | ||
console.log(chalk.bold.yellow('Node Modules not yet installed, attempting to do so now.')); | ||
var install = spawn('npm', ['install']); | ||
install.stdout.pipe(process.stdout); | ||
install.stderr.pipe(process.stderr); | ||
var install = spawn('npm', ['install'], {stdio:'inherit'}); | ||
install.on('close', function (code) { | ||
@@ -37,0 +31,0 @@ if (code !== 0) { |
{ | ||
"name": "famous-cli", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"description": "CLI interface for Famous Industries Web Services", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
75276
1554