react-native-cli
Advanced tools
Comparing version 0.1.8 to 0.1.9
10
index.js
@@ -45,2 +45,3 @@ #!/usr/bin/env node | ||
var semver = require('semver'); | ||
var os = require('os'); | ||
@@ -202,3 +203,10 @@ var CLI_MODULE_PATH = function() { | ||
} | ||
var proc = spawn('npm', args, spawnArgs); | ||
var proc; | ||
if (/^win/.test(process.platform)) { | ||
args.unshift('npm'); | ||
args.unshift('/c'); | ||
proc = spawn('cmd', args, spawnArgs); | ||
} else { | ||
proc = spawn('npm', args, spawnArgs); | ||
} | ||
proc.on('close', function (code) { | ||
@@ -205,0 +213,0 @@ if (code !== 0) { |
{ | ||
"name": "react-native-cli", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"license" : "BSD-3-Clause", | ||
@@ -5,0 +5,0 @@ "description": "The React Native CLI tools", |
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
11367
221