bdy 1.15.0-dev → 1.15.1-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.15.0-dev",
4
+ "version": "1.15.1-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -161,8 +161,14 @@ class ServerSsh extends events_1.default {
161
161
  localExec(stream, command, env) {
162
162
  const s = process.hrtime();
163
163
  const opts = {};
164
- if (env)
165
- opts.env = env;
164
+ opts.env = process.env || {};
165
+ if (env) {
166
+ Object.keys(env).forEach((key) => {
167
+ if (!opts.env)
168
+ opts.env = {};
169
+ opts.env[key] = env[key];
170
+ });
171
+ }
166
172
  if ((0, utils_1.isWindows)()) {
167
173
  opts.shell = 'powershell.exe';
168
174
  if (!opts.env)
@@ -172,6 +178,8 @@ class ServerSsh extends events_1.default {
172
178
  else
173
179
  opts.env.PATH = `${process.env.PATH};C:\\Windows\\System32\\WindowsPowerShell\\v1.0`;
174
180
  }
181
+ logger_1.default.info(command);
182
+ logger_1.default.info(opts);
175
183
  (0, child_process_1.exec)(command, opts, (err, stdout, stderr) => {
176
184
  if (stream) {
177
185
  stream.stderr.write(stderr);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.15.0-dev",
4
+ "version": "1.15.1-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {