uni-run 2.0.2 → 2.0.4

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/README.md CHANGED
@@ -97,7 +97,7 @@ Create `~/.uni-run.json` to override default runtimes:
97
97
 
98
98
  ```json
99
99
  {
100
- "$schema": "https://github.com/NazmusSayad/uni-run/raw/refs/heads/main/public/uni-run.schema.json",
100
+ "$schema": "https://github.com/NazmusSayad/uni-run/raw/refs/heads/schema/schema.json",
101
101
  "runtime": {
102
102
  "python": "uv",
103
103
  "javascript": "bun",
@@ -30714,7 +30714,10 @@ const runtimeSchema = object({
30714
30714
  ]),
30715
30715
  typescript: _enum([
30716
30716
  "tsx",
30717
+ "tsx.exe",
30717
30718
  "ts-node",
30719
+ "ts-node.exe",
30720
+ "node",
30718
30721
  "deno",
30719
30722
  "bun"
30720
30723
  ]),
@@ -30795,7 +30798,10 @@ const defaultRuntimes = [
30795
30798
  var _userConfig$runtime$t, _userConfig$runtime2;
30796
30799
  const runtime = (_userConfig$runtime$t = (_userConfig$runtime2 = readUserConfig().runtime) === null || _userConfig$runtime2 === void 0 ? void 0 : _userConfig$runtime2.typescript) !== null && _userConfig$runtime$t !== void 0 ? _userConfig$runtime$t : "tsx";
30797
30800
  if (runtime === "tsx") return { start: ["tsx", ...args] };
30801
+ if (runtime === "tsx.exe") return { start: ["tsx.exe", ...args] };
30798
30802
  if (runtime === "ts-node") return { start: ["ts-node", ...args] };
30803
+ if (runtime === "ts-node.exe") return { start: ["ts-node.exe", ...args] };
30804
+ if (runtime === "node") return { start: ["node", ...args] };
30799
30805
  if (runtime === "bun") return { start: [
30800
30806
  "bun",
30801
30807
  "run",
package/dist/run.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as resolveSharedConfigOptions, c as TEMP_DIR, d as init_objectSpread2, i as appExecutionConfig, l as source_default, n as defaultRuntimes, o as _asyncToGenerator, r as Execution, s as init_asyncToGenerator, t as app, u as _objectSpread2 } from "./app-CUPzTW0r.mjs";
2
+ import { a as resolveSharedConfigOptions, c as TEMP_DIR, d as init_objectSpread2, i as appExecutionConfig, l as source_default, n as defaultRuntimes, o as _asyncToGenerator, r as Execution, s as init_asyncToGenerator, t as app, u as _objectSpread2 } from "./app-By3amk6n.mjs";
3
3
  import fs from "fs";
4
4
  init_objectSpread2();
5
5
  init_asyncToGenerator();
package/dist/rux.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { f as setSystemRuntime, t as app } from "./app-CUPzTW0r.mjs";
2
+ import { f as setSystemRuntime, t as app } from "./app-By3amk6n.mjs";
3
3
  setSystemRuntime("rux");
4
4
  app.start(process.argv.slice(2));
5
5
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uni-run",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "scripts": {
5
5
  "test": "vitest run",
6
6
  "test:watch": "vitest",