pake-cli 3.2.0-beta → 3.2.0-beta1

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.
Files changed (2) hide show
  1. package/dist/cli.js +5 -2
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -19,7 +19,7 @@ import { fileTypeFromBuffer } from 'file-type';
19
19
  import * as psl from 'psl';
20
20
 
21
21
  var name = "pake-cli";
22
- var version$1 = "3.2.0-beta";
22
+ var version$1 = "3.2.0-beta1";
23
23
  var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。";
24
24
  var engines = {
25
25
  node: ">=16.0.0"
@@ -319,11 +319,14 @@ async function shellExec(command) {
319
319
  const { exitCode } = await execa(command, {
320
320
  cwd: npmDirectory,
321
321
  stdio: 'inherit',
322
+ shell: true,
322
323
  });
323
324
  return exitCode;
324
325
  }
325
326
  catch (error) {
326
- throw new Error(`Error occurred while executing command "${command}". Exit code: ${error.exitCode}`);
327
+ const exitCode = error.exitCode ?? 'unknown';
328
+ const errorMessage = error.message || 'Unknown error occurred';
329
+ throw new Error(`Error occurred while executing command "${command}". Exit code: ${exitCode}. Details: ${errorMessage}`);
327
330
  }
328
331
  }
329
332
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "3.2.0-beta",
3
+ "version": "3.2.0-beta1",
4
4
  "description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
5
5
  "engines": {
6
6
  "node": ">=16.0.0"