@hot-updater/expo 0.29.0 → 0.29.1

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
@@ -6276,7 +6276,7 @@ const isHermesEnabled = (cwd, platform) => {
6276
6276
  } catch {}
6277
6277
  return true;
6278
6278
  };
6279
- const runBundle = async ({ cwd, platform, buildPath, sourcemap }) => {
6279
+ const runBundle = async ({ cwd, platform, buildPath, sourcemap, resetCache }) => {
6280
6280
  const filename = `index.${platform}`;
6281
6281
  const bundleOutput = path.default.join(buildPath, `${filename}.bundle`);
6282
6282
  const entryFile = resolveMain(cwd);
@@ -6295,7 +6295,7 @@ const runBundle = async ({ cwd, platform, buildPath, sourcemap }) => {
6295
6295
  "--assets-dest",
6296
6296
  buildPath,
6297
6297
  ...sourcemap ? ["--sourcemap-output", `${bundleOutput}.map`] : [],
6298
- "--reset-cache"
6298
+ ...resetCache ? ["--reset-cache"] : []
6299
6299
  ];
6300
6300
  _hot_updater_cli_tools.log.normal("\n");
6301
6301
  let stdout = null;
@@ -6327,7 +6327,7 @@ const expo = (config = {
6327
6327
  outDir: "dist",
6328
6328
  sourcemap: false
6329
6329
  }) => ({ cwd }) => {
6330
- const { outDir = "dist", sourcemap = false } = config;
6330
+ const { outDir = "dist", sourcemap = false, resetCache = true } = config;
6331
6331
  return {
6332
6332
  nativeBuild: { prebuild: async ({ platform }) => {
6333
6333
  await runExpoPrebuild({ platform });
@@ -6343,7 +6343,8 @@ const expo = (config = {
6343
6343
  cwd,
6344
6344
  platform,
6345
6345
  buildPath,
6346
- sourcemap
6346
+ sourcemap,
6347
+ resetCache
6347
6348
  });
6348
6349
  return {
6349
6350
  buildPath,
package/dist/index.d.cts CHANGED
@@ -7,6 +7,11 @@ interface ExpoPluginConfig extends BuildPluginConfig {
7
7
  * Whether to generate sourcemap for the bundle.
8
8
  */
9
9
  sourcemap?: boolean;
10
+ /**
11
+ * @default true
12
+ * Whether to reset the Metro cache before bundling.
13
+ */
14
+ resetCache?: boolean;
10
15
  }
11
16
  declare const expo: (config?: ExpoPluginConfig) => ({
12
17
  cwd
package/dist/index.d.mts CHANGED
@@ -7,6 +7,11 @@ interface ExpoPluginConfig extends BuildPluginConfig {
7
7
  * Whether to generate sourcemap for the bundle.
8
8
  */
9
9
  sourcemap?: boolean;
10
+ /**
11
+ * @default true
12
+ * Whether to reset the Metro cache before bundling.
13
+ */
14
+ resetCache?: boolean;
10
15
  }
11
16
  declare const expo: (config?: ExpoPluginConfig) => ({
12
17
  cwd
package/dist/index.mjs CHANGED
@@ -6274,7 +6274,7 @@ const isHermesEnabled = (cwd, platform) => {
6274
6274
  } catch {}
6275
6275
  return true;
6276
6276
  };
6277
- const runBundle = async ({ cwd, platform, buildPath, sourcemap }) => {
6277
+ const runBundle = async ({ cwd, platform, buildPath, sourcemap, resetCache }) => {
6278
6278
  const filename = `index.${platform}`;
6279
6279
  const bundleOutput = path$1.join(buildPath, `${filename}.bundle`);
6280
6280
  const entryFile = resolveMain(cwd);
@@ -6293,7 +6293,7 @@ const runBundle = async ({ cwd, platform, buildPath, sourcemap }) => {
6293
6293
  "--assets-dest",
6294
6294
  buildPath,
6295
6295
  ...sourcemap ? ["--sourcemap-output", `${bundleOutput}.map`] : [],
6296
- "--reset-cache"
6296
+ ...resetCache ? ["--reset-cache"] : []
6297
6297
  ];
6298
6298
  log.normal("\n");
6299
6299
  let stdout = null;
@@ -6325,7 +6325,7 @@ const expo = (config = {
6325
6325
  outDir: "dist",
6326
6326
  sourcemap: false
6327
6327
  }) => ({ cwd }) => {
6328
- const { outDir = "dist", sourcemap = false } = config;
6328
+ const { outDir = "dist", sourcemap = false, resetCache = true } = config;
6329
6329
  return {
6330
6330
  nativeBuild: { prebuild: async ({ platform }) => {
6331
6331
  await runExpoPrebuild({ platform });
@@ -6341,7 +6341,8 @@ const expo = (config = {
6341
6341
  cwd,
6342
6342
  platform,
6343
6343
  buildPath,
6344
- sourcemap
6344
+ sourcemap,
6345
+ resetCache
6345
6346
  });
6346
6347
  return {
6347
6348
  buildPath,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/expo",
3
3
  "type": "module",
4
- "version": "0.29.0",
4
+ "version": "0.29.1",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.mjs",
@@ -24,9 +24,9 @@
24
24
  "@babel/core": "7.26.0",
25
25
  "@babel/types": "7.26.0",
26
26
  "uuidv7": "^1.0.2",
27
- "@hot-updater/cli-tools": "0.29.0",
28
- "@hot-updater/bare": "0.29.0",
29
- "@hot-updater/plugin-core": "0.29.0"
27
+ "@hot-updater/bare": "0.29.1",
28
+ "@hot-updater/plugin-core": "0.29.1",
29
+ "@hot-updater/cli-tools": "0.29.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^20",