uni-run 1.1.5 → 1.1.6

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.
package/dist/output.exe CHANGED
Binary file
@@ -219,7 +219,7 @@ exports.default = (0, as_1.default)([
219
219
  getRuntime([script, ...args], options, config) {
220
220
  return {
221
221
  compile: ['mcs', script, '-out:dist/output.exe'],
222
- exec: ['./dist/output'],
222
+ exec: ['./dist/output', ...args],
223
223
  install: {
224
224
  check: ['mcs', '--version'],
225
225
  hints: ['Please install Mono from https://www.mono-project.com'],
@@ -227,6 +227,20 @@ exports.default = (0, as_1.default)([
227
227
  };
228
228
  },
229
229
  },
230
+ {
231
+ name: 'Rust - rustc',
232
+ exts: ['rs'],
233
+ getRuntime([script, ...args], options, config) {
234
+ return {
235
+ compile: ['rustc', script, '-o', 'dist/output'],
236
+ exec: ['./dist/output', ...args],
237
+ install: {
238
+ check: ['rustc', '--version'],
239
+ hints: ['Please install Rust from https://www.rust-lang.org'],
240
+ },
241
+ };
242
+ },
243
+ },
230
244
  {
231
245
  name: 'SASS (CSS)',
232
246
  exts: ['sass', 'scss'],
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "uni-run",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Universal Runner for many language",
5
5
  "type": "commonjs",
6
6
  "scripts": {
7
7
  "build": "tsc",
8
8
  "dev": "tsc --watch",
9
9
  "tsc": "tsc --watch --noEmit",
10
- "live": "node --watch ./dist/__lab__/index.js",
10
+ "live": "node ./dist/__lab__/index.js",
11
+ "tsx": "tsx --watch ./src/__lab__/index.ts",
11
12
  "lab": "run ./src/__lab__/index.ts --focus ./src"
12
13
  },
13
14
  "main": "./dist/index.js",