Comparing version 1.0.7 to 1.0.8
@@ -11,3 +11,3 @@ 'use strict'; | ||
var _crossSpawnAsync = require('cross-spawn-async'); | ||
var _crossSpawn = require('cross-spawn'); | ||
@@ -32,3 +32,3 @@ var _lodashAssign = require('lodash.assign'); | ||
if (command) { | ||
var proc = (0, _crossSpawnAsync.spawn)(command, commandArgs, { stdio: 'inherit', env: env }); | ||
var proc = (0, _crossSpawn.spawn)(command, commandArgs, { stdio: 'inherit', env: env }); | ||
proc.on('exit', process.exit); | ||
@@ -35,0 +35,0 @@ return proc; |
{ | ||
"name": "cross-env", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Run commands that set environment variables across platforms", | ||
@@ -11,3 +11,3 @@ "main": "src/index.js", | ||
"start": "npm run test:watch", | ||
"prebuild": "trash dist && mkdir dist", | ||
"prebuild": "rimraf dist && mkdir dist", | ||
"build": "cd src && babel index.js -d ../dist && cd ..", | ||
@@ -51,6 +51,6 @@ "commit": "git-cz", | ||
"proxyquire": "1.7.2", | ||
"rimraf": "^2.5.2", | ||
"semantic-release": "4.3.5", | ||
"sinon": "1.17.1", | ||
"sinon-chai": "2.8.0", | ||
"trash": "2.0.0", | ||
"validate-commit-msg": "1.0.0" | ||
@@ -67,5 +67,5 @@ }, | ||
"dependencies": { | ||
"cross-spawn-async": "2.0.0", | ||
"cross-spawn": "^3.0.1", | ||
"lodash.assign": "^3.2.0" | ||
} | ||
} | ||
} |
@@ -8,2 +8,3 @@ # cross-env | ||
[![Code Coverage](https://img.shields.io/codecov/c/github/kentcdodds/cross-env.svg?style=flat-square)](https://codecov.io/github/kentcdodds/cross-env) | ||
[![Donate][donate-badge]][donate] | ||
@@ -58,1 +59,4 @@ This micro-lib allows you to provide a script which sets an environment using unix style and have it work on windows too | ||
MIT | ||
[donate-badge]: https://img.shields.io/badge/$-support-green.svg?style=flat-square | ||
[donate]: http://kcd.im/donate |
@@ -1,2 +0,2 @@ | ||
import {spawn} from 'cross-spawn-async'; | ||
import {spawn} from 'cross-spawn'; | ||
import assign from 'lodash.assign'; | ||
@@ -3,0 +3,0 @@ export default crossEnv; |
@@ -12,3 +12,3 @@ import chai from 'chai'; | ||
const proxied = { | ||
'cross-spawn-async': { | ||
'cross-spawn': { | ||
spawn: sinon.spy(() => spawned) | ||
@@ -23,3 +23,3 @@ } | ||
beforeEach(() => { | ||
proxied['cross-spawn-async'].spawn.reset(); | ||
proxied['cross-spawn'].spawn.reset(); | ||
spawned.on.reset(); | ||
@@ -67,3 +67,3 @@ }); | ||
crossEnv([]); | ||
expect(proxied['cross-spawn-async'].spawn).to.have.not.been.called; | ||
expect(proxied['cross-spawn'].spawn).to.have.not.been.called; | ||
}); | ||
@@ -78,4 +78,4 @@ | ||
expect(ret, 'returns what spawn returns').to.equal(spawned); | ||
expect(proxied['cross-spawn-async'].spawn).to.have.been.calledOnce; | ||
expect(proxied['cross-spawn-async'].spawn).to.have.been.calledWith( | ||
expect(proxied['cross-spawn'].spawn).to.have.been.calledOnce; | ||
expect(proxied['cross-spawn'].spawn).to.have.been.calledWith( | ||
'echo', ['hello world'], { | ||
@@ -82,0 +82,0 @@ stdio: 'inherit', |
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
12912
61
+ Addedcross-spawn@^3.0.1
+ Addedcross-spawn@3.0.1(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedyallist@2.1.2(transitive)
- Removedcross-spawn-async@2.0.0
- Removedcross-spawn-async@2.0.0(transitive)
- Removedlru-cache@2.7.3(transitive)