Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
var _ = require('lodash'); | ||
var os = require('os'); | ||
var cp = require('child_process'); | ||
@@ -16,2 +17,12 @@ var Promise = require('bluebird'); | ||
function getStdio() { | ||
// https://github.com/cypress-io/cypress/issues/717 | ||
// need to switch this else windows crashes | ||
if (os.platform() === 'win32') { | ||
return ['inherit', 'pipe', 'pipe']; | ||
} | ||
return ['inherit', 'inherit', 'ignore']; | ||
} | ||
module.exports = { | ||
@@ -25,3 +36,3 @@ start: function start(args) { | ||
detached: false, | ||
stdio: ['inherit', 'pipe', 'pipe'] | ||
stdio: getStdio() | ||
}); | ||
@@ -39,4 +50,5 @@ | ||
child.stdout.pipe(process.stdout); | ||
child.stderr.pipe(devNull()); | ||
// if these are defined then we manually pipe for windows | ||
child.stdout && child.stdout.pipe(process.stdout); | ||
child.stderr && child.stderr.pipe(devNull()); | ||
@@ -43,0 +55,0 @@ if (options.detached) { |
{ | ||
"name": "cypress", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
54803
1280