From 3597643a14b05d44324338f7f068785f08282443 Mon Sep 17 00:00:00 2001 From: steelbrain Date: Mon, 11 Jan 2016 10:06:18 -0500 Subject: [PATCH 1/3] :bug: Do not modify process.env --- src/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.js b/src/helpers.js index cdc004d..d13ebbe 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -19,7 +19,7 @@ const assign = Object.assign || function(target, source) { function _exec(command, args, opts, isNode) { const options = assign({ - env: process.env, + env: assign({}, process.env), stream: 'stdout', throwOnStdErr: true }, opts) From 8fabf9ed1d0c571c3a7a626da8d21f958f8085a5 Mon Sep 17 00:00:00 2001 From: steelbrain Date: Mon, 11 Jan 2016 10:22:38 -0500 Subject: [PATCH 2/3] :arrow_up: Upgrade dist file --- lib/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers.js b/lib/helpers.js index 06c4016..47f3bef 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -47,7 +47,7 @@ const assign = Object.assign || function (target, source) { function _exec(command, args, opts, isNode) { const options = assign({ - env: process.env, + env: assign({}, process.env), stream: 'stdout', throwOnStdErr: true }, opts); From 60c39423c31790e4a5c1d4517b101aa1181f4c79 Mon Sep 17 00:00:00 2001 From: steelbrain Date: Mon, 11 Jan 2016 10:23:33 -0500 Subject: [PATCH 3/3] :memo: Document change in CHANGELOG --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac4d5ce..7c55202 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### Upcoming + +* Fix a bug where linter execution modifies `process.env` + ### 4.3.1 * Remove `createElement` helper, reason is nobody was using it (according to GitHub code search)