@hot-updater/bare 0.24.5 → 0.24.7

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
@@ -6403,6 +6403,13 @@ function getReactNativePackagePath(cwd) {
6403
6403
  return path.default.join("node_modules", "react-native");
6404
6404
  }
6405
6405
  }
6406
+ function getHermesCompilerPackagePath(reactNativePath) {
6407
+ try {
6408
+ return path.default.dirname(require.resolve("hermes-compiler/package.json", { paths: [reactNativePath] }));
6409
+ } catch {
6410
+ return null;
6411
+ }
6412
+ }
6406
6413
  /**
6407
6414
  * Returns the path to the react-native compose-source-maps.js script.
6408
6415
  */
@@ -6426,7 +6433,13 @@ async function getHermesCommand(cwd) {
6426
6433
  return false;
6427
6434
  }
6428
6435
  };
6429
- const bundledHermesEngine = path.default.join(getReactNativePackagePath(cwd), "sdks", "hermesc", getHermesOSBin(), getHermesOSExe());
6436
+ const reactNativePath = getReactNativePackagePath(cwd);
6437
+ const hermesCompilerPath = getHermesCompilerPackagePath(reactNativePath);
6438
+ if (hermesCompilerPath) {
6439
+ const engine = path.default.join(hermesCompilerPath, "hermesc", getHermesOSBin(), getHermesOSExe());
6440
+ if (fileExists(engine)) return engine;
6441
+ }
6442
+ const bundledHermesEngine = path.default.join(reactNativePath, "sdks", "hermesc", getHermesOSBin(), getHermesOSExe());
6430
6443
  if (fileExists(bundledHermesEngine)) return bundledHermesEngine;
6431
6444
  const hermesEngine = path.default.join("node_modules", "hermes-engine", getHermesOSBin(), getHermesOSExe());
6432
6445
  if (fileExists(hermesEngine)) return hermesEngine;
@@ -6524,7 +6537,7 @@ const runBundle = async ({ entryFile, cwd, platform: platform$1, buildPath, sour
6524
6537
  Example:
6525
6538
  module.exports = {
6526
6539
  plugins: [
6527
- ["@hot-updater/babel-plugin"]
6540
+ ["hot-updater/babel-plugin"]
6528
6541
  ]
6529
6542
  }
6530
6543
 
package/dist/index.js CHANGED
@@ -6386,6 +6386,13 @@ function getReactNativePackagePath(cwd) {
6386
6386
  return path$1.join("node_modules", "react-native");
6387
6387
  }
6388
6388
  }
6389
+ function getHermesCompilerPackagePath(reactNativePath) {
6390
+ try {
6391
+ return path$1.dirname(__require.resolve("hermes-compiler/package.json", { paths: [reactNativePath] }));
6392
+ } catch {
6393
+ return null;
6394
+ }
6395
+ }
6389
6396
  /**
6390
6397
  * Returns the path to the react-native compose-source-maps.js script.
6391
6398
  */
@@ -6409,7 +6416,13 @@ async function getHermesCommand(cwd) {
6409
6416
  return false;
6410
6417
  }
6411
6418
  };
6412
- const bundledHermesEngine = path$1.join(getReactNativePackagePath(cwd), "sdks", "hermesc", getHermesOSBin(), getHermesOSExe());
6419
+ const reactNativePath = getReactNativePackagePath(cwd);
6420
+ const hermesCompilerPath = getHermesCompilerPackagePath(reactNativePath);
6421
+ if (hermesCompilerPath) {
6422
+ const engine = path$1.join(hermesCompilerPath, "hermesc", getHermesOSBin(), getHermesOSExe());
6423
+ if (fileExists(engine)) return engine;
6424
+ }
6425
+ const bundledHermesEngine = path$1.join(reactNativePath, "sdks", "hermesc", getHermesOSBin(), getHermesOSExe());
6413
6426
  if (fileExists(bundledHermesEngine)) return bundledHermesEngine;
6414
6427
  const hermesEngine = path$1.join("node_modules", "hermes-engine", getHermesOSBin(), getHermesOSExe());
6415
6428
  if (fileExists(hermesEngine)) return hermesEngine;
@@ -6507,7 +6520,7 @@ const runBundle = async ({ entryFile, cwd, platform: platform$1, buildPath, sour
6507
6520
  Example:
6508
6521
  module.exports = {
6509
6522
  plugins: [
6510
- ["@hot-updater/babel-plugin"]
6523
+ ["hot-updater/babel-plugin"]
6511
6524
  ]
6512
6525
  }
6513
6526
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/bare",
3
3
  "type": "module",
4
- "version": "0.24.5",
4
+ "version": "0.24.7",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -21,8 +21,8 @@
21
21
  "package.json"
22
22
  ],
23
23
  "dependencies": {
24
- "@hot-updater/cli-tools": "0.24.5",
25
- "@hot-updater/plugin-core": "0.24.5"
24
+ "@hot-updater/cli-tools": "0.24.7",
25
+ "@hot-updater/plugin-core": "0.24.7"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^20",