@hot-updater/bare 0.16.4 → 0.16.6

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
@@ -6583,17 +6583,30 @@ Instead, \`yield\` should either be called with a value, or not be called at all
6583
6583
  ...process.env,
6584
6584
  BUILD_OUT_DIR: buildPath,
6585
6585
  HOT_UPDATER_CHANNEL: channel
6586
- }
6586
+ },
6587
+ reject: true
6587
6588
  });
6588
6589
  } catch (error) {
6589
6590
  if (error instanceof ExecaError) throw error.stderr;
6590
6591
  }
6591
6592
  const bundleId = await external_fs_promises_default().readFile(external_path_default().join(buildPath, "BUNDLE_ID"), "utf-8").catch(()=>null);
6592
- if (!bundleId) throw new Error(`Please check if 'hot-updater/babel-plugin' is configured in babel.config.js
6593
+ if (!bundleId) throw new Error(`If you are using Babel, please check if 'hot-updater/babel-plugin' is configured in babel.config.js
6593
6594
  Example:
6595
+ module.exports = {
6596
+ plugins: [
6597
+ ["@hot-updater/babel-plugin"]
6598
+ ]
6599
+ }
6600
+
6601
+
6602
+ If you are using Repack, please check if '@hot-updater/repack' plugin is configured in rspack.config.mjs
6603
+ Example:
6604
+ import { HotUpdaterPlugin } from "@hot-updater/repack";
6605
+
6594
6606
  {
6595
- plugins: ['hot-updater/babel-plugin']
6596
- }`);
6607
+ plugins: [new Repack.RepackPlugin(), new HotUpdaterPlugin()],
6608
+ }
6609
+ `);
6597
6610
  if (enableHermes) {
6598
6611
  const { hermesVersion } = await compileHermes({
6599
6612
  cwd,
package/dist/index.js CHANGED
@@ -6534,17 +6534,30 @@ const runBundle = async ({ entryFile, cwd, platform, buildPath, sourcemap, enabl
6534
6534
  ...process.env,
6535
6535
  BUILD_OUT_DIR: buildPath,
6536
6536
  HOT_UPDATER_CHANNEL: channel
6537
- }
6537
+ },
6538
+ reject: true
6538
6539
  });
6539
6540
  } catch (error) {
6540
6541
  if (error instanceof ExecaError) throw error.stderr;
6541
6542
  }
6542
6543
  const bundleId = await __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__["default"].readFile(external_path_["default"].join(buildPath, "BUNDLE_ID"), "utf-8").catch(()=>null);
6543
- if (!bundleId) throw new Error(`Please check if 'hot-updater/babel-plugin' is configured in babel.config.js
6544
+ if (!bundleId) throw new Error(`If you are using Babel, please check if 'hot-updater/babel-plugin' is configured in babel.config.js
6544
6545
  Example:
6546
+ module.exports = {
6547
+ plugins: [
6548
+ ["@hot-updater/babel-plugin"]
6549
+ ]
6550
+ }
6551
+
6552
+
6553
+ If you are using Repack, please check if '@hot-updater/repack' plugin is configured in rspack.config.mjs
6554
+ Example:
6555
+ import { HotUpdaterPlugin } from "@hot-updater/repack";
6556
+
6545
6557
  {
6546
- plugins: ['hot-updater/babel-plugin']
6547
- }`);
6558
+ plugins: [new Repack.RepackPlugin(), new HotUpdaterPlugin()],
6559
+ }
6560
+ `);
6548
6561
  if (enableHermes) {
6549
6562
  const { hermesVersion } = await compileHermes({
6550
6563
  cwd,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/bare",
3
3
  "type": "module",
4
- "version": "0.16.4",
4
+ "version": "0.16.6",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "package.json"
22
22
  ],
23
23
  "dependencies": {
24
- "@hot-updater/plugin-core": "0.16.4"
24
+ "@hot-updater/plugin-core": "0.16.6"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^22.8.7",