uni-run 2.0.1 → 2.0.2
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/{app-BZaoTGMC.mjs → app-CUPzTW0r.mjs} +58 -11
- package/dist/run.mjs +1 -1
- package/dist/rux.mjs +1 -1
- package/package.json +1 -1
|
@@ -30718,7 +30718,11 @@ const runtimeSchema = object({
|
|
|
30718
30718
|
"deno",
|
|
30719
30719
|
"bun"
|
|
30720
30720
|
]),
|
|
30721
|
-
dart: _enum([
|
|
30721
|
+
dart: _enum([
|
|
30722
|
+
"fvm",
|
|
30723
|
+
"dart",
|
|
30724
|
+
"dartvm"
|
|
30725
|
+
]),
|
|
30722
30726
|
powershell: _enum(["powershell", "pwsh"]),
|
|
30723
30727
|
shell: _enum([
|
|
30724
30728
|
"bash",
|
|
@@ -30760,7 +30764,19 @@ const defaultRuntimes = [
|
|
|
30760
30764
|
parse(args) {
|
|
30761
30765
|
return _asyncToGenerator(function* () {
|
|
30762
30766
|
var _userConfig$runtime$j, _userConfig$runtime;
|
|
30763
|
-
|
|
30767
|
+
const runtime = (_userConfig$runtime$j = (_userConfig$runtime = readUserConfig().runtime) === null || _userConfig$runtime === void 0 ? void 0 : _userConfig$runtime.javascript) !== null && _userConfig$runtime$j !== void 0 ? _userConfig$runtime$j : "node";
|
|
30768
|
+
if (runtime === "node") return { start: ["node", ...args] };
|
|
30769
|
+
if (runtime === "bun") return { start: [
|
|
30770
|
+
"bun",
|
|
30771
|
+
"run",
|
|
30772
|
+
...args
|
|
30773
|
+
] };
|
|
30774
|
+
if (runtime === "deno") return { start: [
|
|
30775
|
+
"deno",
|
|
30776
|
+
"run",
|
|
30777
|
+
...args
|
|
30778
|
+
] };
|
|
30779
|
+
throw new Error(`Unsupported JavaScript runtime: ${runtime}`);
|
|
30764
30780
|
})();
|
|
30765
30781
|
}
|
|
30766
30782
|
},
|
|
@@ -30777,7 +30793,20 @@ const defaultRuntimes = [
|
|
|
30777
30793
|
parse(args) {
|
|
30778
30794
|
return _asyncToGenerator(function* () {
|
|
30779
30795
|
var _userConfig$runtime$t, _userConfig$runtime2;
|
|
30780
|
-
|
|
30796
|
+
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
|
+
if (runtime === "tsx") return { start: ["tsx", ...args] };
|
|
30798
|
+
if (runtime === "ts-node") return { start: ["ts-node", ...args] };
|
|
30799
|
+
if (runtime === "bun") return { start: [
|
|
30800
|
+
"bun",
|
|
30801
|
+
"run",
|
|
30802
|
+
...args
|
|
30803
|
+
] };
|
|
30804
|
+
if (runtime === "deno") return { start: [
|
|
30805
|
+
"deno",
|
|
30806
|
+
"run",
|
|
30807
|
+
...args
|
|
30808
|
+
] };
|
|
30809
|
+
throw new Error(`Unsupported TypeScript runtime: ${runtime}`);
|
|
30781
30810
|
})();
|
|
30782
30811
|
}
|
|
30783
30812
|
},
|
|
@@ -30788,12 +30817,14 @@ const defaultRuntimes = [
|
|
|
30788
30817
|
return _asyncToGenerator(function* () {
|
|
30789
30818
|
var _userConfig$runtime$p, _userConfig$runtime3;
|
|
30790
30819
|
const runtime = (_userConfig$runtime$p = (_userConfig$runtime3 = readUserConfig().runtime) === null || _userConfig$runtime3 === void 0 ? void 0 : _userConfig$runtime3.python) !== null && _userConfig$runtime$p !== void 0 ? _userConfig$runtime$p : "python";
|
|
30791
|
-
|
|
30820
|
+
if (runtime === "python" || runtime === "python3") return { start: [runtime, ...args] };
|
|
30821
|
+
if (runtime === "uv") return { start: [
|
|
30792
30822
|
"uv",
|
|
30793
30823
|
"run",
|
|
30794
30824
|
"python",
|
|
30795
30825
|
...args
|
|
30796
|
-
]
|
|
30826
|
+
] };
|
|
30827
|
+
throw new Error(`Unsupported Python runtime: ${runtime}`);
|
|
30797
30828
|
})();
|
|
30798
30829
|
}
|
|
30799
30830
|
},
|
|
@@ -30813,11 +30844,19 @@ const defaultRuntimes = [
|
|
|
30813
30844
|
return _asyncToGenerator(function* () {
|
|
30814
30845
|
var _userConfig$runtime$d, _userConfig$runtime4;
|
|
30815
30846
|
const runtime = (_userConfig$runtime$d = (_userConfig$runtime4 = readUserConfig().runtime) === null || _userConfig$runtime4 === void 0 ? void 0 : _userConfig$runtime4.dart) !== null && _userConfig$runtime$d !== void 0 ? _userConfig$runtime$d : "dart";
|
|
30816
|
-
|
|
30847
|
+
if (runtime === "fvm") return { start: [
|
|
30848
|
+
"fvm",
|
|
30849
|
+
"dart",
|
|
30850
|
+
"run",
|
|
30851
|
+
...args
|
|
30852
|
+
] };
|
|
30853
|
+
if (runtime === "dart") return { start: [
|
|
30817
30854
|
"dart",
|
|
30818
30855
|
"run",
|
|
30819
30856
|
...args
|
|
30820
|
-
]
|
|
30857
|
+
] };
|
|
30858
|
+
if (runtime === "dartvm") return { start: ["dartvm", ...args] };
|
|
30859
|
+
throw new Error(`Unsupported Dart runtime: ${runtime}`);
|
|
30821
30860
|
})();
|
|
30822
30861
|
}
|
|
30823
30862
|
},
|
|
@@ -30827,11 +30866,13 @@ const defaultRuntimes = [
|
|
|
30827
30866
|
parse(args) {
|
|
30828
30867
|
return _asyncToGenerator(function* () {
|
|
30829
30868
|
var _userConfig$runtime$p2, _userConfig$runtime5;
|
|
30830
|
-
|
|
30831
|
-
|
|
30869
|
+
const runtime = (_userConfig$runtime$p2 = (_userConfig$runtime5 = readUserConfig().runtime) === null || _userConfig$runtime5 === void 0 ? void 0 : _userConfig$runtime5.powershell) !== null && _userConfig$runtime$p2 !== void 0 ? _userConfig$runtime$p2 : "powershell";
|
|
30870
|
+
if (runtime === "powershell" || runtime === "pwsh") return { start: [
|
|
30871
|
+
runtime,
|
|
30832
30872
|
"-File",
|
|
30833
30873
|
...args
|
|
30834
30874
|
] };
|
|
30875
|
+
throw new Error(`Unsupported PowerShell runtime: ${runtime}`);
|
|
30835
30876
|
})();
|
|
30836
30877
|
}
|
|
30837
30878
|
},
|
|
@@ -30854,7 +30895,9 @@ const defaultRuntimes = [
|
|
|
30854
30895
|
parse(args) {
|
|
30855
30896
|
return _asyncToGenerator(function* () {
|
|
30856
30897
|
var _userConfig$runtime$s, _userConfig$runtime6;
|
|
30857
|
-
|
|
30898
|
+
const shell = (_userConfig$runtime$s = (_userConfig$runtime6 = readUserConfig().runtime) === null || _userConfig$runtime6 === void 0 ? void 0 : _userConfig$runtime6.shell) !== null && _userConfig$runtime$s !== void 0 ? _userConfig$runtime$s : "bash";
|
|
30899
|
+
if (shell === "bash" || shell === "zsh" || shell === "sh") return { start: [shell, ...args] };
|
|
30900
|
+
throw new Error(`Unsupported shell: ${shell}`);
|
|
30858
30901
|
})();
|
|
30859
30902
|
}
|
|
30860
30903
|
},
|
|
@@ -30873,7 +30916,11 @@ const defaultRuntimes = [
|
|
|
30873
30916
|
parse(args) {
|
|
30874
30917
|
return _asyncToGenerator(function* () {
|
|
30875
30918
|
var _userConfig$runtime$l, _userConfig$runtime7;
|
|
30876
|
-
|
|
30919
|
+
const runtime = (_userConfig$runtime$l = (_userConfig$runtime7 = readUserConfig().runtime) === null || _userConfig$runtime7 === void 0 ? void 0 : _userConfig$runtime7.lua) !== null && _userConfig$runtime$l !== void 0 ? _userConfig$runtime$l : "lua";
|
|
30920
|
+
if (runtime === "lua") return { start: ["lua", ...args] };
|
|
30921
|
+
if (runtime === "luajit") return { start: ["luajit", ...args] };
|
|
30922
|
+
if (runtime === "luac") return { start: ["luac", ...args] };
|
|
30923
|
+
throw new Error(`Unsupported Lua runtime: ${runtime}`);
|
|
30877
30924
|
})();
|
|
30878
30925
|
}
|
|
30879
30926
|
},
|
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-
|
|
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";
|
|
3
3
|
import fs from "fs";
|
|
4
4
|
init_objectSpread2();
|
|
5
5
|
init_asyncToGenerator();
|
package/dist/rux.mjs
CHANGED