@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
- 730f01e4c20d9848690579384fb3c635f74d5b0c4938c53a470159eb0798ad56 pippit-tool-cli-1.0.27-darwin-amd64.tar.gz
2
- 03520884774e9082f5ef070044fa87ff70f18c52fe8d1a4bf4d665509c3af023 pippit-tool-cli-1.0.27-darwin-arm64.tar.gz
3
- 70348ce883d4223cf6ee0789bd0a72635bfef857d832c54586290eb956a1eb1e pippit-tool-cli-1.0.27-linux-amd64.tar.gz
4
- d548d7ff144ee723c6420e1d3977c8defbbb92cc19ee86cdb7f021a3812d881c pippit-tool-cli-1.0.27-linux-arm64.tar.gz
5
- ced13bd604d19987d3d71cb3a8d5518afee64420496dea1b646c19e34efdd23c pippit-tool-cli-1.0.27-windows-amd64.zip
6
- aeee3a5159843c0b64e453c19a3a7c3dd805f4f0eeafdb08a0e36c604829602f pippit-tool-cli-1.0.27-windows-arm64.zip
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
@@ -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
  }
@@ -1,6 +1,6 @@
1
- 730f01e4c20d9848690579384fb3c635f74d5b0c4938c53a470159eb0798ad56 pippit-tool-cli-1.0.27-darwin-amd64.tar.gz
2
- 03520884774e9082f5ef070044fa87ff70f18c52fe8d1a4bf4d665509c3af023 pippit-tool-cli-1.0.27-darwin-arm64.tar.gz
3
- 70348ce883d4223cf6ee0789bd0a72635bfef857d832c54586290eb956a1eb1e pippit-tool-cli-1.0.27-linux-amd64.tar.gz
4
- d548d7ff144ee723c6420e1d3977c8defbbb92cc19ee86cdb7f021a3812d881c pippit-tool-cli-1.0.27-linux-arm64.tar.gz
5
- ced13bd604d19987d3d71cb3a8d5518afee64420496dea1b646c19e34efdd23c pippit-tool-cli-1.0.27-windows-amd64.zip
6
- aeee3a5159843c0b64e453c19a3a7c3dd805f4f0eeafdb08a0e36c604829602f pippit-tool-cli-1.0.27-windows-arm64.zip
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pippit-dev/cli",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Pippit CLI",
5
5
  "bin": {
6
6
  "pippit-tool-cli": "scripts/run.js"
@@ -36,12 +36,12 @@ function download(url, destPath) {
36
36
  const args = [
37
37
  "--fail",
38
38
  "--location",
39
- "--silent",
39
+ "--progress-bar",
40
40
  "--show-error",
41
41
  "--connect-timeout",
42
42
  "10",
43
43
  "--max-time",
44
- "120",
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 : 180000,
67
+ cwd: installDir, env, timeout: quiet ? 10000 : 660000,
68
68
  stdio: quiet ? ["ignore", "pipe", "pipe"] : ["ignore", 2, 2],
69
69
  });
70
70
  } catch (err) {