uni-run 2.0.0 → 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-IwNLL71t.mjs → app-CUPzTW0r.mjs} +3435 -548
- package/dist/run.mjs +25 -3
- package/dist/rux.mjs +1 -3
- package/package.json +22 -3
- package/dist/app-31LC_vYS.js +0 -28304
- package/dist/app-31LC_vYS.js.map +0 -1
- package/dist/app-IwNLL71t.mjs.map +0 -1
- package/dist/run.cjs +0 -5
- package/dist/run.cjs.map +0 -1
- package/dist/run.d.cts +0 -1
- package/dist/run.d.mts +0 -1
- package/dist/run.mjs.map +0 -1
- package/dist/rux.cjs +0 -6
- package/dist/rux.cjs.map +0 -1
- package/dist/rux.d.cts +0 -1
- package/dist/rux.d.mts +0 -1
- package/dist/rux.mjs.map +0 -1
package/dist/run.mjs
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as app } 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
|
+
import fs from "fs";
|
|
4
|
+
init_objectSpread2();
|
|
5
|
+
init_asyncToGenerator();
|
|
6
|
+
const exec = app.create("exec", _objectSpread2(_objectSpread2({}, appExecutionConfig), {}, { description: "Execute a script with the given binary" }));
|
|
7
|
+
const clean = app.create("clean", { description: "Clean cache directory" });
|
|
8
|
+
const list = app.create("list", { description: "List supported scripts" });
|
|
9
|
+
exec.on(function() {
|
|
10
|
+
var _ref = _asyncToGenerator(function* ([listArs, trailingArgs], flags) {
|
|
11
|
+
yield new Execution(_objectSpread2(_objectSpread2({}, resolveSharedConfigOptions(flags)), {}, { startArgs: [...listArs, ...trailingArgs] })).start();
|
|
12
|
+
});
|
|
13
|
+
return function(_x, _x2) {
|
|
14
|
+
return _ref.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
}());
|
|
17
|
+
clean.on(_asyncToGenerator(function* () {
|
|
18
|
+
if (fs.existsSync(TEMP_DIR)) fs.rmSync(TEMP_DIR, { recursive: true });
|
|
19
|
+
console.log(source_default.green("Cache directory cleaned:"), TEMP_DIR);
|
|
20
|
+
}));
|
|
21
|
+
list.on(_asyncToGenerator(function* () {
|
|
22
|
+
console.log(source_default.bold("Built-in scripts:"));
|
|
23
|
+
defaultRuntimes.forEach((runtime) => {
|
|
24
|
+
console.log(`- ${source_default.cyan(runtime.name)}`, `[${runtime.extensions.map((e) => "." + source_default.green(e)).join(", ")}]`);
|
|
25
|
+
});
|
|
26
|
+
}));
|
|
3
27
|
app.start(process.argv.slice(2));
|
|
4
28
|
export {};
|
|
5
|
-
|
|
6
|
-
//# sourceMappingURL=run.mjs.map
|
package/dist/rux.mjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { f as setSystemRuntime, t as app } from "./app-CUPzTW0r.mjs";
|
|
3
3
|
setSystemRuntime("rux");
|
|
4
4
|
app.start(process.argv.slice(2));
|
|
5
5
|
export {};
|
|
6
|
-
|
|
7
|
-
//# sourceMappingURL=rux.mjs.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "uni-run",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"sideEffects": false,
|
|
3
|
+
"version": "2.0.2",
|
|
5
4
|
"scripts": {
|
|
6
5
|
"test": "vitest run",
|
|
7
6
|
"test:watch": "vitest",
|
|
@@ -60,5 +59,25 @@
|
|
|
60
59
|
"typescript-eslint": "^8.56.1",
|
|
61
60
|
"vitest": "^4.0.18",
|
|
62
61
|
"zod": "^4.3.6"
|
|
63
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"author": {
|
|
64
|
+
"name": "Nazmus Sayad",
|
|
65
|
+
"url": "https://github.com/NazmusSayad"
|
|
66
|
+
},
|
|
67
|
+
"homepage": "https://github.com/NazmusSayad/uni-run",
|
|
68
|
+
"bugs": {
|
|
69
|
+
"url": "https://github.com/NazmusSayad/uni-run/issues"
|
|
70
|
+
},
|
|
71
|
+
"repository": {
|
|
72
|
+
"type": "git",
|
|
73
|
+
"url": "https://github.com/NazmusSayad/uni-run.git"
|
|
74
|
+
},
|
|
75
|
+
"keywords": [
|
|
76
|
+
"run",
|
|
77
|
+
"runner",
|
|
78
|
+
"script",
|
|
79
|
+
"runner",
|
|
80
|
+
"cli"
|
|
81
|
+
],
|
|
82
|
+
"license": "MIT"
|
|
64
83
|
}
|