@hot-updater/bare 1.1.0 → 1.1.2

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
@@ -6281,7 +6281,15 @@ function getHermesOSExe() {
6281
6281
  const hermesExecutableName = "hermesc";
6282
6282
  return process.platform === "win32" ? `${hermesExecutableName}.exe` : hermesExecutableName;
6283
6283
  }
6284
+ /**
6285
+ * Resolves the `hermes-compiler` package the app's react-native depends on.
6286
+ * A react-native that doesn't declare it (before 0.83) bundles its own
6287
+ * hermesc, and any `hermes-compiler` Node resolution reaches from there, such
6288
+ * as one pnpm hoists for another app in the workspace, compiles bytecode its
6289
+ * Hermes runtime refuses to load.
6290
+ */
6284
6291
  function getHermesCompilerPackagePath(reactNativePath) {
6292
+ if (!JSON.parse(fs.default.readFileSync(path.default.join(reactNativePath, "package.json"), "utf8")).dependencies?.["hermes-compiler"]) return null;
6285
6293
  try {
6286
6294
  return path.default.dirname(require$1.resolve("hermes-compiler/package.json", { paths: [reactNativePath] }));
6287
6295
  } catch {
package/dist/index.mjs CHANGED
@@ -6275,7 +6275,15 @@ function getHermesOSExe() {
6275
6275
  const hermesExecutableName = "hermesc";
6276
6276
  return process.platform === "win32" ? `${hermesExecutableName}.exe` : hermesExecutableName;
6277
6277
  }
6278
+ /**
6279
+ * Resolves the `hermes-compiler` package the app's react-native depends on.
6280
+ * A react-native that doesn't declare it (before 0.83) bundles its own
6281
+ * hermesc, and any `hermes-compiler` Node resolution reaches from there, such
6282
+ * as one pnpm hoists for another app in the workspace, compiles bytecode its
6283
+ * Hermes runtime refuses to load.
6284
+ */
6278
6285
  function getHermesCompilerPackagePath(reactNativePath) {
6286
+ if (!JSON.parse(fs$1.readFileSync(path.join(reactNativePath, "package.json"), "utf8")).dependencies?.["hermes-compiler"]) return null;
6279
6287
  try {
6280
6288
  return path.dirname(require$1.resolve("hermes-compiler/package.json", { paths: [reactNativePath] }));
6281
6289
  } catch {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/bare",
3
3
  "type": "module",
4
- "version": "1.1.0",
4
+ "version": "1.1.2",
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.1.0",
29
- "@hot-updater/plugin-core": "1.1.0"
28
+ "@hot-updater/cli-tools": "1.1.2",
29
+ "@hot-updater/plugin-core": "1.1.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^20",