@simon_he/pi 0.0.59 → 0.0.61
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/index.cjs +6 -4
- package/dist/index.js +6 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -6451,7 +6451,7 @@ async function getStyle() {
|
|
|
6451
6451
|
var import_lazy_js_utils2 = require("lazy-js-utils");
|
|
6452
6452
|
|
|
6453
6453
|
// package.json
|
|
6454
|
-
var version = "0.0.
|
|
6454
|
+
var version = "0.0.61";
|
|
6455
6455
|
|
|
6456
6456
|
// src/help.ts
|
|
6457
6457
|
var isZh2 = process.env.PI_Lang === "zh";
|
|
@@ -6507,6 +6507,7 @@ async function pi(params, pkg, executor = "ni") {
|
|
|
6507
6507
|
loading_status = await loading(text);
|
|
6508
6508
|
} else {
|
|
6509
6509
|
stdio = "inherit";
|
|
6510
|
+
executor = "ni";
|
|
6510
6511
|
}
|
|
6511
6512
|
} else {
|
|
6512
6513
|
executor = `${pkgTool} ${install}`;
|
|
@@ -6567,7 +6568,7 @@ async function pil(params) {
|
|
|
6567
6568
|
return "";
|
|
6568
6569
|
});
|
|
6569
6570
|
const command = `${latestPkgname}${suffix}`;
|
|
6570
|
-
return pi(command, command, "pil");
|
|
6571
|
+
return await pi(command, command, "pil");
|
|
6571
6572
|
}
|
|
6572
6573
|
function addLatest(params) {
|
|
6573
6574
|
return params.replace(/\s+/g, " ").trim().split(" ").map((item) => {
|
|
@@ -6632,11 +6633,12 @@ async function pui(params, pkg) {
|
|
|
6632
6633
|
process.exit(1);
|
|
6633
6634
|
}
|
|
6634
6635
|
const loading_status = await loading(text);
|
|
6635
|
-
const { status } = await (0, import_lazy_js_utils11.useNodeWorker)(`nun ${params}`);
|
|
6636
|
+
const { status, result } = await (0, import_lazy_js_utils11.useNodeWorker)(`nun ${params}`);
|
|
6636
6637
|
if (status === 0)
|
|
6637
6638
|
loading_status.succeed(import_picocolors3.default.green(successMsg));
|
|
6638
6639
|
else
|
|
6639
|
-
loading_status.fail(import_picocolors3.default.red(failMsg
|
|
6640
|
+
loading_status.fail(import_picocolors3.default.red(result ? `${failMsg}
|
|
6641
|
+
${result}` : failMsg));
|
|
6640
6642
|
process.exit();
|
|
6641
6643
|
}
|
|
6642
6644
|
|
package/dist/index.js
CHANGED
|
@@ -6455,7 +6455,7 @@ async function getStyle() {
|
|
|
6455
6455
|
import { jsShell } from "lazy-js-utils";
|
|
6456
6456
|
|
|
6457
6457
|
// package.json
|
|
6458
|
-
var version = "0.0.
|
|
6458
|
+
var version = "0.0.61";
|
|
6459
6459
|
|
|
6460
6460
|
// src/help.ts
|
|
6461
6461
|
var isZh2 = process.env.PI_Lang === "zh";
|
|
@@ -6511,6 +6511,7 @@ async function pi(params, pkg, executor = "ni") {
|
|
|
6511
6511
|
loading_status = await loading(text);
|
|
6512
6512
|
} else {
|
|
6513
6513
|
stdio = "inherit";
|
|
6514
|
+
executor = "ni";
|
|
6514
6515
|
}
|
|
6515
6516
|
} else {
|
|
6516
6517
|
executor = `${pkgTool} ${install}`;
|
|
@@ -6571,7 +6572,7 @@ async function pil(params) {
|
|
|
6571
6572
|
return "";
|
|
6572
6573
|
});
|
|
6573
6574
|
const command = `${latestPkgname}${suffix}`;
|
|
6574
|
-
return pi(command, command, "pil");
|
|
6575
|
+
return await pi(command, command, "pil");
|
|
6575
6576
|
}
|
|
6576
6577
|
function addLatest(params) {
|
|
6577
6578
|
return params.replace(/\s+/g, " ").trim().split(" ").map((item) => {
|
|
@@ -6636,11 +6637,12 @@ async function pui(params, pkg) {
|
|
|
6636
6637
|
process.exit(1);
|
|
6637
6638
|
}
|
|
6638
6639
|
const loading_status = await loading(text);
|
|
6639
|
-
const { status } = await useNodeWorker2(`nun ${params}`);
|
|
6640
|
+
const { status, result } = await useNodeWorker2(`nun ${params}`);
|
|
6640
6641
|
if (status === 0)
|
|
6641
6642
|
loading_status.succeed(import_picocolors3.default.green(successMsg));
|
|
6642
6643
|
else
|
|
6643
|
-
loading_status.fail(import_picocolors3.default.red(failMsg
|
|
6644
|
+
loading_status.fail(import_picocolors3.default.red(result ? `${failMsg}
|
|
6645
|
+
${result}` : failMsg));
|
|
6644
6646
|
process.exit();
|
|
6645
6647
|
}
|
|
6646
6648
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simon_he/pi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.61",
|
|
5
5
|
"packageManager": "pnpm@7.26.1",
|
|
6
6
|
"description": "",
|
|
7
7
|
"author": "Simon He",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"build": "^0.1.4",
|
|
67
67
|
"fast-glob": "^3.2.12",
|
|
68
|
-
"lazy-js-utils": "^0.0.
|
|
68
|
+
"lazy-js-utils": "^0.0.55"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@antfu/eslint-config": "^0.34.0",
|