@simon_he/pi 0.0.60 → 0.0.62

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 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.60";
6454
+ var version = "0.0.62";
6455
6455
 
6456
6456
  // src/help.ts
6457
6457
  var isZh2 = process.env.PI_Lang === "zh";
@@ -6531,7 +6531,7 @@ ${_result}` : failMsg));
6531
6531
  ${result}` : failMsg));
6532
6532
  }
6533
6533
  if (result) {
6534
- const reg = / No matching version found for ([\w\-\_@\^.]+)/;
6534
+ const reg = /ERR_PNPM_NO_MATCHING_VERSION_INSIDE_WORKSPACE  In : No matching version found for ([\w\-\_@\^.]+) inside the workspace/;
6535
6535
  const match = result.match(reg);
6536
6536
  if (match) {
6537
6537
  const dep = match[1];
@@ -6568,7 +6568,6 @@ async function pil(params) {
6568
6568
  return "";
6569
6569
  });
6570
6570
  const command = `${latestPkgname}${suffix}`;
6571
- console.log("pil~~");
6572
6571
  return await pi(command, command, "pil");
6573
6572
  }
6574
6573
  function addLatest(params) {
@@ -6634,11 +6633,12 @@ async function pui(params, pkg) {
6634
6633
  process.exit(1);
6635
6634
  }
6636
6635
  const loading_status = await loading(text);
6637
- const { status } = await (0, import_lazy_js_utils11.useNodeWorker)(`nun ${params}`);
6636
+ const { status, result } = await (0, import_lazy_js_utils11.useNodeWorker)(`nun ${params}`);
6638
6637
  if (status === 0)
6639
6638
  loading_status.succeed(import_picocolors3.default.green(successMsg));
6640
6639
  else
6641
- loading_status.fail(import_picocolors3.default.red(failMsg));
6640
+ loading_status.fail(import_picocolors3.default.red(result ? `${failMsg}
6641
+ ${result}` : failMsg));
6642
6642
  process.exit();
6643
6643
  }
6644
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.60";
6458
+ var version = "0.0.62";
6459
6459
 
6460
6460
  // src/help.ts
6461
6461
  var isZh2 = process.env.PI_Lang === "zh";
@@ -6535,7 +6535,7 @@ ${_result}` : failMsg));
6535
6535
  ${result}` : failMsg));
6536
6536
  }
6537
6537
  if (result) {
6538
- const reg = / No matching version found for ([\w\-\_@\^.]+)/;
6538
+ const reg = /ERR_PNPM_NO_MATCHING_VERSION_INSIDE_WORKSPACE  In : No matching version found for ([\w\-\_@\^.]+) inside the workspace/;
6539
6539
  const match = result.match(reg);
6540
6540
  if (match) {
6541
6541
  const dep = match[1];
@@ -6572,7 +6572,6 @@ async function pil(params) {
6572
6572
  return "";
6573
6573
  });
6574
6574
  const command = `${latestPkgname}${suffix}`;
6575
- console.log("pil~~");
6576
6575
  return await pi(command, command, "pil");
6577
6576
  }
6578
6577
  function addLatest(params) {
@@ -6638,11 +6637,12 @@ async function pui(params, pkg) {
6638
6637
  process.exit(1);
6639
6638
  }
6640
6639
  const loading_status = await loading(text);
6641
- const { status } = await useNodeWorker2(`nun ${params}`);
6640
+ const { status, result } = await useNodeWorker2(`nun ${params}`);
6642
6641
  if (status === 0)
6643
6642
  loading_status.succeed(import_picocolors3.default.green(successMsg));
6644
6643
  else
6645
- loading_status.fail(import_picocolors3.default.red(failMsg));
6644
+ loading_status.fail(import_picocolors3.default.red(result ? `${failMsg}
6645
+ ${result}` : failMsg));
6646
6646
  process.exit();
6647
6647
  }
6648
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.60",
4
+ "version": "0.0.62",
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.53"
68
+ "lazy-js-utils": "^0.0.55"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@antfu/eslint-config": "^0.34.0",