Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

Commit

Permalink
fix(deps): Swap lodash.assign for Object.assign. (#29)
Browse files Browse the repository at this point in the history
Closes #28

BREAKING CHANGE: Uses native Object.assign. This package no longer supports < Node v4
  • Loading branch information
wtgtybhertgeghgtwtg authored and Kent C. Dodds committed Sep 24, 2016
1 parent 9976b5e commit f2275d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
}
},
"dependencies": {
"cross-spawn": "^3.0.1",
"lodash.assign": "^3.2.0"
"cross-spawn": "^3.0.1"
}
}
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {spawn} from 'cross-spawn';
import assign from 'lodash.assign';
export default crossEnv;

const envSetterRegex = /(\w+)=('(.+)'|"(.+)"|(.+))/;
Expand All @@ -16,7 +15,7 @@ function crossEnv(args) {

function getCommandArgsAndEnvVars(args) { // eslint-disable-line
let command;
const envVars = assign({}, process.env);
const envVars = Object.assign({}, process.env);
const commandArgs = args.slice();
while (commandArgs.length) {
const shifted = commandArgs.shift();
Expand Down

2 comments on commit f2275d5

@jdalton
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ‘

@kentcdodds
Copy link
Owner

@kentcdodds kentcdodds commented on f2275d5 Sep 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4ad68cc50e9d3a06e378caa6a46077b7

πŸ˜†

Please sign in to comment.