@simon_he/pi 0.1.16 → 0.1.17
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 +2 -2
- package/dist/index.js +14 -14
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ var import_node_process = __toESM(require("process"), 1);
|
|
|
46
46
|
var import_node = require("lazy-js-utils/node");
|
|
47
47
|
|
|
48
48
|
// package.json
|
|
49
|
-
var version = "0.1.
|
|
49
|
+
var version = "0.1.17";
|
|
50
50
|
|
|
51
51
|
// src/help.ts
|
|
52
52
|
var isZh = import_node_process.default.env.PI_Lang === "zh";
|
|
@@ -395,7 +395,7 @@ async function pil(params) {
|
|
|
395
395
|
const { result: choose, status } = await (0, import_node7.jsShell)(
|
|
396
396
|
`echo ${deps.join(
|
|
397
397
|
","
|
|
398
|
-
)} | sed "s/,/\\n/g" | gum filter --no-limit --
|
|
398
|
+
)} | sed "s/,/\\n/g" | gum filter --no-limit --placeholder=" \u{1F914}${import_node_process6.default.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."}"`,
|
|
399
399
|
{
|
|
400
400
|
stdio: ["inherit", "pipe", "inherit"]
|
|
401
401
|
}
|
package/dist/index.js
CHANGED
|
@@ -6,8 +6,8 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
9
|
-
import path2 from "
|
|
10
|
-
import process9 from "
|
|
9
|
+
import path2 from "path";
|
|
10
|
+
import process9 from "process";
|
|
11
11
|
import { ccommand as ccommand3 } from "ccommand";
|
|
12
12
|
import fg from "fast-glob";
|
|
13
13
|
import { isWin, spaceFormat } from "lazy-js-utils";
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
import color3 from "picocolors";
|
|
22
22
|
|
|
23
23
|
// src/help.ts
|
|
24
|
-
import process from "
|
|
24
|
+
import process from "process";
|
|
25
25
|
import { jsShell } from "lazy-js-utils/node";
|
|
26
26
|
|
|
27
27
|
// package.json
|
|
28
|
-
var version = "0.1.
|
|
28
|
+
var version = "0.1.17";
|
|
29
29
|
|
|
30
30
|
// src/help.ts
|
|
31
31
|
var isZh = process.env.PI_Lang === "zh";
|
|
@@ -48,7 +48,7 @@ async function help(argv) {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
// src/installDeps.ts
|
|
51
|
-
import process2 from "
|
|
51
|
+
import process2 from "process";
|
|
52
52
|
import { isInstallPkg, jsShell as jsShell2 } from "lazy-js-utils/node";
|
|
53
53
|
import color from "picocolors";
|
|
54
54
|
async function installDeps() {
|
|
@@ -97,13 +97,13 @@ function pa() {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
// src/pi.ts
|
|
100
|
-
import { log } from "
|
|
101
|
-
import process5 from "
|
|
100
|
+
import { log } from "console";
|
|
101
|
+
import process5 from "process";
|
|
102
102
|
import { getPkgTool as getPkgTool2, jsShell as jsShell6, useNodeWorker } from "lazy-js-utils/node";
|
|
103
103
|
import colors3 from "picocolors";
|
|
104
104
|
|
|
105
105
|
// src/detectNode.ts
|
|
106
|
-
import process3 from "
|
|
106
|
+
import process3 from "process";
|
|
107
107
|
import { getPkg, jsShell as jsShell4 } from "lazy-js-utils/node";
|
|
108
108
|
import colors from "picocolors";
|
|
109
109
|
async function detectNode() {
|
|
@@ -144,8 +144,8 @@ no" | gum filter --placeholder=" \u5F53\u524Dnode\u7248\u672C\u4E0D\u6EE1\u8DB3
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
// src/utils.ts
|
|
147
|
-
import path from "
|
|
148
|
-
import process4 from "
|
|
147
|
+
import path from "path";
|
|
148
|
+
import process4 from "process";
|
|
149
149
|
import { isFile } from "lazy-js-utils";
|
|
150
150
|
import { getPkg as getPkg2, getPkgTool, jsShell as jsShell5 } from "lazy-js-utils/node";
|
|
151
151
|
import colors2 from "picocolors";
|
|
@@ -359,7 +359,7 @@ function pfind(params) {
|
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
// src/pil.ts
|
|
362
|
-
import process6 from "
|
|
362
|
+
import process6 from "process";
|
|
363
363
|
import { getPkg as getPkg3, jsShell as jsShell7 } from "lazy-js-utils/node";
|
|
364
364
|
import pc from "picocolors";
|
|
365
365
|
async function pil(params) {
|
|
@@ -374,7 +374,7 @@ async function pil(params) {
|
|
|
374
374
|
const { result: choose, status } = await jsShell7(
|
|
375
375
|
`echo ${deps.join(
|
|
376
376
|
","
|
|
377
|
-
)} | sed "s/,/\\n/g" | gum filter --no-limit --
|
|
377
|
+
)} | sed "s/,/\\n/g" | gum filter --no-limit --placeholder=" \u{1F914}${process6.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."}"`,
|
|
378
378
|
{
|
|
379
379
|
stdio: ["inherit", "pipe", "inherit"]
|
|
380
380
|
}
|
|
@@ -438,7 +438,7 @@ async function pinit() {
|
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
// src/pio.ts
|
|
441
|
-
import process7 from "
|
|
441
|
+
import process7 from "process";
|
|
442
442
|
import { useNodeWorker as useNodeWorker2 } from "lazy-js-utils/node";
|
|
443
443
|
import color2 from "picocolors";
|
|
444
444
|
async function pio(params, pkg, executor = "ni") {
|
|
@@ -484,7 +484,7 @@ function pu() {
|
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
// src/pui.ts
|
|
487
|
-
import process8 from "
|
|
487
|
+
import process8 from "process";
|
|
488
488
|
import { getPkg as getPkg4, jsShell as jsShell11, useNodeWorker as useNodeWorker3 } from "lazy-js-utils/node";
|
|
489
489
|
import colors4 from "picocolors";
|
|
490
490
|
var isZh4 = process8.env.PI_Lang === "zh";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simon_he/pi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.17",
|
|
5
5
|
"packageManager": "pnpm@10.12.1",
|
|
6
6
|
"description": "An intelligent cross-platform package manager and CLI tool that autodetects project environments (Node.mjs, Go, Rust, Python) with beautiful loading animations and smart command execution.",
|
|
7
7
|
"author": {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"test": "vitest"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"ccommand": "^1.0.
|
|
93
|
+
"ccommand": "^1.0.85",
|
|
94
94
|
"fast-glob": "^3.3.3",
|
|
95
95
|
"lazy-js-utils": "^0.1.44",
|
|
96
96
|
"ora": "^8.2.0",
|
|
@@ -98,16 +98,16 @@
|
|
|
98
98
|
"semver": "^7.7.2"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
|
-
"@antfu/eslint-config": "^4.
|
|
101
|
+
"@antfu/eslint-config": "^4.15.0",
|
|
102
102
|
"@types/node": "^22.15.31",
|
|
103
|
-
"bumpp": "^10.
|
|
104
|
-
"eslint": "^9.
|
|
103
|
+
"bumpp": "^10.2.0",
|
|
104
|
+
"eslint": "^9.29.0",
|
|
105
105
|
"lint-staged": "^13.3.0",
|
|
106
106
|
"prettier": "^2.8.8",
|
|
107
107
|
"tsup": "^8.5.0",
|
|
108
|
-
"tsx": "^4.20.
|
|
108
|
+
"tsx": "^4.20.3",
|
|
109
109
|
"typescript": "^5.8.3",
|
|
110
|
-
"vitest": "^3.2.
|
|
110
|
+
"vitest": "^3.2.4"
|
|
111
111
|
},
|
|
112
112
|
"lint-staged": {
|
|
113
113
|
"*.{vue,js,ts,jsx,tsx,md,json}": "eslint . --fix"
|