uni-run 2.0.4 → 2.0.5

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.
@@ -30703,9 +30703,11 @@ config(en_default());
30703
30703
  const USER_CONFIG_PATH = path.join(os$1.homedir(), ".uni-run.json");
30704
30704
  const runtimeSchema = object({
30705
30705
  python: _enum([
30706
- "python",
30707
30706
  "python3",
30708
- "uv"
30707
+ "python",
30708
+ "uv",
30709
+ "mise-python",
30710
+ "mise-uv"
30709
30711
  ]),
30710
30712
  javascript: _enum([
30711
30713
  "node",
@@ -30714,9 +30716,9 @@ const runtimeSchema = object({
30714
30716
  ]),
30715
30717
  typescript: _enum([
30716
30718
  "tsx",
30717
- "tsx.exe",
30719
+ "mise-tsx",
30718
30720
  "ts-node",
30719
- "ts-node.exe",
30721
+ "mise-ts-node",
30720
30722
  "node",
30721
30723
  "deno",
30722
30724
  "bun"
@@ -30798,9 +30800,21 @@ const defaultRuntimes = [
30798
30800
  var _userConfig$runtime$t, _userConfig$runtime2;
30799
30801
  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";
30800
30802
  if (runtime === "tsx") return { start: ["tsx", ...args] };
30801
- if (runtime === "tsx.exe") return { start: ["tsx.exe", ...args] };
30803
+ if (runtime === "mise-tsx") return { start: [
30804
+ "mise",
30805
+ "exec",
30806
+ "--",
30807
+ "tsx",
30808
+ ...args
30809
+ ] };
30802
30810
  if (runtime === "ts-node") return { start: ["ts-node", ...args] };
30803
- if (runtime === "ts-node.exe") return { start: ["ts-node.exe", ...args] };
30811
+ if (runtime === "mise-ts-node") return { start: [
30812
+ "mise",
30813
+ "exec",
30814
+ "--",
30815
+ "ts-node",
30816
+ ...args
30817
+ ] };
30804
30818
  if (runtime === "node") return { start: ["node", ...args] };
30805
30819
  if (runtime === "bun") return { start: [
30806
30820
  "bun",
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-By3amk6n.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-BQxau7W0.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-By3amk6n.mjs";
2
+ import { f as setSystemRuntime, t as app } from "./app-BQxau7W0.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.4",
3
+ "version": "2.0.5",
4
4
  "scripts": {
5
5
  "test": "vitest run",
6
6
  "test:watch": "vitest",