@hot-updater/rock 1.2.0-rc.5 → 1.2.0-rc.50

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
@@ -6285,10 +6285,11 @@ const runBundle = async ({ entryFile, cwd, platform, buildPath, sourcemap, herme
6285
6285
  try {
6286
6286
  stdout = (await execa("npx", args, {
6287
6287
  cwd,
6288
- reject: true
6288
+ reject: true,
6289
+ all: true
6289
6290
  })).stdout;
6290
6291
  } catch (error) {
6291
- if (error instanceof ExecaError) throw error.stderr;
6292
+ throw (0, _hot_updater_cli_tools.commandFailedError)("rock bundle", error, (0, _hot_updater_cli_tools.npxCommandLine)(cwd, args));
6292
6293
  }
6293
6294
  return {
6294
6295
  bundleId,
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createRequire } from "node:module";
2
2
  import fs from "fs/promises";
3
3
  import path from "path";
4
- import { createInterfaceFingerprint, log, readReactNativeInterface } from "@hot-updater/cli-tools";
4
+ import { commandFailedError, createInterfaceFingerprint, log, npxCommandLine, readReactNativeInterface } from "@hot-updater/cli-tools";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
7
7
  import { StringDecoder } from "node:string_decoder";
@@ -6281,10 +6281,11 @@ const runBundle = async ({ entryFile, cwd, platform, buildPath, sourcemap, herme
6281
6281
  try {
6282
6282
  stdout = (await execa("npx", args, {
6283
6283
  cwd,
6284
- reject: true
6284
+ reject: true,
6285
+ all: true
6285
6286
  })).stdout;
6286
6287
  } catch (error) {
6287
- if (error instanceof ExecaError) throw error.stderr;
6288
+ throw commandFailedError("rock bundle", error, npxCommandLine(cwd, args));
6288
6289
  }
6289
6290
  return {
6290
6291
  bundleId,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/rock",
3
3
  "type": "module",
4
- "version": "1.2.0-rc.5",
4
+ "version": "1.2.0-rc.50",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.mjs",
@@ -25,8 +25,8 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "uuidv7": "^1.0.2",
28
- "@hot-updater/cli-tools": "1.2.0-rc.5",
29
- "@hot-updater/plugin-core": "1.2.0-rc.5"
28
+ "@hot-updater/cli-tools": "1.2.0-rc.50",
29
+ "@hot-updater/plugin-core": "1.2.0-rc.50"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^20",