@simon_he/pi 0.0.84 → 0.0.85

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
@@ -5657,10 +5657,10 @@ __export(src_exports, {
5657
5657
  });
5658
5658
  module.exports = __toCommonJS(src_exports);
5659
5659
  var import_process4 = __toESM(require("process"), 1);
5660
- var import_lazy_js_utils14 = require("lazy-js-utils");
5660
+ var import_lazy_js_utils13 = require("lazy-js-utils");
5661
5661
  var import_picocolors8 = __toESM(require_picocolors(), 1);
5662
5662
  var import_fast_glob = __toESM(require("fast-glob"), 1);
5663
- var import_ccommand2 = require("ccommand");
5663
+ var import_ccommand3 = require("ccommand");
5664
5664
 
5665
5665
  // src/utils.ts
5666
5666
  var import_path = __toESM(require("path"), 1);
@@ -6751,7 +6751,7 @@ function getLatestVersion(pkg, isZh6 = true) {
6751
6751
  var import_lazy_js_utils2 = require("lazy-js-utils");
6752
6752
 
6753
6753
  // package.json
6754
- var version = "0.0.84";
6754
+ var version = "0.0.85";
6755
6755
 
6756
6756
  // src/help.ts
6757
6757
  var isZh2 = process.env.PI_Lang === "zh";
@@ -6930,16 +6930,16 @@ function pci(params, pkg) {
6930
6930
  }
6931
6931
 
6932
6932
  // src/pfind.ts
6933
- var import_lazy_js_utils7 = require("lazy-js-utils");
6933
+ var import_ccommand = require("ccommand");
6934
6934
  function pfind(params) {
6935
- return (0, import_lazy_js_utils7.jsShell)(`ccommand find ${params}`);
6935
+ return (0, import_ccommand.ccommand)(`find ${params}`);
6936
6936
  }
6937
6937
 
6938
6938
  // src/pil.ts
6939
- var import_lazy_js_utils8 = require("lazy-js-utils");
6939
+ var import_lazy_js_utils7 = require("lazy-js-utils");
6940
6940
  var import_picocolors5 = __toESM(require_picocolors(), 1);
6941
6941
  async function pil(params) {
6942
- const { dependencies = {}, devDependencies = {} } = await (0, import_lazy_js_utils8.getPkg)();
6942
+ const { dependencies = {}, devDependencies = {} } = await (0, import_lazy_js_utils7.getPkg)();
6943
6943
  if (!params) {
6944
6944
  const deps = [
6945
6945
  ...Object.keys(dependencies).map((key) => `${key}: ${dependencies[key]}`),
@@ -6947,7 +6947,7 @@ async function pil(params) {
6947
6947
  (key) => `${key}: ${devDependencies[key]}`
6948
6948
  )
6949
6949
  ];
6950
- const { result: choose, status } = (0, import_lazy_js_utils8.jsShell)(
6950
+ const { result: choose, status } = (0, import_lazy_js_utils7.jsShell)(
6951
6951
  `echo ${deps.join(
6952
6952
  ","
6953
6953
  )} | sed "s/,/\\n/g" | gum filter --no-limit --placeholder=" \u{1F914}${process.env.PI_Lang === "zh" ? "\u8BF7\u9009\u62E9\u4E00\u4E2A\u9700\u8981\u83B7\u53D6\u6700\u65B0\u7248\u672C\u7684\u4F9D\u8D56" : "Please select a dependency that needs to obtain the latest version."}"`,
@@ -6986,62 +6986,62 @@ async function pil(params) {
6986
6986
  }
6987
6987
 
6988
6988
  // src/pinit.ts
6989
- var import_lazy_js_utils9 = require("lazy-js-utils");
6989
+ var import_lazy_js_utils8 = require("lazy-js-utils");
6990
6990
  async function pinit() {
6991
6991
  console.log("Initializing project...");
6992
- switch (await (0, import_lazy_js_utils9.getPkgTool)()) {
6992
+ switch (await (0, import_lazy_js_utils8.getPkgTool)()) {
6993
6993
  case "npm":
6994
- (0, import_lazy_js_utils9.jsShell)("npm init -y");
6994
+ (0, import_lazy_js_utils8.jsShell)("npm init -y");
6995
6995
  return;
6996
6996
  case "yarn":
6997
- (0, import_lazy_js_utils9.jsShell)("yarn init -y");
6997
+ (0, import_lazy_js_utils8.jsShell)("yarn init -y");
6998
6998
  return;
6999
6999
  case "pnpm":
7000
- (0, import_lazy_js_utils9.jsShell)("pnpm init -y");
7000
+ (0, import_lazy_js_utils8.jsShell)("pnpm init -y");
7001
7001
  return;
7002
7002
  default:
7003
- (0, import_lazy_js_utils9.jsShell)("npm init -y");
7003
+ (0, import_lazy_js_utils8.jsShell)("npm init -y");
7004
7004
  }
7005
7005
  }
7006
7006
 
7007
7007
  // src/pix.ts
7008
- var import_lazy_js_utils10 = require("lazy-js-utils");
7008
+ var import_lazy_js_utils9 = require("lazy-js-utils");
7009
7009
  async function pix(params) {
7010
- switch (await (0, import_lazy_js_utils10.getPkgTool)()) {
7010
+ switch (await (0, import_lazy_js_utils9.getPkgTool)()) {
7011
7011
  case "bun":
7012
- return (0, import_lazy_js_utils10.jsShell)(`bunx ${params}`);
7012
+ return (0, import_lazy_js_utils9.jsShell)(`bunx ${params}`);
7013
7013
  default:
7014
- return (0, import_lazy_js_utils10.jsShell)(`npx ${params}`);
7014
+ return (0, import_lazy_js_utils9.jsShell)(`npx ${params}`);
7015
7015
  }
7016
7016
  }
7017
7017
 
7018
7018
  // src/prun.ts
7019
- var import_ccommand = require("ccommand");
7019
+ var import_ccommand2 = require("ccommand");
7020
7020
  function prun(params) {
7021
- return (0, import_ccommand.ccommand)(params);
7021
+ return (0, import_ccommand2.ccommand)(params);
7022
7022
  }
7023
7023
 
7024
7024
  // src/pu.ts
7025
- var import_lazy_js_utils11 = require("lazy-js-utils");
7025
+ var import_lazy_js_utils10 = require("lazy-js-utils");
7026
7026
  function pu() {
7027
- return (0, import_lazy_js_utils11.jsShell)("nu");
7027
+ return (0, import_lazy_js_utils10.jsShell)("nu");
7028
7028
  }
7029
7029
 
7030
7030
  // src/pui.ts
7031
- var import_lazy_js_utils12 = require("lazy-js-utils");
7031
+ var import_lazy_js_utils11 = require("lazy-js-utils");
7032
7032
  var import_picocolors6 = __toESM(require_picocolors(), 1);
7033
7033
  var isZh4 = process.env.PI_Lang === "zh";
7034
7034
  async function pui(params, pkg) {
7035
7035
  const text = `${isZh4 ? "\u6B63\u5728\u4E3A\u60A8\u5378\u8F7D" : "Uninstalling"} ${pkg} ...`;
7036
7036
  if (!params) {
7037
- const { dependencies = {}, devDependencies = {} } = await (0, import_lazy_js_utils12.getPkg)();
7037
+ const { dependencies = {}, devDependencies = {} } = await (0, import_lazy_js_utils11.getPkg)();
7038
7038
  const deps = [
7039
7039
  ...Object.keys(dependencies).map((key) => `${key}: ${dependencies[key]}`),
7040
7040
  ...Object.keys(devDependencies).map(
7041
7041
  (key) => `${key}: ${devDependencies[key]}`
7042
7042
  )
7043
7043
  ];
7044
- const { result: choose, status: status2 } = (0, import_lazy_js_utils12.jsShell)(
7044
+ const { result: choose, status: status2 } = (0, import_lazy_js_utils11.jsShell)(
7045
7045
  `echo ${deps.join(
7046
7046
  ","
7047
7047
  )} | sed "s/,/\\n/g" | gum filter --placeholder=" \u{1F914}${process.env.PI_Lang === "zh" ? "\u8BF7\u9009\u62E9\u4E00\u4E2A\u9700\u8981\u5220\u9664\u4F9D\u8D56" : "Please select a dependency to get the latest version."}"`,
@@ -7067,7 +7067,7 @@ async function pui(params, pkg) {
7067
7067
  process.exit(1);
7068
7068
  }
7069
7069
  const loading_status = await loading(text);
7070
- const { status, result } = await (0, import_lazy_js_utils12.useNodeWorker)(`nun ${params}`);
7070
+ const { status, result } = await (0, import_lazy_js_utils11.useNodeWorker)(`nun ${params}`);
7071
7071
  const end = Date.now();
7072
7072
  const costTime = (end - start) / 1e3;
7073
7073
  successMsg += import_picocolors6.default.blue(` ---- \u23F0\uFF1A${costTime}s`);
@@ -7081,14 +7081,14 @@ ${result}` : failMsg));
7081
7081
 
7082
7082
  // src/pio.ts
7083
7083
  var import_process3 = __toESM(require("process"), 1);
7084
- var import_lazy_js_utils13 = require("lazy-js-utils");
7084
+ var import_lazy_js_utils12 = require("lazy-js-utils");
7085
7085
  var import_picocolors7 = __toESM(require_picocolors(), 1);
7086
7086
  async function pio(params, pkg, executor = "ni") {
7087
7087
  const successMsg = pkg ? `Installed ${pkg} successfully! \u{1F60A}` : "Updated dependency successfully! \u{1F60A}";
7088
7088
  const failMsg = pkg ? `Failed to install ${pkg} \u{1F62D}` : "Failed to update dependency! \u{1F62D}";
7089
7089
  const offline = "--prefer-offline";
7090
7090
  const newParams = await getParams(params);
7091
- const { status, result } = await (0, import_lazy_js_utils13.useNodeWorker)({
7091
+ const { status, result } = await (0, import_lazy_js_utils12.useNodeWorker)({
7092
7092
  params: `${executor} ${newParams} ${offline}`,
7093
7093
  stdio: "inherit"
7094
7094
  });
@@ -7121,7 +7121,7 @@ var isZh5 = import_process4.default.env.PI_Lang === "zh";
7121
7121
  async function setup() {
7122
7122
  const cmd = import_process4.default.argv[1];
7123
7123
  let exec = "";
7124
- if ((0, import_lazy_js_utils14.isWin)()) {
7124
+ if ((0, import_lazy_js_utils13.isWin)()) {
7125
7125
  const last = cmd.lastIndexOf("\\") + 1;
7126
7126
  exec = cmd.slice(last, cmd.length).split(".").slice(0, -1).join(".");
7127
7127
  } else {
@@ -7130,15 +7130,15 @@ async function setup() {
7130
7130
  }
7131
7131
  const argv = import_process4.default.argv.slice(2);
7132
7132
  help(argv);
7133
- const params = (0, import_lazy_js_utils14.spaceFormat)(argv.join(" ")).trim();
7134
- if (!(0, import_lazy_js_utils14.hasPkg)(rootPath)) {
7135
- if ((0, import_lazy_js_utils14.isGo)()) {
7133
+ const params = (0, import_lazy_js_utils13.spaceFormat)(argv.join(" ")).trim();
7134
+ if (!(0, import_lazy_js_utils13.hasPkg)(rootPath)) {
7135
+ if ((0, import_lazy_js_utils13.isGo)()) {
7136
7136
  if (exec === "pi") {
7137
7137
  const loading_status = await loading(
7138
7138
  `${isZh5 ? "\u6B63\u5728\u4E3A\u60A8\u5B89\u88C5" : "Installing"} ${params} ...
7139
7139
  `
7140
7140
  );
7141
- const { status } = params ? await (0, import_lazy_js_utils14.useNodeWorker)(`go get ${params}`) : await (0, import_lazy_js_utils14.useNodeWorker)("go mod tidy");
7141
+ const { status } = params ? await (0, import_lazy_js_utils13.useNodeWorker)(`go get ${params}`) : await (0, import_lazy_js_utils13.useNodeWorker)("go mod tidy");
7142
7142
  if (status === 0) {
7143
7143
  loading_status.succeed(
7144
7144
  import_picocolors8.default.green(isZh5 ? "\u5B89\u88C5\u6210\u529F! \u{1F60A}" : "Installed successfully! \u{1F60A}")
@@ -7153,7 +7153,7 @@ async function setup() {
7153
7153
  `${isZh5 ? "\u6B63\u5728\u4E3A\u60A8\u5378\u8F7D" : "Uninstalling"} ${params} ...
7154
7154
  `
7155
7155
  );
7156
- const { status } = await (0, import_lazy_js_utils14.useNodeWorker)(`go clean ${params}`);
7156
+ const { status } = await (0, import_lazy_js_utils13.useNodeWorker)(`go clean ${params}`);
7157
7157
  if (status === 0) {
7158
7158
  loading_status.succeed(
7159
7159
  import_picocolors8.default.green(isZh5 ? "\u5378\u8F7D\u6210\u529F! \u{1F60A}" : "Uninstalled successfully! \u{1F60A}")
@@ -7166,11 +7166,11 @@ async function setup() {
7166
7166
  } else if (exec === "prun") {
7167
7167
  const match = params ? params.endsWith(".go") ? [`**/${params}`] : [`**/${params}.go`, `**/${params}/main.go`] : "main.go";
7168
7168
  const target = (await (0, import_fast_glob.default)(match))[0];
7169
- return target ? (0, import_lazy_js_utils14.jsShell)(`go run ${target}`) : (0, import_ccommand2.ccommand)(params);
7169
+ return target ? (0, import_lazy_js_utils13.jsShell)(`go run ${target}`) : (0, import_ccommand3.ccommand)(params);
7170
7170
  } else if (exec === "pinit") {
7171
- (0, import_lazy_js_utils14.jsShell)(`go mod init ${params}`);
7171
+ (0, import_lazy_js_utils13.jsShell)(`go mod init ${params}`);
7172
7172
  } else if (exec === "pbuild") {
7173
- (0, import_lazy_js_utils14.jsShell)(`go build ${params}`);
7173
+ (0, import_lazy_js_utils13.jsShell)(`go build ${params}`);
7174
7174
  } else {
7175
7175
  console.log(
7176
7176
  import_picocolors8.default.red(
@@ -7180,13 +7180,13 @@ async function setup() {
7180
7180
  }
7181
7181
  import_process4.default.exit();
7182
7182
  }
7183
- if ((0, import_lazy_js_utils14.isRust)()) {
7183
+ if ((0, import_lazy_js_utils13.isRust)()) {
7184
7184
  if (exec === "pi") {
7185
7185
  const loading_status = await loading(
7186
7186
  `${isZh5 ? "\u6B63\u5728\u4E3A\u60A8\u5B89\u88C5" : "Installing"} ${params} ...
7187
7187
  `
7188
7188
  );
7189
- const { status } = await (0, import_lazy_js_utils14.useNodeWorker)(`cargo install ${params}`);
7189
+ const { status } = await (0, import_lazy_js_utils13.useNodeWorker)(`cargo install ${params}`);
7190
7190
  if (status === 0) {
7191
7191
  loading_status.succeed(
7192
7192
  import_picocolors8.default.green(isZh5 ? "\u5B89\u88C5\u6210\u529F! \u{1F60A}" : "Installed successfully! \u{1F60A}")
@@ -7201,7 +7201,7 @@ async function setup() {
7201
7201
  `${isZh5 ? "\u6B63\u5728\u4E3A\u60A8\u5378\u8F7D" : "Uninstalling"} ${params} ...
7202
7202
  `
7203
7203
  );
7204
- const { status } = await (0, import_lazy_js_utils14.useNodeWorker)(`cargo uninstall ${params}`);
7204
+ const { status } = await (0, import_lazy_js_utils13.useNodeWorker)(`cargo uninstall ${params}`);
7205
7205
  if (status === 0) {
7206
7206
  loading_status.succeed(
7207
7207
  import_picocolors8.default.green(isZh5 ? "\u5378\u8F7D\u6210\u529F! \u{1F60A}" : "Uninstalled successfully! \u{1F60A}")
@@ -7212,11 +7212,11 @@ async function setup() {
7212
7212
  );
7213
7213
  }
7214
7214
  } else if (exec === "prun") {
7215
- (0, import_lazy_js_utils14.jsShell)(`cargo run ${params}`);
7215
+ (0, import_lazy_js_utils13.jsShell)(`cargo run ${params}`);
7216
7216
  } else if (exec === "pinit") {
7217
- (0, import_lazy_js_utils14.jsShell)(`cargo init ${params}`);
7217
+ (0, import_lazy_js_utils13.jsShell)(`cargo init ${params}`);
7218
7218
  } else if (exec === "pbuild") {
7219
- (0, import_lazy_js_utils14.jsShell)(`cargo build ${params}`);
7219
+ (0, import_lazy_js_utils13.jsShell)(`cargo build ${params}`);
7220
7220
  } else {
7221
7221
  console.log(
7222
7222
  import_picocolors8.default.red(
package/dist/index.js CHANGED
@@ -5659,12 +5659,12 @@ import {
5659
5659
  isGo,
5660
5660
  isRust,
5661
5661
  isWin,
5662
- jsShell as jsShell13,
5662
+ jsShell as jsShell12,
5663
5663
  spaceFormat,
5664
5664
  useNodeWorker as useNodeWorker4
5665
5665
  } from "lazy-js-utils";
5666
5666
  import fg from "fast-glob";
5667
- import { ccommand as ccommand2 } from "ccommand";
5667
+ import { ccommand as ccommand3 } from "ccommand";
5668
5668
 
5669
5669
  // src/utils.ts
5670
5670
  import path from "path";
@@ -6755,7 +6755,7 @@ function getLatestVersion(pkg, isZh6 = true) {
6755
6755
  import { jsShell as jsShell2 } from "lazy-js-utils";
6756
6756
 
6757
6757
  // package.json
6758
- var version = "0.0.84";
6758
+ var version = "0.0.85";
6759
6759
 
6760
6760
  // src/help.ts
6761
6761
  var isZh2 = process.env.PI_Lang === "zh";
@@ -6934,14 +6934,14 @@ function pci(params, pkg) {
6934
6934
  }
6935
6935
 
6936
6936
  // src/pfind.ts
6937
- import { jsShell as jsShell7 } from "lazy-js-utils";
6937
+ import { ccommand } from "ccommand";
6938
6938
  function pfind(params) {
6939
- return jsShell7(`ccommand find ${params}`);
6939
+ return ccommand(`find ${params}`);
6940
6940
  }
6941
6941
 
6942
6942
  // src/pil.ts
6943
6943
  var import_picocolors5 = __toESM(require_picocolors(), 1);
6944
- import { getPkg as getPkg3, jsShell as jsShell8 } from "lazy-js-utils";
6944
+ import { getPkg as getPkg3, jsShell as jsShell7 } from "lazy-js-utils";
6945
6945
  async function pil(params) {
6946
6946
  const { dependencies = {}, devDependencies = {} } = await getPkg3();
6947
6947
  if (!params) {
@@ -6951,7 +6951,7 @@ async function pil(params) {
6951
6951
  (key) => `${key}: ${devDependencies[key]}`
6952
6952
  )
6953
6953
  ];
6954
- const { result: choose, status } = jsShell8(
6954
+ const { result: choose, status } = jsShell7(
6955
6955
  `echo ${deps.join(
6956
6956
  ","
6957
6957
  )} | sed "s/,/\\n/g" | gum filter --no-limit --placeholder=" \u{1F914}${process.env.PI_Lang === "zh" ? "\u8BF7\u9009\u62E9\u4E00\u4E2A\u9700\u8981\u83B7\u53D6\u6700\u65B0\u7248\u672C\u7684\u4F9D\u8D56" : "Please select a dependency that needs to obtain the latest version."}"`,
@@ -6990,50 +6990,50 @@ async function pil(params) {
6990
6990
  }
6991
6991
 
6992
6992
  // src/pinit.ts
6993
- import { getPkgTool as getPkgTool3, jsShell as jsShell9 } from "lazy-js-utils";
6993
+ import { getPkgTool as getPkgTool3, jsShell as jsShell8 } from "lazy-js-utils";
6994
6994
  async function pinit() {
6995
6995
  console.log("Initializing project...");
6996
6996
  switch (await getPkgTool3()) {
6997
6997
  case "npm":
6998
- jsShell9("npm init -y");
6998
+ jsShell8("npm init -y");
6999
6999
  return;
7000
7000
  case "yarn":
7001
- jsShell9("yarn init -y");
7001
+ jsShell8("yarn init -y");
7002
7002
  return;
7003
7003
  case "pnpm":
7004
- jsShell9("pnpm init -y");
7004
+ jsShell8("pnpm init -y");
7005
7005
  return;
7006
7006
  default:
7007
- jsShell9("npm init -y");
7007
+ jsShell8("npm init -y");
7008
7008
  }
7009
7009
  }
7010
7010
 
7011
7011
  // src/pix.ts
7012
- import { getPkgTool as getPkgTool4, jsShell as jsShell10 } from "lazy-js-utils";
7012
+ import { getPkgTool as getPkgTool4, jsShell as jsShell9 } from "lazy-js-utils";
7013
7013
  async function pix(params) {
7014
7014
  switch (await getPkgTool4()) {
7015
7015
  case "bun":
7016
- return jsShell10(`bunx ${params}`);
7016
+ return jsShell9(`bunx ${params}`);
7017
7017
  default:
7018
- return jsShell10(`npx ${params}`);
7018
+ return jsShell9(`npx ${params}`);
7019
7019
  }
7020
7020
  }
7021
7021
 
7022
7022
  // src/prun.ts
7023
- import { ccommand } from "ccommand";
7023
+ import { ccommand as ccommand2 } from "ccommand";
7024
7024
  function prun(params) {
7025
- return ccommand(params);
7025
+ return ccommand2(params);
7026
7026
  }
7027
7027
 
7028
7028
  // src/pu.ts
7029
- import { jsShell as jsShell11 } from "lazy-js-utils";
7029
+ import { jsShell as jsShell10 } from "lazy-js-utils";
7030
7030
  function pu() {
7031
- return jsShell11("nu");
7031
+ return jsShell10("nu");
7032
7032
  }
7033
7033
 
7034
7034
  // src/pui.ts
7035
7035
  var import_picocolors6 = __toESM(require_picocolors(), 1);
7036
- import { getPkg as getPkg4, jsShell as jsShell12, useNodeWorker as useNodeWorker2 } from "lazy-js-utils";
7036
+ import { getPkg as getPkg4, jsShell as jsShell11, useNodeWorker as useNodeWorker2 } from "lazy-js-utils";
7037
7037
  var isZh4 = process.env.PI_Lang === "zh";
7038
7038
  async function pui(params, pkg) {
7039
7039
  const text = `${isZh4 ? "\u6B63\u5728\u4E3A\u60A8\u5378\u8F7D" : "Uninstalling"} ${pkg} ...`;
@@ -7045,7 +7045,7 @@ async function pui(params, pkg) {
7045
7045
  (key) => `${key}: ${devDependencies[key]}`
7046
7046
  )
7047
7047
  ];
7048
- const { result: choose, status: status2 } = jsShell12(
7048
+ const { result: choose, status: status2 } = jsShell11(
7049
7049
  `echo ${deps.join(
7050
7050
  ","
7051
7051
  )} | sed "s/,/\\n/g" | gum filter --placeholder=" \u{1F914}${process.env.PI_Lang === "zh" ? "\u8BF7\u9009\u62E9\u4E00\u4E2A\u9700\u8981\u5220\u9664\u4F9D\u8D56" : "Please select a dependency to get the latest version."}"`,
@@ -7170,11 +7170,11 @@ async function setup() {
7170
7170
  } else if (exec === "prun") {
7171
7171
  const match = params ? params.endsWith(".go") ? [`**/${params}`] : [`**/${params}.go`, `**/${params}/main.go`] : "main.go";
7172
7172
  const target = (await fg(match))[0];
7173
- return target ? jsShell13(`go run ${target}`) : ccommand2(params);
7173
+ return target ? jsShell12(`go run ${target}`) : ccommand3(params);
7174
7174
  } else if (exec === "pinit") {
7175
- jsShell13(`go mod init ${params}`);
7175
+ jsShell12(`go mod init ${params}`);
7176
7176
  } else if (exec === "pbuild") {
7177
- jsShell13(`go build ${params}`);
7177
+ jsShell12(`go build ${params}`);
7178
7178
  } else {
7179
7179
  console.log(
7180
7180
  import_picocolors8.default.red(
@@ -7216,11 +7216,11 @@ async function setup() {
7216
7216
  );
7217
7217
  }
7218
7218
  } else if (exec === "prun") {
7219
- jsShell13(`cargo run ${params}`);
7219
+ jsShell12(`cargo run ${params}`);
7220
7220
  } else if (exec === "pinit") {
7221
- jsShell13(`cargo init ${params}`);
7221
+ jsShell12(`cargo init ${params}`);
7222
7222
  } else if (exec === "pbuild") {
7223
- jsShell13(`cargo build ${params}`);
7223
+ jsShell12(`cargo build ${params}`);
7224
7224
  } else {
7225
7225
  console.log(
7226
7226
  import_picocolors8.default.red(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simon_he/pi",
3
3
  "type": "module",
4
- "version": "0.0.84",
4
+ "version": "0.0.85",
5
5
  "description": "",
6
6
  "author": "Simon He",
7
7
  "license": "MIT",