@pippit-dev/cli 1.0.27 → 1.0.28
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/checksums.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
4b34accaf9d10cd786f1ac962434106363633e7353852a82df20166e761c7a4e pippit-tool-cli-1.0.28-darwin-amd64.tar.gz
|
|
2
|
+
9250230123f5db4d78b91644b5f7346cb6be002a42144df3870d631f16183ea4 pippit-tool-cli-1.0.28-darwin-arm64.tar.gz
|
|
3
|
+
1ebcb2642dd56802556180ab2cea5a963df6a064fead3e06056755249a86810b pippit-tool-cli-1.0.28-linux-amd64.tar.gz
|
|
4
|
+
c80e22e65df2a8f1aa90c6dbf9c47b3ca2c4e58367a373e9a28a4133f2d12cb5 pippit-tool-cli-1.0.28-linux-arm64.tar.gz
|
|
5
|
+
03fc5d241e002860e05eaf39be5c3cd18c741539fec5bb3ea37c25941c83119f pippit-tool-cli-1.0.28-windows-amd64.zip
|
|
6
|
+
0c5adce56ee08df04082c8f121be968145e3db41c3b53e03e23b5593fd77f315 pippit-tool-cli-1.0.28-windows-arm64.zip
|
package/cmd/update/update.go
CHANGED
|
@@ -63,7 +63,7 @@ func runUpdate(stdout, stderr io.Writer) error {
|
|
|
63
63
|
if err != nil {
|
|
64
64
|
return fmt.Errorf("准备替换当前可执行文件失败: %w", err)
|
|
65
65
|
}
|
|
66
|
-
if err := runInheritEnv(stderr, []string{"PIPPIT_CLI_SKIP_SKILLS=1"}, "npm", "install", "-g", "--prefer-online", pkg); err != nil {
|
|
66
|
+
if err := runInheritEnv(stderr, []string{"PIPPIT_CLI_SKIP_SKILLS=1"}, "npm", "install", "-g", "--prefer-online", "--foreground-scripts", pkg); err != nil {
|
|
67
67
|
restore()
|
|
68
68
|
return fmt.Errorf("更新 pippit-tool-cli 失败: %w", err)
|
|
69
69
|
}
|
package/dist/checksums.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
4b34accaf9d10cd786f1ac962434106363633e7353852a82df20166e761c7a4e pippit-tool-cli-1.0.28-darwin-amd64.tar.gz
|
|
2
|
+
9250230123f5db4d78b91644b5f7346cb6be002a42144df3870d631f16183ea4 pippit-tool-cli-1.0.28-darwin-arm64.tar.gz
|
|
3
|
+
1ebcb2642dd56802556180ab2cea5a963df6a064fead3e06056755249a86810b pippit-tool-cli-1.0.28-linux-amd64.tar.gz
|
|
4
|
+
c80e22e65df2a8f1aa90c6dbf9c47b3ca2c4e58367a373e9a28a4133f2d12cb5 pippit-tool-cli-1.0.28-linux-arm64.tar.gz
|
|
5
|
+
03fc5d241e002860e05eaf39be5c3cd18c741539fec5bb3ea37c25941c83119f pippit-tool-cli-1.0.28-windows-amd64.zip
|
|
6
|
+
0c5adce56ee08df04082c8f121be968145e3db41c3b53e03e23b5593fd77f315 pippit-tool-cli-1.0.28-windows-arm64.zip
|
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -36,12 +36,12 @@ function download(url, destPath) {
|
|
|
36
36
|
const args = [
|
|
37
37
|
"--fail",
|
|
38
38
|
"--location",
|
|
39
|
-
"--
|
|
39
|
+
"--progress-bar",
|
|
40
40
|
"--show-error",
|
|
41
41
|
"--connect-timeout",
|
|
42
42
|
"10",
|
|
43
43
|
"--max-time",
|
|
44
|
-
"
|
|
44
|
+
"600",
|
|
45
45
|
"--max-redirs",
|
|
46
46
|
"3",
|
|
47
47
|
"--output",
|
|
@@ -51,6 +51,7 @@ function download(url, destPath) {
|
|
|
51
51
|
args.unshift("--ssl-revoke-best-effort");
|
|
52
52
|
}
|
|
53
53
|
args.push(url);
|
|
54
|
+
console.error(`Downloading ${archiveName} (timeout: 10 minutes)...`);
|
|
54
55
|
run("curl", args);
|
|
55
56
|
}
|
|
56
57
|
|
|
@@ -64,7 +64,7 @@ function ensureCLI({ canvas = false } = {}) {
|
|
|
64
64
|
function run(command, args, label, quiet = false) {
|
|
65
65
|
try {
|
|
66
66
|
return execFileSync(command, args, {
|
|
67
|
-
cwd: installDir, env, timeout: quiet ? 10000 :
|
|
67
|
+
cwd: installDir, env, timeout: quiet ? 10000 : 660000,
|
|
68
68
|
stdio: quiet ? ["ignore", "pipe", "pipe"] : ["ignore", 2, 2],
|
|
69
69
|
});
|
|
70
70
|
} catch (err) {
|