uni-run 1.0.10 → 1.0.12

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.
@@ -71,7 +71,7 @@ exports.default = [
71
71
  }),
72
72
  new Executor_1.default('Lua', {
73
73
  extensions: ['lua'],
74
- checkInstallation: ['lua', '--version'],
74
+ checkInstallation: ['lua', '-v'],
75
75
  installMessage: 'Please install Lua from https://www.lua.org',
76
76
  run(args) {
77
77
  return ['lua', ...args];
@@ -66,7 +66,7 @@ export default [
66
66
  }),
67
67
  new Executor('Lua', {
68
68
  extensions: ['lua'],
69
- checkInstallation: ['lua', '--version'],
69
+ checkInstallation: ['lua', '-v'],
70
70
  installMessage: 'Please install Lua from https://www.lua.org',
71
71
  run(args) {
72
72
  return ['lua', ...args];
@@ -84,7 +84,7 @@ class Execution {
84
84
  argv0: this.command,
85
85
  cwd: this.options.cwd,
86
86
  shell: this.options.shell,
87
- env: Object.assign({}, this.options.env),
87
+ env: Object.assign(Object.assign({}, process.env), this.options.env),
88
88
  stdio: this.options.silent ? 'ignore' : 'inherit',
89
89
  });
90
90
  this.child.on('exit', (code) => {
@@ -56,7 +56,7 @@ export default class Execution {
56
56
  argv0: this.command,
57
57
  cwd: this.options.cwd,
58
58
  shell: this.options.shell,
59
- env: Object.assign({}, this.options.env),
59
+ env: Object.assign(Object.assign({}, process.env), this.options.env),
60
60
  stdio: this.options.silent ? 'ignore' : 'inherit',
61
61
  });
62
62
  this.child.on('exit', (code) => {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "uni-run",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Universal Runner for many language",
5
5
  "scripts": {
6
6
  "dev": "npmize dev",
7
7
  "build": "npmize build",
8
8
  "tsc": "tsc --watch --noEmit",
9
- "cjs": "node ./dist/__lab__/index.cjs",
10
- "mjs": "node ./dist/__lab__/index.mjs",
9
+ "cjs": "node --watch ./dist/__lab__/index.cjs",
10
+ "mjs": "node --watch ./dist/__lab__/index.mjs",
11
11
  "lab": "run ./src/__lab__/index.ts --focus ./src"
12
12
  },
13
13
  "main": "./dist/index.cjs",