@0x-jerry/x 2.5.0 → 2.5.1
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/xr.js +9 -2
- package/package.json +3 -3
package/dist/xr.js
CHANGED
|
@@ -8,6 +8,7 @@ import { sliver } from "@0x-jerry/silver";
|
|
|
8
8
|
|
|
9
9
|
// src/commands/run.ts
|
|
10
10
|
import path4 from "path";
|
|
11
|
+
import pc from "picocolors";
|
|
11
12
|
|
|
12
13
|
// src/commands/run/node.ts
|
|
13
14
|
import { pathExists } from "fs-extra";
|
|
@@ -107,11 +108,17 @@ async function runScript(command, params = []) {
|
|
|
107
108
|
if (task) {
|
|
108
109
|
const env = makeEnv(await taskDetector.binaryPaths?.(cwd) || []);
|
|
109
110
|
await exec(task, params, env);
|
|
110
|
-
|
|
111
|
+
return;
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
|
-
|
|
115
|
+
const allScripts = await getAvailableCommands();
|
|
116
|
+
console.log(
|
|
117
|
+
pc.red("["),
|
|
118
|
+
pc.cyan(`${command}`),
|
|
119
|
+
pc.red("] not exists in the list: "),
|
|
120
|
+
allScripts.map((name) => pc.cyan(name)).join(", ")
|
|
121
|
+
);
|
|
115
122
|
}
|
|
116
123
|
function makeEnv(extraPaths) {
|
|
117
124
|
const env = process.env;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0x-jerry/x",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/0x-jerry/x.git"
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"dev:xr": "tsx src/xr.ts",
|
|
26
26
|
"dev:xn": "tsx src/xn.ts",
|
|
27
27
|
"dev:x": "tsx src/x.ts",
|
|
28
|
-
"test": "vitest",
|
|
29
|
-
"
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"test:watch": "vitest",
|
|
30
30
|
"prepublishOnly": "npm run build",
|
|
31
31
|
"release": "x-release"
|
|
32
32
|
},
|